Update character logic
This commit is contained in:
@@ -57,6 +57,7 @@ void createNPCActionNodes(flecs::entity town, int index)
|
||||
anode.props["town"] = town.id();
|
||||
anode.props["index"] = index;
|
||||
anode.props["npc"] = npcprops;
|
||||
anode.dynamic = true;
|
||||
npc.actionNodes.push_back(anode);
|
||||
}
|
||||
{
|
||||
@@ -78,6 +79,7 @@ void createNPCActionNodes(flecs::entity town, int index)
|
||||
anode.props["town"] = town.id();
|
||||
anode.props["index"] = index;
|
||||
anode.props["npc"] = npcprops;
|
||||
anode.dynamic = true;
|
||||
npc.actionNodes.push_back(anode);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@ struct ActionNodeList {
|
||||
Ogre::Quaternion rotation;
|
||||
float height;
|
||||
float radius;
|
||||
bool dynamic;
|
||||
nlohmann::json props;
|
||||
};
|
||||
struct UIData {
|
||||
|
||||
@@ -5817,6 +5817,8 @@ struct TownDecorateFurniture : TownTask {
|
||||
worldSensorPosition;
|
||||
anode.rotation =
|
||||
worldSensorRotation;
|
||||
anode.dynamic =
|
||||
false;
|
||||
ECS::get_mut<
|
||||
ActionNodeList>()
|
||||
.addNode(
|
||||
|
||||
Reference in New Issue
Block a user