mirror of
https://github.com/Relintai/entity_spell_system.git
synced 2025-02-20 17:14:44 +01:00
Removed AIFormation property from EntityData.
This commit is contained in:
parent
743dca09ec
commit
a90d4f997a
@ -159,13 +159,6 @@ Ref<EntityAI> EntityData::_get_ai_instance() {
|
||||
return ai;
|
||||
}
|
||||
|
||||
Ref<AIFormation> EntityData::get_formation() const {
|
||||
return _formation;
|
||||
}
|
||||
void EntityData::set_formation(const Ref<AIFormation> &data) {
|
||||
_formation = data;
|
||||
}
|
||||
|
||||
Ref<LootDataBase> EntityData::get_loot_db() const {
|
||||
return _lootdb;
|
||||
}
|
||||
@ -325,7 +318,6 @@ EntityData::~EntityData() {
|
||||
_equipment_data.unref();
|
||||
|
||||
_ai.unref();
|
||||
_formation.unref();
|
||||
|
||||
_lootdb.unref();
|
||||
_vendor_item_data.unref();
|
||||
@ -409,10 +401,6 @@ void EntityData::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("get_ai_instance"), &EntityData::get_ai_instance);
|
||||
ClassDB::bind_method(D_METHOD("_get_ai_instance"), &EntityData::_get_ai_instance);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("get_formation"), &EntityData::get_formation);
|
||||
ClassDB::bind_method(D_METHOD("set_formation", "value"), &EntityData::set_formation);
|
||||
ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "formation", PROPERTY_HINT_RESOURCE_TYPE, "AIFormation"), "set_formation", "get_formation");
|
||||
|
||||
// Loot DB
|
||||
ClassDB::bind_method(D_METHOD("get_loot_db"), &EntityData::get_loot_db);
|
||||
ClassDB::bind_method(D_METHOD("set_loot_db", "value"), &EntityData::set_loot_db);
|
||||
|
@ -108,9 +108,6 @@ public:
|
||||
Ref<EntityAI> get_ai_instance();
|
||||
Ref<EntityAI> _get_ai_instance();
|
||||
|
||||
Ref<AIFormation> get_formation() const;
|
||||
void set_formation(const Ref<AIFormation> &data);
|
||||
|
||||
Ref<LootDataBase> get_loot_db() const;
|
||||
void set_loot_db(const Ref<LootDataBase> &data);
|
||||
|
||||
@ -175,7 +172,6 @@ private:
|
||||
Ref<EquipmentData> _equipment_data;
|
||||
|
||||
Ref<EntityAI> _ai;
|
||||
Ref<AIFormation> _formation;
|
||||
|
||||
Ref<LootDataBase> _lootdb;
|
||||
Ref<VendorItemData> _vendor_item_data;
|
||||
|
Loading…
Reference in New Issue
Block a user