yaze
0.3.2
Link to the Past ROM Editor
Loading...
Searching...
No Matches
tile16_editor_action_state.h
Go to the documentation of this file.
1
#ifndef YAZE_APP_EDITOR_OVERWORLD_TILE16_EDITOR_ACTION_STATE_H
2
#define YAZE_APP_EDITOR_OVERWORLD_TILE16_EDITOR_ACTION_STATE_H
3
4
namespace
yaze
{
5
namespace
editor {
6
7
struct
Tile16ActionControlState
{
8
bool
can_write_pending
=
false
;
9
bool
can_discard_all
=
false
;
10
bool
can_discard_current
=
false
;
11
bool
can_undo
=
false
;
12
};
13
14
inline
Tile16ActionControlState
ComputeTile16ActionControlState
(
15
bool
has_pending,
bool
current_tile_pending,
bool
can_undo) {
16
Tile16ActionControlState
state;
17
state.
can_write_pending
= has_pending;
18
state.
can_discard_all
= has_pending;
19
state.
can_discard_current
= current_tile_pending;
20
state.
can_undo
= can_undo;
21
return
state;
22
}
23
24
}
// namespace editor
25
}
// namespace yaze
26
27
#endif
// YAZE_APP_EDITOR_OVERWORLD_TILE16_EDITOR_ACTION_STATE_H
yaze::editor::ComputeTile16ActionControlState
Tile16ActionControlState ComputeTile16ActionControlState(bool has_pending, bool current_tile_pending, bool can_undo)
Definition
tile16_editor_action_state.h:14
yaze
Definition
patch_export_usage.cc:8
yaze::editor::Tile16ActionControlState
Definition
tile16_editor_action_state.h:7
yaze::editor::Tile16ActionControlState::can_discard_current
bool can_discard_current
Definition
tile16_editor_action_state.h:10
yaze::editor::Tile16ActionControlState::can_undo
bool can_undo
Definition
tile16_editor_action_state.h:11
yaze::editor::Tile16ActionControlState::can_discard_all
bool can_discard_all
Definition
tile16_editor_action_state.h:9
yaze::editor::Tile16ActionControlState::can_write_pending
bool can_write_pending
Definition
tile16_editor_action_state.h:8
src
app
editor
overworld
tile16_editor_action_state.h
Generated by
1.10.0