mirror of
https://github.com/ncblakely/GiantsTools
synced 2024-11-22 14:15:37 +01:00
17 lines
310 B
C
17 lines
310 B
C
|
#pragma once
|
||
|
|
||
|
class Object;
|
||
|
|
||
|
namespace GameObj
|
||
|
{
|
||
|
// Interface back to legacy Object pointer from ECS land.
|
||
|
struct ObjectRef
|
||
|
{
|
||
|
ObjectRef(Object* object) : Object(object) { }
|
||
|
|
||
|
[[nodiscard]] Object* GetObj() const { return this->Object; }
|
||
|
|
||
|
private:
|
||
|
Object* Object;
|
||
|
};
|
||
|
}
|