Beispiel #1
0
 private void SkirmishClientUpdatePacketReceived(SkirmishClientUpdatePacket packet, SkirmishSlot slot)
 {
     if (slot != null)
     {
         slot.PlayerName   = packet.PlayerName;
         slot.Ready        = packet.Ready;
         slot.Team         = packet.Team;
         slot.FactionIndex = packet.FactionIndex;
         slot.ColorIndex   = packet.ColorIndex;
     }
 }
Beispiel #2
0
        private void SkirmishClientUpdatePacketReceived(SkirmishClientUpdatePacket packet, SkirmishSlot slot)
        {
            if (slot != null)
            {
                slot.PlayerName   = packet.PlayerName;
                slot.Team         = packet.Team;
                slot.FactionIndex = packet.FactionIndex;
                slot.ColorIndex   = packet.ColorIndex;

                if (packet.StartPosition == 0 || packet.StartPosition == slot.StartPosition || !Settings.Slots.Any(s => s.StartPosition == packet.StartPosition))
                {
                    slot.StartPosition = packet.StartPosition;
                }
            }
        }
Beispiel #3
0
 private void SkirmishClientUpdatePacketReceived(SkirmishClientUpdatePacket packet, (IPEndPoint endPoint, int processId) peer)