1
0
mirror of https://github.com/ncblakely/GiantsTools synced 2024-12-23 15:57:22 +01:00
GiantsTools/Sdk/Include/GameObject/Public/Components/ObjectRef.h

17 lines
310 B
C
Raw Normal View History

2021-01-24 00:40:09 +01:00
#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;
};
}