public GameController(InnerSphereBuilder isBuilder, RegimentBuilder regimentBuilder, ISONetworkManager networkManager, LocalPlayerManager localPlayerManager, CameraHandler cameraHandler, MouseHandler mouseHandler, Signals.FactionSelected factionSelectedSignal, Signals.FatalError fatalErrorSignal) { _isBuilder = isBuilder; _regimentBuilder = regimentBuilder; _networkManager = networkManager; _localPlayerManager = localPlayerManager; _cameraHandler = cameraHandler; _mouseHandler = mouseHandler; _factionSelectedSignal = factionSelectedSignal; _fatalErrorSignal = fatalErrorSignal; }
public SignalDispatcher(Signals.FactionSelected factionSelectedSignal, Signals.SystemFactionChanged systemFactionChangedSignal, Signals.RegimentMoved regimentMovedSignal, Signals.PlayerJoined playerJoinedSignal, Signals.PlayerDeparted playerDepartedSignal, Signals.FatalError fatalErrorSignal) { _factionSelectedSignal = factionSelectedSignal; _systemFactionChangedSignal = systemFactionChangedSignal; _regimentMovedSignal = regimentMovedSignal; _playerJoinedSignal = playerJoinedSignal; _playerDepartedSignal = playerDepartedSignal; _fatalErrorSignal = fatalErrorSignal; }
public void Dispose() { _factionSelectedSignal -= OnFactionSelected; _fatalErrorSignal -= OnFatalError; }
public void Initialize() { _factionSelectedSignal += OnFactionSelected; _fatalErrorSignal += OnFatalError; }