DDraceNetwork Docs
proof_mode.h
Go to the documentation of this file.
1#ifndef GAME_EDITOR_PROOF_MODE_H
2#define GAME_EDITOR_PROOF_MODE_H
3
4#include "component.h"
5
7{
8public:
9 void OnInit(CEditor *pEditor) override;
10 void OnReset() override;
11 void OnMapLoad() override;
12 void RenderScreenSizes();
13
14 bool IsEnabled() const;
15 bool IsModeMenu() const;
16 bool IsModeIngame() const;
17 void Toggle();
18 void SetModeMenu();
19 void SetModeIngame();
20
22 {
26 };
28
30 std::vector<vec2> m_vMenuBackgroundPositions;
31 std::vector<const char *> m_vpMenuBackgroundPositionNames;
32 std::vector<std::vector<int>> m_vMenuBackgroundCollisions;
33
36};
37
38#endif
Definition: component.h:9
Definition: editor.h:276
Definition: proof_mode.h:7
bool IsModeMenu() const
Definition: proof_mode.cpp:223
std::vector< std::vector< int > > m_vMenuBackgroundCollisions
Definition: proof_mode.h:32
void SetModeIngame()
Definition: proof_mode.cpp:238
EProofBorder m_ProofBorders
Definition: proof_mode.h:27
void RenderScreenSizes()
Definition: proof_mode.cpp:93
EProofBorder
Definition: proof_mode.h:22
@ PROOF_BORDER_INGAME
Definition: proof_mode.h:24
@ PROOF_BORDER_OFF
Definition: proof_mode.h:23
@ PROOF_BORDER_MENU
Definition: proof_mode.h:25
void OnReset() override
Definition: proof_mode.cpp:15
std::vector< vec2 > m_vMenuBackgroundPositions
Definition: proof_mode.h:30
void OnInit(CEditor *pEditor) override
Definition: proof_mode.cpp:7
int m_CurrentMenuProofIndex
Definition: proof_mode.h:29
void OnMapLoad() override
Definition: proof_mode.cpp:21
bool IsEnabled() const
Definition: proof_mode.cpp:218
void SetMenuBackgroundPositionNames()
Definition: proof_mode.cpp:27
std::vector< const char * > m_vpMenuBackgroundPositionNames
Definition: proof_mode.h:31
void SetModeMenu()
Definition: proof_mode.cpp:243
bool IsModeIngame() const
Definition: proof_mode.cpp:228
void Toggle()
Definition: proof_mode.cpp:233
void ResetMenuBackgroundPositions()
Definition: proof_mode.cpp:58