![]() |
Peoplemon
0.1.0
Peoplemon 3 game source documentation
|
System that stores and handles saving/loading of save entries for scripts. More...
#include <Scripts.hpp>
Public Member Functions | |
Scripts (Systems &owner) | |
Initializes the scripting system. More... | |
void | init () |
Subscribes to the game event bus. More... | |
const bl::script::Value * | getEntry (const std::string &name) const |
Returns the save entry with the given name. May be null if not found. More... | |
void | setEntry (const std::string &name, const bl::script::Value &val) |
Sets a save entry. More... | |
Friends | |
struct | bl::serial::SerializableObject< Scripts > |
System that stores and handles saving/loading of save entries for scripts.
Definition at line 22 of file Scripts.hpp.
core::system::Scripts::Scripts | ( | Systems & | owner | ) |
Initializes the scripting system.
owner | The main game systems |
Definition at line 10 of file Scripts.cpp.
const bl::script::Value * core::system::Scripts::getEntry | ( | const std::string & | name | ) | const |
Returns the save entry with the given name. May be null if not found.
name | The name of the save entry to get |
Definition at line 15 of file Scripts.cpp.
void core::system::Scripts::init | ( | ) |
Subscribes to the game event bus.
Definition at line 13 of file Scripts.cpp.
void core::system::Scripts::setEntry | ( | const std::string & | name, |
const bl::script::Value & | val | ||
) |
Sets a save entry.
name | The name to set |
val | The value to set to |
Definition at line 20 of file Scripts.cpp.
|
friend |
Definition at line 57 of file Scripts.hpp.