Example #1
0
 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;
 }
Example #3
0
 public void Dispose()
 {
     _factionSelectedSignal -= OnFactionSelected;
     _fatalErrorSignal      -= OnFatalError;
 }
Example #4
0
 public void Initialize()
 {
     _factionSelectedSignal += OnFactionSelected;
     _fatalErrorSignal      += OnFatalError;
 }