예제 #1
0
 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);
 }
예제 #2
0
void initMathModule(Binder &binder, Record &mathModule)
{
    binder.init(mathModule)
            << DENG2_FUNC_NOARG(Math_Random, "random")
            << DENG2_FUNC      (Math_RandInt, "randInt", "low" << "high");
}