public GameService(ILogger logger, IEventManager events, IRpcHandler rpc, ITickManager tickManager) : base(logger, events, rpc, tickManager) { Logger.Info("Game service started."); Rpc.Event(DMEvents.Spawn).On <SpawnData>(OnSpawnRequested); Rpc.Event(DMEvents.Start).On(OnGameStarted); Rpc.Event(DMEvents.UpdateTimer).On <int>(OnTimerUpdated); Rpc.Event(ServerEvents.MissionEnded).On(OnMissionEnded); TickManager.Attach(MissionTimerTick); }