The class containing all entity elements.
More...
#include <vector>
#include "Component.h"
#include "ChildrenHandeler.h"
#include "Framework/Engine.h"
#include "System/Messaging.h"
#include <memory>
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