27#pragma region static_functions
43#pragma region overriden_functions
47 return std::make_unique<HelpScene>(*
this);
55 auto onUpdate(
float dt) ->
void override;
62 auto load(
const Stream& stream) ->
void override;
63 auto save(
Stream& stream)
const ->
void override;
71#pragma region HelpScene_functions
78#pragma region messaging_functions
88#pragma region member_variables
97#pragma region helper_functions
103#pragma region static_variables
sys::Json Stream
Definition AudioObject.h:20
The base class for components, holding all of their shared All components should inherit from this.
nlohmann::json json
Definition Json.cpp:19
ComponentTypeEnum
This enum lists out every type of component we have.
Definition Component.h:39
Component(ComponentTypeEnum type, const char *typeName)
Definition Component.cpp:72
GameObject(std::string typeName, gobj::Type parentType, gobj::Type type)
constructor for gameobject.
Definition GameObject.cpp:24
Definition HelpScene.h:25
std::vector< gfx::Texture * > textures
The images used in help.
Definition HelpScene.h:91
auto operator=(const HelpScene &) -> HelpScene &=default
auto changeArrows(Entity *ent) -> void
Definition HelpScene.cpp:115
auto operator=(HelpScene &&other) noexcept -> HelpScene &=default
friend auto from_json(const json &j, HelpScene &n) -> void
Definition HelpScene.cpp:98
auto leftButtonPressed(const Message *message) -> Message
Definition HelpScene.cpp:199
HelpScene()
Definition HelpScene.cpp:41
static auto bindLuaTypes(sol::state &lua) -> void
Definition HelpScene.h:28
friend auto to_json(json &j, const HelpScene &n) -> void
Definition HelpScene.cpp:90
auto load(const Stream &stream) -> void override
Implementations will load the state of a GameObject from a th::Json Object.
Definition HelpScene.cpp:80
auto onEnterEngine() -> void override
hook that is called when a GameObject enters the Engine tree.
Definition HelpScene.cpp:71
auto disableHelpPopUp(const Message *message) -> Message
Definition HelpScene.cpp:240
auto onUpdate(float dt) -> void override
called once every frame.
Definition HelpScene.cpp:62
auto changeImage() -> void
Definition HelpScene.cpp:107
static auto getEnum() -> ComponentTypeEnum
Definition HelpScene.h:29
auto onRender() -> void override
called every frame after update has been called for every object.
Definition HelpScene.cpp:67
~HelpScene() override=default
auto rightButtonPressed(const Message *message) -> Message
Definition HelpScene.cpp:215
auto endWindow() -> void override
currently unused, but intended to but was assumed to be necessary for a proper ImGui editor
Definition HelpScene.h:57
auto getHelpScale() -> std::pair< Vector4D, Vector4D >
Definition HelpScene.cpp:231
auto clone() const -> std::unique_ptr< GameObject > override
makes a copy a GameObject even if it's held polymorphically
Definition HelpScene.h:45
int currentTexture
An index to keep track of which image was highlighted last.
Definition HelpScene.h:93
auto save(Stream &stream) const -> void override
Implementations will load the state of a GameObject to a th::Json object.
Definition HelpScene.cpp:85
auto linkMessages() -> void
Definition HelpScene.cpp:151