-
Notifications
You must be signed in to change notification settings - Fork 258
Expand file tree
/
Copy pathDebugService.h
More file actions
82 lines (62 loc) · 2.16 KB
/
Copy pathDebugService.h
File metadata and controls
82 lines (62 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#pragma once
#include <Actor.h>
struct World;
struct ImguiService;
struct UpdateEvent;
struct DialogueEvent;
struct SubtitleEvent;
struct MoveActorEvent;
struct TransportService;
struct BSAnimationGraphManager;
/**
* @brief Manages the debuggers.
*/
struct DebugService
{
DebugService(entt::dispatcher& aDispatcher, World& aWorld, TransportService& aTransport, ImguiService& aImguiService);
~DebugService() noexcept = default;
TP_NOCOPYMOVE(DebugService);
void OnUpdate(const UpdateEvent&) noexcept;
void OnDialogue(const DialogueEvent&) noexcept;
void OnSubtitle(const SubtitleEvent&) noexcept;
void OnMoveActor(const MoveActorEvent&) noexcept;
void SetDebugId(const uint32_t aFormId) noexcept;
protected:
void OnDraw() noexcept;
private:
void PlaceActorInWorld() noexcept;
void DisplayEntities() noexcept;
void DisplayObjects() noexcept;
void DisplayEntityPanel(entt::entity aEntity) noexcept;
void DisplayFormComponent(FormIdComponent& aFormComponent) const noexcept;
void DisplayLocalComponent(LocalComponent& aLocalComponent, const uint32_t acFormId) const noexcept;
void DisplayRemoteComponent(RemoteComponent& aLocalComponent, const entt::entity acEntity, const uint32_t acFormId) const noexcept;
void DrawEntitiesView();
void DrawComponentDebugView();
void DrawPlayerDebugView();
void DrawAnimDebugView();
void DrawContainerDebugView();
void DrawFormDebugView();
void DrawSkillView();
void DrawNetworkView();
void DrawPartyView();
void DrawActorValuesView();
void DrawQuestDebugView();
void DrawCellView();
void DrawProcessView();
entt::dispatcher& m_dispatcher;
TransportService& m_transport;
World& m_world;
Vector<GamePtr<Actor>> m_actors;
uint32_t m_formId = 0;
uint32_t ActorID = 0;
String VoiceFile = "";
uint32_t SubActorID = 0;
String SubtitleText = "";
entt::scoped_connection m_updateConnection;
entt::scoped_connection m_drawImGuiConnection;
entt::scoped_connection m_dialogueConnection;
bool m_showDebugStuff = false;
bool m_showBuildTag = true;
bool m_drawComponentsInWorldSpace = false;
};