Peoplemon  0.1.0
Peoplemon 3 game source documentation
BaseFunctions.hpp
Go to the documentation of this file.
1 #ifndef CORE_SCRIPTS_BASEFUNCTIONS_HPP
2 #define CORE_SCRIPTS_BASEFUNCTIONS_HPP
3 
4 #include <BLIB/Scripts/SymbolTable.hpp>
5 #include <BLIB/Tilemap/Position.hpp>
6 
14 namespace core
15 {
16 namespace system
17 {
18 class Systems;
19 }
20 
22 namespace script
23 {
30 struct BaseFunctions {
37  static void addDefaults(bl::script::SymbolTable& table, system::Systems& systems);
38 
46  static bl::script::Value makePosition(const bl::tmap::Position& pos);
47 };
48 
49 } // namespace script
50 } // namespace core
51 
52 #endif
Core classes and functionality for both the editor and game.
Adds the built-in default functions to all Peoplemon scripts.
static bl::script::Value makePosition(const bl::tmap::Position &pos)
Helper function for other script functions to make script position values from the position component...
static void addDefaults(bl::script::SymbolTable &table, system::Systems &systems)
Adds the universal built-in functions to the given symbol table.
Owns all primary systems and a reference to the engine.
Definition: Systems.hpp:47