public class RoomInfo
{
	public sbyte id;

	public sbyte roomFree;

	public sbyte roomWait;

	public sbyte boardID;

	public string[] roomName;

	public sbyte lv;

	public sbyte mapID;

	public int stat;

	public string name = string.Empty;

	public string mapName = string.Empty;

	public string playerMax = string.Empty;

	public int money;

	public RoomInfo(sbyte id, sbyte roomFree, sbyte roomWait, sbyte lv)
	{
		this.id = id;
		this.roomFree = roomFree;
		this.roomWait = roomWait;
		this.lv = lv;
	}

	public RoomInfo()
	{
	}

	public void getStat()
	{
		int num = roomFree + roomWait;
		if (num == 0)
		{
			num = 1;
		}
		int num2 = roomFree / num;
		if (num2 >= 0 && num2 <= 0)
		{
			stat = 2;
		}
		else if (num2 > 0 && num2 <= 0)
		{
			stat = 1;
		}
		else if (num2 > 0 && num2 <= 1)
		{
			stat = 0;
		}
	}
}
