24 #include "../../engine/Script/RegistryRef.h" 31 namespace HoverScript {
42 namespace HoverScript {
57 virtual void InitEnv();
58 void InitCFn(
const char *name, lua_CFunction fn);
61 void DefineRulebook(
const std::string &name,
const luabind::object &defn);
63 void DefineRules(
const luabind::object &rulesObj);
65 bool RunRulebookScript();
68 static int GenerateSubclass(lua_State *L,
const std::string &base,
69 const std::string &name);
72 static int LPlayer(lua_State *L);
73 static int LRequire(lua_State *L);
74 static int LRulebookStage1(lua_State *L);
75 static int LRulebookStage2(lua_State *L);
76 static int LSession(lua_State *L);
boost::filesystem::path path_t
Definition: OS.h:57
Script::RegistryRef requireCache
Definition: RulebookEnv.h:81
Basic restricted environment for potentially untrusted code.
Definition: RuntimeEnv.h:40
Encapsulates a ref to the registry.
Definition: RegistryRef.h:50
Limited environment for defining rulebooks.
Definition: RulebookEnv.h:48
Util::OS::path_t basePath
Definition: RulebookEnv.h:79
Rulebook & rulebook
Definition: RulebookEnv.h:80
Definition: Announcement.h:24
Defines the rules for a particular game session.
Definition: Rulebook.h:57
A script environment.
Definition: Core.h:66