fix: inventory is now a tool class
This commit is contained in:
parent
a05bc7cd67
commit
c97742f992
|
@ -11,6 +11,8 @@ void Inventory::_bind_methods() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Inventory::_ready() {
|
void Inventory::_ready() {
|
||||||
|
if(gd::Engine::get_singleton()->is_editor_hint())
|
||||||
|
return;
|
||||||
this->parent_unit = gd::Object::cast_to<Unit>(this->get_parent());
|
this->parent_unit = gd::Object::cast_to<Unit>(this->get_parent());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -65,7 +65,7 @@ void initialize_gdextension_types(gd::ModuleInitializationLevel p_level)
|
||||||
GDREGISTER_RUNTIME_CLASS(EntityHealth);
|
GDREGISTER_RUNTIME_CLASS(EntityHealth);
|
||||||
GDREGISTER_CLASS(NavMarker);
|
GDREGISTER_CLASS(NavMarker);
|
||||||
GDREGISTER_RUNTIME_CLASS(NavRoom);
|
GDREGISTER_RUNTIME_CLASS(NavRoom);
|
||||||
GDREGISTER_RUNTIME_CLASS(Inventory);
|
GDREGISTER_CLASS(Inventory);
|
||||||
GDREGISTER_RUNTIME_CLASS(RTSGameMode);
|
GDREGISTER_RUNTIME_CLASS(RTSGameMode);
|
||||||
GDREGISTER_RUNTIME_CLASS(RTSPlayer);
|
GDREGISTER_RUNTIME_CLASS(RTSPlayer);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue