You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
720 B

using System.Collections.Generic;
namespace Networking {
public class Room {
public struct ClientProperties {
public bool IsLeader;
public bool IsReady;
public int ColorId;
}
public Room(string id, string name, int leaderId, int maxPlayers) {
Id = id;
Name = name;
LeaderId = leaderId;
MaxPlayers = maxPlayers;
}
public string Id { get; }
public string Name { get; }
public bool IsLocked { get; set; }
public int LeaderId { get; }
public int MaxPlayers { get; }
public Dictionary<int, string> Players { get; set; }
}
}