Ejemplo n.º 1
0
 private void FireCompleteMatchListingArrived(bool result, string msg, LobbyClient sender)
 {
     if (CompleteMatchListingArrivedInvoker != null)
     {
         CompleteMatchListingArrivedInvoker(result, msg, sender);
     }
 }
Ejemplo n.º 2
0
 private void FireQuickMatchResultArrived(bool result, string msg, LobbyClient sender)
 {
     if (QuickMatchResultArrivedInvoker != null)
     {
         QuickMatchResultArrivedInvoker(result, msg, sender);
     }
 }
Ejemplo n.º 3
0
 public LobbyClient()
     : base()
 {
     Factory.Instance.Register(typeof(Game), () => { return new Game(); });
     m_Instance = this;
     m_EmptyGame = new ClientGame(new Game(), this, null);
 }
Ejemplo n.º 4
0
        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);
        }
Ejemplo n.º 5
0
        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);
        }
Ejemplo n.º 6
0
 public ClientGameTB(Game g, LobbyClient client, ClientGameServerOutboundConnection con) : base(g, client, con)
 {
     RegisterGamePacketHandler((int)TurnedGameMessageSubType.PhaseUpdate, OnPhaseEntered);
     RegisterGamePacketHandler((int)TurnedGameMessageSubType.TurnOrderUpdate, OnTurnOrderUpdateReceived);
 }
Ejemplo n.º 7
0
 private void FireQuickMatchResultArrived(bool result, string msg, LobbyClient sender)
 {
     if (QuickMatchResultArrivedInvoker != null)
     {
         QuickMatchResultArrivedInvoker(result, msg, sender);
     }
 }
Ejemplo n.º 8
0
 private void FireCompleteMatchListingArrived(bool result, string msg, LobbyClient sender)
 {
     if (CompleteMatchListingArrivedInvoker != null)
     {
         CompleteMatchListingArrivedInvoker(result, msg, sender);
     }
 }