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
4namespace yaze {
5namespace editor {
6
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
15 bool has_pending, bool current_tile_pending, bool can_undo) {
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
Tile16ActionControlState ComputeTile16ActionControlState(bool has_pending, bool current_tile_pending, bool can_undo)