-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathGameSessions.cs
More file actions
35 lines (34 loc) · 1.16 KB
/
GameSessions.cs
File metadata and controls
35 lines (34 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using CrypticSource.JsonClasses;
using Newtonsoft.Json;
namespace CrypticSource.Data
{
public class GameSessions
{
public static string JoinRoom(ulong userid)
{
// this part i was very lazy at lmao
return JsonConvert.SerializeObject(new
{
Result = 0,
GameSession = new GameSession
{
GameSessionId = 5555,
PhotonRegionId = "us",
PhotonRoomId = "DormRoom",
Name = "DormRoom",
RoomId = 1,
RoomSceneId = 1,
RoomSceneLocationId = "76d98498-60a1-430c-ab76-b54a29b7a163",
IsSandbox = false,
DataBlobName = "",
PlayerEventId = null,
Private = true,
GameInProgress = false,
MaxCapacity = 4,
IsFull = false
},
RoomDetails = JsonConvert.DeserializeObject<object>(File.ReadAllText(Environment.CurrentDirectory + $"/Data/DormRoom.json"))
});
}
}
}