The Battle for Wesnoth  1.19.5+dev
Public Member Functions | Public Attributes | List of all members
actions::undo_event Struct Reference

#include <undo_action.hpp>

Public Member Functions

 undo_event (int fcn_idx, const config &args, const game_events::queued_event &ctx)
 
 undo_event (const config &cmds, const game_events::queued_event &ctx)
 
 undo_event (const config &first, const config &second, const config &weapons, const config &cmds)
 

Public Attributes

utils::optional< int > lua_idx
 
config commands
 
config data
 
map_location loc1
 
map_location loc2
 
map_location filter_loc1
 
map_location filter_loc2
 
std::size_t uid1
 
std::size_t uid2
 
std::string id1
 
std::string id2
 

Detailed Description

Definition at line 25 of file undo_action.hpp.

Constructor & Destructor Documentation

◆ undo_event() [1/3]

actions::undo_event::undo_event ( int  fcn_idx,
const config args,
const game_events::queued_event ctx 
)

◆ undo_event() [2/3]

actions::undo_event::undo_event ( const config cmds,
const game_events::queued_event ctx 
)

◆ undo_event() [3/3]

actions::undo_event::undo_event ( const config first,
const config second,
const config weapons,
const config cmds 
)

Definition at line 73 of file undo_action.cpp.

Member Data Documentation

◆ commands

config actions::undo_event::commands

Definition at line 27 of file undo_action.hpp.

◆ data

config actions::undo_event::data

Definition at line 27 of file undo_action.hpp.

◆ filter_loc1

map_location actions::undo_event::filter_loc1

Definition at line 28 of file undo_action.hpp.

◆ filter_loc2

map_location actions::undo_event::filter_loc2

Definition at line 28 of file undo_action.hpp.

◆ id1

std::string actions::undo_event::id1

Definition at line 30 of file undo_action.hpp.

Referenced by undo_event().

◆ id2

std::string actions::undo_event::id2

Definition at line 30 of file undo_action.hpp.

Referenced by undo_event().

◆ loc1

map_location actions::undo_event::loc1

Definition at line 28 of file undo_action.hpp.

◆ loc2

map_location actions::undo_event::loc2

Definition at line 28 of file undo_action.hpp.

◆ lua_idx

utils::optional<int> actions::undo_event::lua_idx

Definition at line 26 of file undo_action.hpp.

◆ uid1

std::size_t actions::undo_event::uid1

Definition at line 29 of file undo_action.hpp.

Referenced by undo_event().

◆ uid2

std::size_t actions::undo_event::uid2

Definition at line 29 of file undo_action.hpp.

Referenced by undo_event().


The documentation for this struct was generated from the following files: