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