fishbait/ServerProject-DONT-IMPORT-INTO-UNITY/LRM/Room.cs
2021-04-06 21:02:59 -04:00

40 lines
920 B
C#

using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Net;
namespace LightReflectiveMirror
{
[JsonObject(MemberSerialization.OptOut)]
public class Room
{
public string serverId;
public int hostId;
public string serverName;
public string serverData;
public bool isPublic;
public int maxPlayers;
public List<int> clients;
public RelayAddress relayInfo;
[JsonIgnore]
public bool supportsDirectConnect = false;
[JsonIgnore]
public IPEndPoint hostIP;
[JsonIgnore]
public string hostLocalIP;
[JsonIgnore]
public bool useNATPunch = false;
[JsonIgnore]
public int port;
}
[Serializable]
public struct RelayAddress
{
public ushort Port;
public ushort EndpointPort;
public string Address;
}
}