Class SpawnData

Inheritance Relationships

Base Type

  • public std::enable_shared_from_this< SpawnData >

Class Documentation

class game::environment::SpawnData : public std::enable_shared_from_this<SpawnData>

Public Types

enum SpawnType


enumerator SPAWN_GROUP
enumerator SPAWN_MONSTER

Public Functions

SpawnData(std::shared_ptr<Map> map)
void Load(const std::shared_ptr<cpptoml::table> &config)
void Spawn()
void TriggerAll(const std::shared_ptr<Object> &object) const

Trigger all monster in this group to the given object.

void RemoveFromGroup(const std::shared_ptr<Monster> &monster)

Removes the given monster from this group e.g. if the monster died.