Peoplemon  0.1.0
Peoplemon 3 game source documentation
Static Public Member Functions | List of all members
core::script::BaseFunctions Struct Reference

Adds the built-in default functions to all Peoplemon scripts. More...

#include <BaseFunctions.hpp>

Static Public Member Functions

static void addDefaults (bl::script::SymbolTable &table, system::Systems &systems)
 Adds the universal built-in functions to the given symbol table. More...
 
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. More...
 

Detailed Description

Adds the built-in default functions to all Peoplemon scripts.

Definition at line 30 of file BaseFunctions.hpp.

Member Function Documentation

◆ addDefaults()

void core::script::BaseFunctions::addDefaults ( bl::script::SymbolTable &  table,
system::Systems systems 
)
static

Adds the universal built-in functions to the given symbol table.

Parameters
tableThe table to add the functions to
systemsThe primary systems objects

Definition at line 167 of file BaseFunctions.cpp.

◆ makePosition()

Value core::script::BaseFunctions::makePosition ( const bl::tmap::Position &  pos)
static

Helper function for other script functions to make script position values from the position component.

Parameters
posThe position to convert
Returns
Value A value containing the properties of the position

Definition at line 240 of file BaseFunctions.cpp.


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