GameObjectPool fixes
This commit is contained in:
@@ -32,10 +32,15 @@ class GameObject {
|
||||
GameObject* parent;
|
||||
public:
|
||||
GameObject(Mono::Object managed_obj, GameObject* parent);
|
||||
GameObject(const GameObject& o) = delete;
|
||||
GameObject(GameObject&& o);
|
||||
|
||||
GameObject& operator=(GameObject&& o);
|
||||
|
||||
inline Transform& getTransform(){ return transform; }
|
||||
inline Transform& getTransform() { return transform; }
|
||||
inline const Transform& getTransform() const { return transform; }
|
||||
inline Mono::ObjectHandle& getObjectHandle() { return object_handle; }
|
||||
inline const Mono::ObjectHandle& getObjectHandle() const { return object_handle; }
|
||||
bool tryGetComponent(const std::u16string& name, Component** out_component);
|
||||
bool tryAddComponent(const std::u16string& name, Component&& component);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user