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

Editing window for character spawns. Manages NPCs and trainers. More...

#include <CharacterSpawnWindow.hpp>

Public Types

using OnEdit = std::function< void(const core::map::CharacterSpawn *, const core::map::CharacterSpawn &)>
 Callback for when spawns are created or edited. More...
 

Public Member Functions

 CharacterSpawnWindow (const OnEdit &onEdit)
 Creates a new CharacterSpawnWindow. More...
 
void open (bl::gui::GUI *parent, unsigned int level, const sf::Vector2i &pos, const core::map::CharacterSpawn *orig)
 Opens the spawn editing window. More...
 

Detailed Description

Editing window for character spawns. Manages NPCs and trainers.

Definition at line 19 of file CharacterSpawnWindow.hpp.

Member Typedef Documentation

◆ OnEdit

Callback for when spawns are created or edited.

Definition at line 22 of file CharacterSpawnWindow.hpp.

Constructor & Destructor Documentation

◆ CharacterSpawnWindow()

editor::component::CharacterSpawnWindow::CharacterSpawnWindow ( const OnEdit onEdit)

Creates a new CharacterSpawnWindow.

Parameters
onEditCallback for when spawns are edited

Definition at line 35 of file CharacterSpawnWindow.cpp.

Member Function Documentation

◆ open()

void editor::component::CharacterSpawnWindow::open ( bl::gui::GUI *  parent,
unsigned int  level,
const sf::Vector2i &  pos,
const core::map::CharacterSpawn orig 
)

Opens the spawn editing window.

Parameters
parentThe parent GUI object
levelThe level the spawn is on
posThe position the spawn is at
origThe spawn currently in that spot. Nullptr if none

Definition at line 146 of file CharacterSpawnWindow.cpp.


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