Class World

Inheritance Relationships

Base Type

  • public std::enable_shared_from_this< World >

Class Documentation

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

Public Functions

World()
~World()
void Load()
void Update(uint32_t elapsedTime)
std::shared_ptr<Map> GetMapAtLocation(uint64_t x, uint64_t y)
std::shared_ptr<Map> GetMapByName(const std::string &name)
std::shared_ptr<Player> CreatePlayer(uint32_t characterId, std::shared_ptr<core::networking::Connection> connection)
const formats::SpawnGroup &GetSpawnGroup(uint64_t id)
std::shared_ptr<Monster> CreateMonster(uint32_t id, int32_t x, int32_t y, float rotation)
void SpawnObject(const std::shared_ptr<Object> &object)