The class containing all entity elements.
More...
Go to the source code of this file.
|
| #define | HAS(type) |
| | A macro for using the template call to get a component of an entity.
|
The class containing all entity elements.
- Author
- Aidan Hartman (aidan.nosp@m..har.nosp@m.tman@.nosp@m.digi.nosp@m.pen.e.nosp@m.du) Some buttons for ImGui, Pair program with Marcelo Marcelo Escamilla(marce.nosp@m.lo.e.nosp@m.scami.nosp@m.lla@.nosp@m.digip.nosp@m.en.e.nosp@m.du) JSON serialization, and ImGui implementation Bryley Elder (bryle.nosp@m.y.el.nosp@m.der@d.nosp@m.igip.nosp@m.en.ed.nosp@m.u) Pair Program with Aidan
- Date
- 2025 / 11 / 19
- Copyright
- (c) Digipen 2026
◆ HAS
Value:GetComponent<type>(Component::c##type)
A macro for using the template call to get a component of an entity.
example call: Transform* transform = MyEntity()->HAS(Transform);
- Parameters
-
| type | the type of component to search for on an object |
- Returns
- the component requested, typecast to its inherited class, NULL if not found
◆ operator<<() [1/2]
template<typename ActionType>
| auto operator<< |
( |
Entity * | entity, |
|
|
const ActionType & | action )->Entity * |
Adds a new action to an entity's ActionList component.
- Warning
- Will crash if the entity does not have an actionList component
- Parameters
-
| entity | A pointer to an entity |
| action | The action you want to add |
- Returns
- A reference to the path, to allow chaining
◆ operator<<() [2/2]
template<typename ActionType>
Adds a new action to an entity's ActionList component.
- Warning
- Will crash if the entity does not have an actionList component
- Parameters
-
| entity | A path to an entity |
| action | The action you want to add |
- Returns
- A reference to the path, to allow chaining