76 [[nodiscard]]
auto getKey() const -> Key override;
124 return left->getType() < right->getType();
auto to_json(json &j, const AudioObject &a) -> void
Definition AudioObject.cpp:376
the base class for the engine, most things inherit from this.
nlohmann::json json
Definition Json.cpp:19
Definition Component.h:28
virtual auto componentShowMenu() -> void
Definition Component.h:82
auto getType() const -> ComponentTypeEnum
Definition Component.h:71
auto getComponentJson() const -> json
Definition Component.cpp:94
ComponentTypeEnum type
Definition Component.h:112
auto getChildren() const -> std::shared_ptr< std::vector< GameObject * > > override
override for component to return a vector of no children
Definition Component.cpp:101
auto showMenu() -> void override
Called before update each frame, for calling ImGui editor code relevant to the gameObject.
Definition Component.cpp:30
ComponentTypeEnum
This enum lists out every type of component we have.
Definition Component.h:35
@ cDeck
Definition Component.h:45
@ cTutorialScene
Definition Component.h:55
@ cEntityMover
Definition Component.h:63
@ cMainScene
Definition Component.h:50
@ cCollider
Definition Component.h:40
@ cCreditsScene
Definition Component.h:54
@ cMenuPosition
Definition Component.h:65
@ cPhysics
Definition Component.h:37
@ cPlayer
Definition Component.h:46
@ cMenuItem
Definition Component.h:64
@ cBoard
Definition Component.h:47
@ cScene
Definition Component.h:48
@ cOptionsScene
Definition Component.h:53
@ cActionProxy
Definition Component.h:62
@ cButton
Definition Component.h:67
@ cAnimation
Definition Component.h:38
@ cSelector
Definition Component.h:66
@ cTable
Definition Component.h:43
@ cErrorType
Definition Component.h:36
@ cSplashScreenScene
Definition Component.h:57
@ cMenu
Definition Component.h:61
@ cFlags
Definition Component.h:59
@ cBackground
Definition Component.h:56
@ cWinScreenScene
Definition Component.h:58
@ cMainMenuScene
Definition Component.h:51
@ cTransform
Definition Component.h:39
@ cBehavior
Definition Component.h:42
@ cCard
Definition Component.h:44
@ cSelectable
Definition Component.h:60
@ cPauseScene
Definition Component.h:49
@ cConfirmDestructiveActionScene
Definition Component.h:52
@ cSprite
Definition Component.h:41
Component(ComponentTypeEnum type, const char *typeName)
Definition Component.cpp:72
auto getEntityParent() const -> Entity *
gets the parent as an Entity.
Definition Component.cpp:106
auto getKey() const -> Key override
Generates a unique Key that corresponds to the GameObject.
Definition Component.cpp:25
the base class for the engine, most things inherit from this.
Definition GameObject.h:77
std::string typeName
the typeName of a GameObject.
Definition GameObject.h:527
GameObject(std::string typeName, gobj::Type parentType, gobj::Type type)
constructor for gameobject.
Definition GameObject.cpp:23
Definition Component.cpp:81
Definition Component.h:121
auto operator()(const Component *left, const Component *right) const -> bool
Definition Component.h:122