Peoplemon  0.1.0
Peoplemon 3 game source documentation
Public Member Functions | Public Attributes | List of all members
core::event::SwitchMapTriggered Struct Reference

Fired when the map should be switched to something else. More...

#include <Maps.hpp>

Public Member Functions

 SwitchMapTriggered (const std::string &newMap, int spawn)
 Construct a new Switch Map Triggered event. More...
 

Public Attributes

const std::string newMap
 The new map to switch to. More...
 
const int spawn
 The spawn to start the player at. More...
 

Detailed Description

Fired when the map should be switched to something else.

Definition at line 79 of file Maps.hpp.

Constructor & Destructor Documentation

◆ SwitchMapTriggered()

core::event::SwitchMapTriggered::SwitchMapTriggered ( const std::string &  newMap,
int  spawn 
)
inline

Construct a new Switch Map Triggered event.

Parameters
newMapThe file of the new map
spawnThe spawn to spawn the player at

Definition at line 86 of file Maps.hpp.

Member Data Documentation

◆ newMap

const std::string core::event::SwitchMapTriggered::newMap

The new map to switch to.

Definition at line 91 of file Maps.hpp.

◆ spawn

const int core::event::SwitchMapTriggered::spawn

The spawn to start the player at.

Definition at line 94 of file Maps.hpp.


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