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; } }
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; } } }
private void SkirmishClientUpdatePacketReceived(SkirmishClientUpdatePacket packet, (IPEndPoint endPoint, int processId) peer)