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

Fired right before a map is entered. Use this event for initializing data structures that depend on map size that need to be initialized before entities are spawned. More...

#include <Maps.hpp>

Public Member Functions

 MapSwitch (const map::Map &map)
 Construct a new MapSwitch event. More...
 

Public Attributes

const map::Mapmap
 The map that is going to be entered. More...
 

Detailed Description

Fired right before a map is entered. Use this event for initializing data structures that depend on map size that need to be initialized before entities are spawned.

Definition at line 22 of file Maps.hpp.

Constructor & Destructor Documentation

◆ MapSwitch()

core::event::MapSwitch::MapSwitch ( const map::Map map)
inline

Construct a new MapSwitch event.

Parameters
mapThe map that is going to be entered

Definition at line 28 of file Maps.hpp.

Member Data Documentation

◆ map

const map::Map& core::event::MapSwitch::map

The map that is going to be entered.

Definition at line 32 of file Maps.hpp.


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