void Waypoint::loadProperties(const Aurora::GFF3Struct &gff) { // Unique ID and tag _uniqueID = gff.getString("UniqueID", _uniqueID); _tag = gff.getString("Tag", _tag); // Map note _hasMapNote = gff.getBool("HasMapNote", _hasMapNote); if (gff.hasField("MapNote")) gff.getLocString("MapNote", _mapNote); refreshLocalized(); }
void Situated::loadProperties(const Aurora::GFF3Struct &gff) { // Unique ID and tag _uniqueID = gff.getString("UniqueID", _uniqueID); _tag = gff.getString("Tag", _tag); // Name if (gff.hasField("LocName")) { try { gff.getLocString("LocName", _name); } catch (...) { } } // Description if (gff.hasField("Description")) { try { gff.getLocString("Description", _description); } catch (...) { } } refreshLocalized(); // Appearance _modelName = gff.getString("ModelName", _modelName); // Sounds _soundAppType = gff.getUint("SoundAppType", _soundAppType); // Conversation _conversation = gff.getString("Conversation", _conversation); // Static _static = gff.getBool("Static", _static); // Usable _usable = gff.getBool("Useable", _usable); // Locked _locked = gff.getBool("Locked", _locked); }
void Area::loadARE(const Aurora::GFF3Struct &are) { // Tag _tag = are.getString("Tag"); // Name are.getLocString("Name", _name); refreshLocalized(); // Generic properties if (are.hasField("AreaProperties")) loadProperties(are.getStruct("AreaProperties")); // Area geometry model _modelName = are.getString("Tileset"); // Scripts readScripts(are); }