Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Town aggregation #383

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

bwrsandman
Copy link
Member

@bwrsandman bwrsandman commented Apr 21, 2022

Needed for the GO_HOME states as the villager needs to be assigned a town and the town must assign itself to abodes.

@bwrsandman
Copy link
Member Author

Move these commits out of #285 because they're related to other states that aren't implemented and they're half finished.

@github-actions github-actions bot added the merge-conflicts PR cannot be merged until it is rebased label May 29, 2022
@bwrsandman bwrsandman removed the merge-conflicts PR cannot be merged until it is rebased label Jun 4, 2022
@github-actions github-actions bot added the merge-conflicts PR cannot be merged until it is rebased label Jun 26, 2022
src/Common/Spiral.cpp Outdated Show resolved Hide resolved
src/Common/Spiral.h Outdated Show resolved Hide resolved
src/ECS/Components/Town.cpp Outdated Show resolved Hide resolved
@github-actions github-actions bot removed the merge-conflicts PR cannot be merged until it is rebased label Jul 7, 2023
@github-actions github-actions bot added the merge-conflicts PR cannot be merged until it is rebased label Jul 12, 2023
@github-actions github-actions bot removed the merge-conflicts PR cannot be merged until it is rebased label Jul 13, 2023
@bwrsandman bwrsandman force-pushed the town-aggregation branch 2 times, most recently from f8b2c5c to f9730ba Compare July 21, 2023 22:10
@bwrsandman bwrsandman marked this pull request as ready for review July 21, 2023 22:11
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

@@ -14,7 +14,9 @@ namespace openblack::ecs::components

struct Field
{
int town;
static constexpr float radius2D = 5.0f;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: invalid case style for global constant 'radius2D' [readability-identifier-naming]

Suggested change
static constexpr float radius2D = 5.0f;
static constexpr float k_Radius2D = 5.0f;

{
[[maybe_unused]] const bool any = registry.AnyOf<Fixed, Mobile>(entity);
assert(any);
assert(false); // TODO
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: missing username/bug in TODO [google-readability-todo]

Suggested change
assert(false); // TODO
assert(false); // TODO(unknown):


const auto& registry = Locator::entitiesRegistry::value();

bool checkPlanned = false; // TODO: rename to searchMore
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: missing username/bug in TODO [google-readability-todo]

Suggested change
bool checkPlanned = false; // TODO: rename to searchMore
bool checkPlanned = false; // TODO(unknown): rename to searchMore

});

std::array<entt::entity, 100> fieldsAndPlanned;
uint32_t fieldsAndPlannedCount = 0; // TODO: rename to something about circular buffer
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: missing username/bug in TODO [google-readability-todo]

Suggested change
uint32_t fieldsAndPlannedCount = 0; // TODO: rename to something about circular buffer
uint32_t fieldsAndPlannedCount = 0; // TODO(unknown): rename to something about circular buffer


std::array<entt::entity, 100> fieldsAndPlanned;
uint32_t fieldsAndPlannedCount = 0; // TODO: rename to something about circular buffer
uint32_t abodeCount = 0; // TODO: Rename to fieldsAndPlannedTotal
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: missing username/bug in TODO [google-readability-todo]

Suggested change
uint32_t abodeCount = 0; // TODO: Rename to fieldsAndPlannedTotal
uint32_t abodeCount = 0; // TODO(unknown): Rename to fieldsAndPlannedTotal

}
}

// TODO: If there aren't enough, throw planned structures into the mix
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: missing username/bug in TODO [google-readability-todo]

Suggested change
// TODO: If there aren't enough, throw planned structures into the mix
// TODO(unknown): If there aren't enough, throw planned structures into the mix

@github-actions
Copy link
Contributor

github-actions bot commented Jul 21, 2023

Uploaded images

