示例#1
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;
        }
示例#2
0
 public TimerCollection(CounterCollection counters)
 {
     _counters      = counters;
     _timers        = new Dictionary <string, TimerState>();
     _expiredTimers = new List <string>();
 }