Beispiel #1
0
 public void AddNetUpdateToAllplayers(NetUpdate netUpdate)
 {
     foreach (var c in _newNetUpdates)
     {
         AddNetUpdateToPlayer(c.Key, netUpdate);
     }
 }
Beispiel #2
0
 public void AddNetUpdateToAllExceptPlayer(long playerID, NetUpdate netUpdate)
 {
     foreach (var c in _newNetUpdates)
     {
         if (c.Key != playerID)
         {
             AddNetUpdateToPlayer(c.Key, netUpdate);
         }
     }
 }
Beispiel #3
0
        protected void AddMessage(IConctract message, SendOptions sendOption)
        {
            var netUpdate = new NetUpdate(message, sendOption);

            AddMessage(netUpdate);
        }
Beispiel #4
0
 protected void AddMessage(NetUpdate netUpdate)
 {
     UpdateEvents.Add(netUpdate);
     _hasUpdatedEvent = true;
 }
Beispiel #5
0
        public void AddNetUpdateToAllExceptPlayer(long playerID, IConctract message, SendOptions sendOption)
        {
            var netUpdate = new NetUpdate(message, sendOption);

            AddNetUpdateToAllExceptPlayer(playerID, netUpdate);
        }
Beispiel #6
0
 public void AddNetUpdateToPlayer(long playerID, NetUpdate netUpdate)
 {
     _newNetUpdates[playerID].Add(netUpdate);
 }
Beispiel #7
0
        public void AddNetUpdateToAllplayers(IConctract message, SendOptions sendOption)
        {
            var netUpdate = new NetUpdate(message, sendOption);

            AddNetUpdateToAllplayers(netUpdate);
        }