Peoplemon  0.1.0
Peoplemon 3 game source documentation
MapChangeContext.hpp
Go to the documentation of this file.
1 #ifndef CORE_SCRIPTS_MAPCHANGECONTEXT_HPP
2 #define CORE_SCRIPTS_MAPCHANGECONTEXT_HPP
3 
4 #include <BLIB/Scripts.hpp>
5 #include <cstdint>
6 
7 namespace core
8 {
9 namespace system
10 {
11 class Systems;
12 }
13 
14 namespace script
15 {
22 class MapChangeContext : public bl::script::Context {
23 public:
32  MapChangeContext(system::Systems& systems, const std::string& prevMap,
33  const std::string& newMap, std::uint16_t spawn);
34 
35 protected:
36  virtual void addCustomSymbols(bl::script::SymbolTable& table) const override;
37 
38 private:
39  system::Systems& systems;
40  const std::string prevMap;
41  const std::string newMap;
42  const std::uint16_t spawn;
43 };
44 
45 } // namespace script
46 } // namespace core
47 
48 #endif
Core classes and functionality for both the editor and game.
Special context for map enter and exit scripts.
MapChangeContext(system::Systems &systems, const std::string &prevMap, const std::string &newMap, std::uint16_t spawn)
Construct a new Map ChangeContext.
virtual void addCustomSymbols(bl::script::SymbolTable &table) const override
Owns all primary systems and a reference to the engine.
Definition: Systems.hpp:47