private void FireCompleteMatchListingArrived(bool result, string msg, LobbyClient sender) { if (CompleteMatchListingArrivedInvoker != null) { CompleteMatchListingArrivedInvoker(result, msg, sender); } }
private void FireQuickMatchResultArrived(bool result, string msg, LobbyClient sender) { if (QuickMatchResultArrivedInvoker != null) { QuickMatchResultArrivedInvoker(result, msg, sender); } }
public LobbyClient() : base() { Factory.Instance.Register(typeof(Game), () => { return new Game(); }); m_Instance = this; m_EmptyGame = new ClientGame(new Game(), this, null); }
public ClientGame(Game g, LobbyClient client, ClientGameServerOutboundConnection con) { Connection = con; this.Client = client; this.AbandonedTimestamp = g.AbandonedTimestamp; this.Players = g.Players; this.GameID = g.GameID; this.IsShuttingDown = g.IsShuttingDown; this.Observers = g.Observers; this.Owner = g.Owner; this.Properties = g.Properties; RegisterGamePacketHandler((int)LobbyGameMessageSubType.GameInfoNotification, OnGameInfoNotification); RegisterGamePacketHandler((int)LobbyGameMessageSubType.GamePropertiesUpdateNotification, OnGamePropertiesUpdate); RegisterGamePacketHandler((int)LobbyGameMessageSubType.Chat, OnGameChat); RegisterGamePacketHandler((int)LobbyGameMessageSubType.NewOwner, OnNewGameOwner); }
public ClientGameTB(Game g, LobbyClient client, ClientGameServerOutboundConnection con) : base(g, client, con) { RegisterGamePacketHandler((int)TurnedGameMessageSubType.PhaseUpdate, OnPhaseEntered); RegisterGamePacketHandler((int)TurnedGameMessageSubType.TurnOrderUpdate, OnTurnOrderUpdateReceived); }