Map Debug Release Vanilla
Land1.txt Land1 Debug Land1 Release Land1 Vanilla
Land2.txt Land2 Debug Land2 Release Land2 Vanilla
Land3.txt Land3 Debug Land3 Release Land3 Vanilla
Land4.txt Land4 Debug Land4 Release Land4 Vanilla
Land5.txt Land5 Debug Land5 Release Land5 Vanilla
LandT.txt LandT Debug LandT Release LandT Vanilla
TwoGods.txt TwoGods Debug TwoGods Release TwoGods Vanilla
ThreeGods.txt ThreeGods Debug ThreeGods Release ThreeGods Vanilla
FourGods.txt FourGods Debug FourGods Release FourGods Vanilla
construct.txt TODO TODO construct Vanilla

@@ -0,0 +1,62 @@
/******************************************************************************
* Copyright (c) 2018-2023 openblack developers
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[license_checker] reported by reviewdog 🐶

Suggested change
* Copyright (c) 2018-2023 openblack developers
/******************************************************************************
* Copyright (c) 2018-2024 openblack developers
*
* For a complete list of all authors, please refer to contributors.md
* Interested in contributing? Visit https://github.com/openblack/openblack
*
* openblack is licensed under the GNU General Public License version 3.
*******************************************************************************/
* Copyright (c) 2018-2023 openblack developers

@@ -0,0 +1,22 @@
/******************************************************************************
* Copyright (c) 2018-2023 openblack developers
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[license_checker] reported by reviewdog 🐶

Suggested change
* Copyright (c) 2018-2023 openblack developers
/******************************************************************************
* Copyright (c) 2018-2024 openblack developers
*
* For a complete list of all authors, please refer to contributors.md
* Interested in contributing? Visit https://github.com/openblack/openblack
*
* openblack is licensed under the GNU General Public License version 3.
*******************************************************************************/
* Copyright (c) 2018-2023 openblack developers

@@ -0,0 +1,272 @@
/******************************************************************************
* Copyright (c) 2018-2023 openblack developers
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[license_checker] reported by reviewdog 🐶

Suggested change
* Copyright (c) 2018-2023 openblack developers
/******************************************************************************
* Copyright (c) 2018-2024 openblack developers
*
* For a complete list of all authors, please refer to contributors.md
* Interested in contributing? Visit https://github.com/openblack/openblack
*
* openblack is licensed under the GNU General Public License version 3.
*******************************************************************************/
* Copyright (c) 2018-2023 openblack developers

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

{
[[maybe_unused]] const bool any = registry.AnyOf<Fixed, Mobile>(entity);
assert(any);
assert(false); // TODO
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: missing username/bug in TODO [google-readability-todo]

Suggested change
assert(false); // TODO
assert(false); // TODO(bwrsandman):


const auto& registry = Locator::entitiesRegistry::value();

bool checkPlanned = false; // TODO: rename to searchMore
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: missing username/bug in TODO [google-readability-todo]

Suggested change
bool checkPlanned = false; // TODO: rename to searchMore
bool checkPlanned = false; // TODO(bwrsandman): rename to searchMore

});

std::array<entt::entity, 100> fieldsAndPlanned;
uint32_t fieldsAndPlannedCount = 0; // TODO: rename to something about circular buffer
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: missing username/bug in TODO [google-readability-todo]

Suggested change
uint32_t fieldsAndPlannedCount = 0; // TODO: rename to something about circular buffer
uint32_t fieldsAndPlannedCount = 0; // TODO(bwrsandman): rename to something about circular buffer


std::array<entt::entity, 100> fieldsAndPlanned;
uint32_t fieldsAndPlannedCount = 0; // TODO: rename to something about circular buffer
uint32_t abodeCount = 0; // TODO: Rename to fieldsAndPlannedTotal
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: missing username/bug in TODO [google-readability-todo]

Suggested change
uint32_t abodeCount = 0; // TODO: Rename to fieldsAndPlannedTotal
uint32_t abodeCount = 0; // TODO(bwrsandman): Rename to fieldsAndPlannedTotal

}
}

// TODO: If there aren't enough, throw planned structures into the mix
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: missing username/bug in TODO [google-readability-todo]

Suggested change
// TODO: If there aren't enough, throw planned structures into the mix
// TODO(bwrsandman): If there aren't enough, throw planned structures into the mix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant