Peoplemon  0.1.0
Peoplemon 3 game source documentation
Public Types | Public Member Functions | List of all members
editor::component::MoveEditorWindow Class Reference

Editor window to edit moves in the move database. More...

#include <MoveEditorWindow.hpp>

Public Types

using OnChange = std::function< void()>
 Callback signature on move change. More...
 

Public Member Functions

 MoveEditorWindow (core::file::MoveDB &moveDb, const OnChange &onChange)
 Construct a new Move Editor Window. More...
 
void open (bl::gui::GUI *parent, core::pplmn::MoveId move)
 Opens the window and populates for the given move. Pass MoveId::Unknown for a new move. More...
 

Detailed Description

Editor window to edit moves in the move database.

Definition at line 20 of file MoveEditorWindow.hpp.

Member Typedef Documentation

◆ OnChange

using editor::component::MoveEditorWindow::OnChange = std::function<void()>

Callback signature on move change.

Definition at line 23 of file MoveEditorWindow.hpp.

Constructor & Destructor Documentation

◆ MoveEditorWindow()

editor::component::MoveEditorWindow::MoveEditorWindow ( core::file::MoveDB moveDb,
const OnChange onChange 
)

Construct a new Move Editor Window.

Parameters
moveDbThe move database
onChangeCallback for when a move is changed

Definition at line 97 of file MoveEditorWindow.cpp.

Member Function Documentation

◆ open()

void editor::component::MoveEditorWindow::open ( bl::gui::GUI *  parent,
core::pplmn::MoveId  move 
)

Opens the window and populates for the given move. Pass MoveId::Unknown for a new move.

Parameters
parentThe parent GUI object
moveThe move to populate for, or Unknown for a new move

Definition at line 213 of file MoveEditorWindow.cpp.


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