Added the missing get_loot binding into LootDataBase.

This commit is contained in:
Relintai 2019-10-02 11:43:36 +02:00
parent 223276ef41
commit 35c292c932

View File

@ -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");