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

Window for editing an individual item in the item database. More...

#include <ItemEditorWindow.hpp>

Public Types

using OnChange = std::function< void()>
 Callback signature for when an item is modified. More...
 

Public Member Functions

 ItemEditorWindow (core::file::ItemDB &db, const OnChange &onChange)
 Construct a new Item Editor Window. More...
 
void open (bl::gui::GUI *parent, core::item::Id item)
 Open the editor window. More...
 

Detailed Description

Window for editing an individual item in the item database.

Definition at line 19 of file ItemEditorWindow.hpp.

Member Typedef Documentation

◆ OnChange

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

Callback signature for when an item is modified.

Definition at line 22 of file ItemEditorWindow.hpp.

Constructor & Destructor Documentation

◆ ItemEditorWindow()

editor::component::ItemEditorWindow::ItemEditorWindow ( core::file::ItemDB db,
const OnChange onChange 
)

Construct a new Item Editor Window.

Parameters
dbThe item database
onChangeCallback for when an item is changed

Definition at line 17 of file ItemEditorWindow.cpp.

Member Function Documentation

◆ open()

void editor::component::ItemEditorWindow::open ( bl::gui::GUI *  parent,
core::item::Id  item 
)

Open the editor window.

Parameters
parentThe parent GUI object
itemThe item to populate for, or Unknown for a new item

Definition at line 70 of file ItemEditorWindow.cpp.


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