diff --git a/SHADE_Managed/src/Engine/GameObject.cxx b/SHADE_Managed/src/Engine/GameObject.cxx index da9343c4..3896fac5 100644 --- a/SHADE_Managed/src/Engine/GameObject.cxx +++ b/SHADE_Managed/src/Engine/GameObject.cxx @@ -28,7 +28,7 @@ namespace SHADE /*---------------------------------------------------------------------------------*/ GameObject GameObject::Create() { - throw gcnew System::NotImplementedException(); + return GameObject(SHEntityManager::CreateEntity()); } void GameObject::Destroy(GameObject obj) @@ -47,11 +47,12 @@ namespace SHADE /*---------------------------------------------------------------------------------*/ System::String^ GameObject::Name::get() { - throw gcnew System::NotImplementedException(); + return Convert::ToCLI(GetNativeEntity().name); + } bool GameObject::IsActiveSelf::get() { - throw gcnew System::NotImplementedException(); + return GetNativeEntity().isActive; } bool GameObject::IsActiveInHierarchy::get() { @@ -63,11 +64,11 @@ namespace SHADE /*---------------------------------------------------------------------------------*/ void GameObject::SetName(System::String^ name) { - throw gcnew System::NotImplementedException(); + GetNativeEntity().name = Convert::ToNative(name); } void GameObject::SetActive(bool active) { - throw gcnew System::NotImplementedException(); + GetNativeEntity().isActive = active; } /*---------------------------------------------------------------------------------*/