Beispiel #1
0
        public ScriptingSystem(Game game) : base(game)
        {
            Flags    = new Dictionary <string, bool>();
            Counters = new CounterCollection();
            Timers   = new TimerCollection(Counters);

            _executionContext = new ScriptExecutionContext(game);

            _activeCoroutines   = new List <ActionResult.ActionContinuation>();
            _finishedCoroutines = new List <ActionResult.ActionContinuation>();
        }
Beispiel #2
0
        public ScriptingSystem(Game game)
            : base(game)
        {
            Flags    = new Dictionary <string, bool>();
            Counters = new CounterCollection();
            Timers   = new TimerCollection(Counters);

            CameraFadeOverlay = AddDisposable(new CameraFadeOverlay(game));

            _executionContext = new ScriptExecutionContext(game);

            TickRate = game.Definition.ScriptingTicksPerSecond;
        }