Skip to content
This repository was archived by the owner on Sep 5, 2022. It is now read-only.

Commit e952c45

Browse files
committed
Merge branch 'main' of github.com:Derek-R-S/Light-Reflective-Mirror into docker
2 parents 07ee431 + 13dd094 commit e952c45

File tree

1,100 files changed

+114758
-1806
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,100 files changed

+114758
-1806
lines changed

LRM.png

10.9 KB
Loading

LoadBalancerProject-DONT-IMPORT-INTO-UNITY/LRM_LoadBalancer/Config.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ class Config
1212
public string AuthKey = "AuthKey";
1313
public ushort EndpointPort = 7070;
1414
public ushort RelayEndpointPort = 8080;
15+
public bool ShowDebugLogs = false;
1516
}
1617
}
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
using Newtonsoft.Json;
2+
using System;
3+
using System.Collections.Generic;
4+
5+
namespace LightReflectiveMirror.LoadBalancing
6+
{
7+
// for stats
8+
[Serializable]
9+
public struct RelayServerInfo
10+
{
11+
public int connectedClients;
12+
public int roomCount;
13+
public int publicRoomCount;
14+
public TimeSpan uptime;
15+
16+
[JsonIgnore]
17+
public List<Room> serversConnectedToRelay;
18+
}
19+
20+
[Serializable]
21+
internal struct LoadBalancerStats
22+
{
23+
public int nodeCount;
24+
public TimeSpan uptime;
25+
public long CCU;
26+
public long totalServerCount;
27+
}
28+
29+
// container for relay address info
30+
[JsonObject(MemberSerialization.OptOut)]
31+
public struct RelayAddress
32+
{
33+
public ushort port;
34+
public ushort endpointPort;
35+
public string address;
36+
public LRMRegions serverRegion;
37+
[JsonIgnore]
38+
public string endpointAddress;
39+
}
40+
41+
[Serializable]
42+
public struct Room
43+
{
44+
public string serverId;
45+
public int hostId;
46+
public string serverName;
47+
public string serverData;
48+
public bool isPublic;
49+
public int maxPlayers;
50+
public List<int> clients;
51+
52+
public RelayAddress relayInfo;
53+
}
54+
55+
public enum LRMRegions { Any, NorthAmerica, SouthAmerica, Europe, Asia, Africa, Oceania }
56+
}

LoadBalancerProject-DONT-IMPORT-INTO-UNITY/LRM_LoadBalancer/Endpoint.cs

Lines changed: 0 additions & 183 deletions
This file was deleted.

0 commit comments

Comments
 (0)