Much better narration/dialogue/action handling (and for lua too)
This commit is contained in:
@@ -2134,6 +2134,8 @@ bool editNPCs(nlohmann::json &npcs)
|
||||
if (ImGui::SmallButton("Add NPC")) {
|
||||
nlohmann::json npc;
|
||||
npc["lastName"] = Ogre::String(lastName);
|
||||
npc["firstName"] = Ogre::String(firstName);
|
||||
npc["tags"] = Ogre::String(tags);
|
||||
Ogre::Vector3 npcPosition =
|
||||
ECS::get<EditorGizmo>().sceneNode->_getDerivedPosition();
|
||||
Ogre::Quaternion npcOrientation =
|
||||
@@ -2142,6 +2144,8 @@ bool editNPCs(nlohmann::json &npcs)
|
||||
to_json(npc["position"], npcPosition);
|
||||
to_json(npc["orientation"], npcOrientation);
|
||||
npc["sex"] = selection;
|
||||
npc["health"] = 100;
|
||||
npc["stamina"] = 100;
|
||||
npcs.push_back(npc);
|
||||
changed = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user