Home › Class layouts › AI › AI::BehaviorTree::BuildFromCityData

Needs the Community Extension. Not available in the unmodified game; works while the Community Extension mod is active (its own functions, or raw memory access with Mem/ObjMem).

AI::BehaviorTree::BuildFromCityData

GameCore::AI::BehaviorTree::BuildFromCityData — structure, size 160 bytes (0xa0).

Linux offset Member Type
0x0 DesiredUnits AI::BehaviorTree::SharedData<const Types::Vector<GameCore::AI::BehaviorTree::BehaviorTreePriority<GameCore::UnitTypes>, Types::LinearAlloc::Default<1, 0> > >
0x10 DesiredBuildings AI::BehaviorTree::SharedData<const Types::Vector<GameCore::AI::BehaviorTree::BehaviorTreePriority<GameCore::BuildingTypes>, Types::LinearAlloc::Default<1, 0> > >
0x20 RequiredCity AI::BehaviorTree::SharedData<const unsigned int>
0x30 ReleaseUnitWhenBuilt AI::BehaviorTree::SharedData<const bool>
0x40 ContractId AI::BehaviorTree::SharedData<int>
0x50 ContractPriority AI::BehaviorTree::SharedData<int>
0x60 DesiredDistricts AI::BehaviorTree::SharedData<const Types::Vector<GameCore::AI::BehaviorTree::BehaviorTreePriority<GameCore::DistrictTypes>, Types::LinearAlloc::Default<1, 0> > >
0x70 DesiredLocation AI::BehaviorTree::SharedData<const GameCore::PlotCoord>
0x80 PresentValue AI::BehaviorTree::SharedData<const int>
0x90 UnitContract IDType
0x94 ChosenCity IDType
0x98 MakeContract bool
0x9c ContractOwner PlayerTypes