public void Run( VgcApis.Interfaces.Services.IApiService api, Settings settings, FormMgrSvc formMgr) { this.settings = settings; this.luaApis = new Models.Apis.LuaApis(api, settings, formMgr); this.luaApis.Prepare(); InitLuaCores(); }
protected override void Start(VgcApis.Interfaces.Services.IApiService api) { var vgcSettings = api.GetSettingService(); settings = new Services.Settings(); luaServer = new Services.LuaServer(); formMgr = new Services.FormMgrSvc(); menuUpdater = new Services.MenuUpdater(settings); settings.Run(vgcSettings); luaServer.Run(api, settings, formMgr); formMgr.Run(settings, luaServer, api); menuUpdater.Run(luaServer, miRoot, miShowMgr, miShowEditor); luaServer.WakeUpAutoRunScripts(TimeSpan.FromSeconds(2)); }