Nameless Engine
Loading...
Searching...
No Matches
EditorGameInstance.h
1#pragma once
2
3// Custom.
4#include "game/GameInstance.h"
5
6// External.
7#include "GcPtr.h"
8
9namespace ne {
10 class Window;
11 class GameManager;
12 class EditorCameraNode;
13
21 public:
27 static const char* getEditorWindowTitle();
28
41
47 sgc::GcPtr<EditorCameraNode> getEditorCamera() const;
48
49 virtual ~EditorGameInstance() override = default;
50
51 protected:
58 virtual void onGameStarted() override;
59
68 virtual void onBeforeNewFrame(float timeSincePrevCallInSec) override;
69
70 private:
74 sgc::GcPtr<EditorCameraNode> pCameraNode;
75 };
76
79
82
84 static constexpr auto pEditorWindowTitle = "Nameless Editor";
85 };
86} // namespace ne
Definition: EditorGameInstance.h:20
EditorGcPointers gcPointers
Definition: EditorGameInstance.h:81
void spawnEditorNodesForNewWorld()
Definition: EditorGameInstance.cpp:258
virtual void onBeforeNewFrame(float timeSincePrevCallInSec) override
Definition: EditorGameInstance.cpp:221
virtual void onGameStarted() override
Definition: EditorGameInstance.cpp:119
static constexpr auto pEditorWindowTitle
Definition: EditorGameInstance.h:84
sgc::GcPtr< EditorCameraNode > getEditorCamera() const
Definition: EditorGameInstance.cpp:115
static const char * getEditorWindowTitle()
Definition: EditorGameInstance.cpp:23
Definition: GameInstance.h:32
InputManager * pInputManager
Definition: GameInstance.h:530
GameManager * pGameManager
Definition: GameInstance.h:525
Definition: GameManager.h:34
Definition: InputManager.h:77
Definition: Window.h:198
Definition: EditorGameInstance.h:72
sgc::GcPtr< EditorCameraNode > pCameraNode
Definition: EditorGameInstance.h:74