Initial community commit

This commit is contained in:
Jef 2024-09-24 14:54:57 +02:00
parent 537bcbc862
commit fc06254474
16440 changed files with 4239995 additions and 2 deletions

View file

@ -0,0 +1,29 @@
#include "ScriptObjectService.h"
#include <api/script/objects/rootobjcontroller.h>
#include "STimer.h"
ScriptObjectController *script_root=0;
extern TimerScriptController _timerController;
ScriptObjectController *ScriptObjectService::getController(int n)
{
if (n == 0)
return &_timerController;
return 0;
}
void ScriptObjectService::onRegisterClasses(ScriptObjectController *rootController)
{
script_root = rootController;
}
#define CBCLASS ScriptObjectService
START_DISPATCH;
CB(GETCONTROLLER, getController);
VCB(ONREGISTER, onRegisterClasses);
END_DISPATCH;
#undef CBCLASS