Impl(Public *i) : Base(i) { // Setup the GameStateFolder module. binder.init(savedSessionModule) << DENG2_FUNC(GameStateFolder_Convert, "convert", "gameId" << "savegamePath") << DENG2_FUNC(GameStateFolder_ConvertAll, "convertAll", "gameId"); ScriptSystem::get().addNativeModule("SavedSession", savedSessionModule); }
void initMathModule(Binder &binder, Record &mathModule) { binder.init(mathModule) << DENG2_FUNC_NOARG(Math_Random, "random") << DENG2_FUNC (Math_RandInt, "randInt", "low" << "high"); }