MCPcopy Create free account
hub / github.com/TurningWheel/Barony / reselectEntityGroup

Function reselectEntityGroup

src/editor.cpp:10387–10402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10385}
10386
10387void reselectEntityGroup()
10388{
10389 groupedEntities.clear();
10390 node_t* nextnode = nullptr;
10391 Entity* entity = nullptr;
10392 for ( node_t* node = map.entities->first; node != nullptr; node = nextnode )
10393 {
10394 nextnode = node->next;
10395 entity = (Entity*)node->element;
10396 if ( entity->x / 16 >= selectedarea_x1 && entity->x / 16 <= selectedarea_x2
10397 && entity->y / 16 >= selectedarea_y1 && entity->y / 16 <= selectedarea_y2 )
10398 {
10399 groupedEntities.push_back(entity);
10400 }
10401 }
10402}
10403
10404int generateDungeon(char* levelset, Uint32 seed, std::tuple<int, int, int, int> mapParameters)
10405{

Callers 1

mainFunction · 0.85

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected