mirror of
https://github.com/Relintai/entity_spell_system.git
synced 2025-02-22 17:18:12 +01:00
Added the missing get_loot binding into LootDataBase.
This commit is contained in:
parent
223276ef41
commit
35c292c932
@ -19,6 +19,8 @@ LootDataBase::LootDataBase() {
|
||||
void LootDataBase::_bind_methods() {
|
||||
BIND_VMETHOD(MethodInfo("_get_loot", PropertyInfo(Variant::ARRAY, "into")));
|
||||
|
||||
ClassDB::bind_method(D_METHOD("get_loot"), &LootDataBase::get_loot);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("get_chance"), &LootDataBase::get_chance);
|
||||
ClassDB::bind_method(D_METHOD("set_chance", "value"), &LootDataBase::set_chance);
|
||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "chance"), "set_chance", "get_chance");
|
||||
|
Loading…
Reference in New Issue
Block a user