yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
editor_context.h
Go to the documentation of this file.
1#ifndef YAZE_APP_EDITOR_CORE_EDITOR_CONTEXT_H_
2#define YAZE_APP_EDITOR_CORE_EDITOR_CONTEXT_H_
3
5
6namespace yaze {
7class Rom;
8
9namespace editor {
10
12public:
13 explicit GlobalEditorContext(EventBus& bus) : bus_(bus) {}
14
15 EventBus& GetEventBus() { return bus_; }
16 const EventBus& GetEventBus() const { return bus_; }
17
18 void SetCurrentRom(Rom* rom) { rom_ = rom; }
19 Rom* GetCurrentRom() const { return rom_; }
20
21 void SetSessionId(size_t id) { session_id_ = id; }
22 size_t GetSessionId() const { return session_id_; }
23
24private:
26 Rom* rom_ = nullptr;
27 size_t session_id_ = 0;
28};
29
30} // namespace editor
31} // namespace yaze
32
33#endif // YAZE_APP_EDITOR_CORE_EDITOR_CONTEXT_H_
The Rom class is used to load, save, and modify Rom data. This is a generic SNES ROM container and do...
Definition rom.h:24
const EventBus & GetEventBus() const