diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-12-10 19:24:46 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-12-10 19:24:46 +0100 |
commit | 4414fe5079b44d5bbcbba89bb1e71ce01b949226 (patch) | |
tree | bba8287de88f5eeca992f000ee425c067d616ce0 /src/test/ScriptTest.h | |
parent | 1e5c6c5cf0d1be976e0e59099ddcfc62940ef1be (diff) | |
parent | 0cb7f2f82ca167656b3c5cb9f0cc3b44c59cb0eb (diff) |
merge master
Diffstat (limited to 'src/test/ScriptTest.h')
-rw-r--r-- | src/test/ScriptTest.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/ScriptTest.h b/src/test/ScriptTest.h index 1bbfdd3..309e016 100644 --- a/src/test/ScriptTest.h +++ b/src/test/ScriptTest.h @@ -11,10 +11,12 @@ class ScriptTest : public testing::Test { protected: crepe::Mediator mediator; + static constexpr const char * OBJ_NAME = "foo"; public: crepe::ComponentManager component_manager{mediator}; crepe::ScriptSystem system{mediator}; + crepe::GameObject entity = component_manager.new_object(OBJ_NAME); class MyScript : public crepe::Script { // NOTE: explicitly stating `public:` is not required on actual scripts |