Started converting EntityTypes to customizable. (I had to test PoolStringArrays in ProjectSettings, will be finished later.)

This commit is contained in:
Relintai 2020-05-20 01:58:24 +02:00
parent fa33d5d57e
commit 9eefc4a551
2 changed files with 7 additions and 0 deletions

View File

@ -550,6 +550,9 @@ ESS::ESS() {
equip_slot_set_string(GLOBAL_DEF("ess/enums/equip_slots", "Head,Neck,Shoulder,Chest,Gloves,Belt,Legs,Feet,Ring_1,Ring_2,Trinket_1,Trinket_2,Main_Hand,Off_Hand"));
_entity_types = GLOBAL_DEF("ess/enums/entity_types", "None,Creature,Totem,Idol,Humanoid,Mechanical,Beast,Dragonkin,Elemental,Ghost,Energy,Anomaly,Demon,Object");
_entity_type_skeletons = GLOBAL_DEF("ess/enums/entity_type_skeletons", PoolStringArray());
if (!Engine::get_singleton()->is_editor_hint() && _automatic_load) {
call_deferred("load_all");
}

View File

@ -187,6 +187,10 @@ private:
HashMap<StringName, int> _equip_slot_property_to_id;
String _equip_slot_enum_string;
//Entity Types
String _entity_types;
PoolStringArray _entity_type_skeletons;
};
#endif