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
4
#include "
app/editor/core/event_bus.h
"
5
6
namespace
yaze
{
7
class
Rom;
8
9
namespace
editor {
10
11
class
GlobalEditorContext
{
12
public
:
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
24
private
:
25
EventBus
&
bus_
;
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_
yaze::EventBus
Definition
event_bus.h:17
yaze::Rom
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
yaze::editor::GlobalEditorContext
Definition
editor_context.h:11
yaze::editor::GlobalEditorContext::SetCurrentRom
void SetCurrentRom(Rom *rom)
Definition
editor_context.h:18
yaze::editor::GlobalEditorContext::GetEventBus
EventBus & GetEventBus()
Definition
editor_context.h:15
yaze::editor::GlobalEditorContext::GetSessionId
size_t GetSessionId() const
Definition
editor_context.h:22
yaze::editor::GlobalEditorContext::session_id_
size_t session_id_
Definition
editor_context.h:27
yaze::editor::GlobalEditorContext::GetEventBus
const EventBus & GetEventBus() const
Definition
editor_context.h:16
yaze::editor::GlobalEditorContext::SetSessionId
void SetSessionId(size_t id)
Definition
editor_context.h:21
yaze::editor::GlobalEditorContext::GetCurrentRom
Rom * GetCurrentRom() const
Definition
editor_context.h:19
yaze::editor::GlobalEditorContext::rom_
Rom * rom_
Definition
editor_context.h:26
yaze::editor::GlobalEditorContext::GlobalEditorContext
GlobalEditorContext(EventBus &bus)
Definition
editor_context.h:13
yaze::editor::GlobalEditorContext::bus_
EventBus & bus_
Definition
editor_context.h:25
event_bus.h
yaze
Definition
application.cc:18
src
app
editor
core
editor_context.h
Generated by
1.10.0