Beispiel #1
0
 public void Run(
     Services.Settings settings,
     Models.Data.LuaCoreSetting luaCoreState,
     VgcApis.Models.Interfaces.ILuaApis luaApis)
 {
     this.settings    = settings;
     this.coreSetting = luaCoreState;
     this.luaApis     = luaApis;
     this.luaSignal   = new VgcApis.Models.BaseClasses.LuaSignal();
 }
Beispiel #2
0
        List <Controllers.LuaCoreCtrl> InitLuaCores(
            Settings settings,
            VgcApis.Models.Interfaces.ILuaApis luaApis)
        {
            var cores = new List <Controllers.LuaCoreCtrl>();

            foreach (var luaCoreState in settings.GetLuaCoreSettings())
            {
                var luaCtrl = new Controllers.LuaCoreCtrl();
                luaCtrl.Run(settings, luaCoreState, luaApis);
                cores.Add(luaCtrl);
            }
            return(cores);
        }