void Area::loadGIT(const Aurora::GFFStruct &git) { if (git.hasField("AreaProperties")) loadProperties(git.getStruct("AreaProperties")); if (git.hasField("Placeable List")) loadPlaceables(git.getList("Placeable List")); if (git.hasField("Door List")) loadDoors(git.getList("Door List")); if (git.hasField("Creature List")) loadCreatures(git.getList("Creature List")); }
void Area::loadSAV(const Aurora::GFF3Struct &sav) { if (sav.hasField("CreatureList")) { const Aurora::GFF3Struct &creatures = sav.getStruct("CreatureList"); loadCreatures(creatures.getList("StaticList")); loadCreatures(creatures.getList("DynamicList")); } // TODO load crowd list if (sav.hasField("PlaceableList")) { const Aurora::GFF3Struct &placeables = sav.getStruct("PlaceableList"); loadPlaceables(placeables.getList("StaticList")); loadPlaceables(placeables.getList("DynamicList")); } // TODO load sound list if (sav.hasField("TriggerList")) { const Aurora::GFF3Struct &trigger = sav.getStruct("TriggerList"); loadTriggers(trigger.getList("StaticList")); loadTriggers(trigger.getList("DynamicList")); } if (sav.hasField("WaypointList")) { const Aurora::GFF3Struct &waypoints = sav.getStruct("WaypointList"); loadWaypoints(waypoints.getList("StaticList")); loadWaypoints(waypoints.getList("DynamicList")); } // TODO load projectile list // TODO load area of effect list // TODO load store list // TODO load apple list // TODO load camera list }
void Area::loadGIT(const Aurora::GFF3Struct &git) { // Waypoints if (git.hasField("WaypointList")) loadWaypoints(git.getList("WaypointList")); // Placeables if (git.hasField("Placeable List")) loadPlaceables(git.getList("Placeable List")); // Doors if (git.hasField("Door List")) loadDoors(git.getList("Door List")); }
void Area::loadGIT(const Aurora::GFF3Struct &git) { // Generic properties if (git.hasField("AreaProperties")) loadProperties(git.getStruct("AreaProperties")); // Waypoints if (git.hasField("WaypointList")) loadWaypoints(git.getList("WaypointList")); // Placeables if (git.hasField("Placeable List")) loadPlaceables(git.getList("Placeable List")); // Doors if (git.hasField("Door List")) loadDoors(git.getList("Door List")); // Creatures if (git.hasField("Creature List")) loadCreatures(git.getList("Creature List")); }