![]() |
Peoplemon
0.1.0
Peoplemon 3 game source documentation
|
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... | |
Editing window for character spawns. Manages NPCs and trainers.
Definition at line 19 of file CharacterSpawnWindow.hpp.
using editor::component::CharacterSpawnWindow::OnEdit = std::function<void(const core::map::CharacterSpawn*, const core::map::CharacterSpawn&)> |
Callback for when spawns are created or edited.
Definition at line 22 of file CharacterSpawnWindow.hpp.
editor::component::CharacterSpawnWindow::CharacterSpawnWindow | ( | const OnEdit & | onEdit | ) |
Creates a new CharacterSpawnWindow.
onEdit | Callback for when spawns are edited |
Definition at line 35 of file CharacterSpawnWindow.cpp.
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.
parent | The parent GUI object |
level | The level the spawn is on |
pos | The position the spawn is at |
orig | The spawn currently in that spot. Nullptr if none |
Definition at line 146 of file CharacterSpawnWindow.cpp.