Brunot
Loading...
Searching...
No Matches
Script.cpp File Reference

loads a lua file, and constructs an object based on it, then lets it run in the engine like a component, but more dynamically More...

Include dependency graph for Script.cpp:

Macros

#define LINK_COMPONENT(name, id, ...)

Detailed Description

loads a lua file, and constructs an object based on it, then lets it run in the engine like a component, but more dynamically

Author
(aidan.nosp@m..har.nosp@m.tman@.nosp@m.digi.nosp@m.pen.e.nosp@m.du)
Date
2026 / 6 / 16

Macro Definition Documentation

◆ LINK_COMPONENT

#define LINK_COMPONENT ( name,
id,
... )
Value:
if (auto comp = dynamic_cast<Entity*>(getParent())->GetComponent<name>(Component::c##name)) \
{ \
luaObject[#name] = comp; \
}
Definition Entity.h:41