Very early & WIP version of multiplayer
This commit is contained in:
29 files changed
+10951
-6
No files matched your search
@@ -0,0 +1,7 @@
|
||||
public class MultiplayerBerry {
|
||||
public string ID { get; set; }
|
||||
public string Type { get; set; }
|
||||
public float PosX { get; set; }
|
||||
public long Timestamp { get; set; }
|
||||
public bool Spawned { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fb1a97212b8704ea0985bec3ed3a0896
|
||||
@@ -0,0 +1,52 @@
|
||||
using System.Numerics;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using UnityEngine.Scripting;
|
||||
|
||||
[Preserve]
|
||||
public class MultiplayerPlayerIconData {
|
||||
[Preserve]
|
||||
[JsonProperty("icon")]
|
||||
public int Icon { get; set; }
|
||||
|
||||
[Preserve]
|
||||
[JsonProperty("overlay")]
|
||||
public int Overlay { get; set; }
|
||||
|
||||
[Preserve]
|
||||
[JsonProperty("iconColor")]
|
||||
public JArray IconColor { get; set; }
|
||||
|
||||
[Preserve]
|
||||
[JsonProperty("overlayColor")]
|
||||
public JArray OverlayColor { get; set; }
|
||||
|
||||
[Preserve]
|
||||
[JsonProperty("customIcon")]
|
||||
public string CustomIcon { get; set; }
|
||||
}
|
||||
|
||||
public class MultiplayerPlayerFromResponse {
|
||||
[Preserve]
|
||||
[JsonProperty("id")]
|
||||
public string ID { get; set; }
|
||||
|
||||
[Preserve]
|
||||
[JsonProperty("userId")]
|
||||
public BigInteger UserID { get; set; }
|
||||
[Preserve]
|
||||
[JsonProperty("username")]
|
||||
public string Username { get; set; }
|
||||
|
||||
[Preserve]
|
||||
[JsonProperty("admin")]
|
||||
public bool Admin { get; set; }
|
||||
|
||||
[Preserve]
|
||||
[JsonProperty("timestamp")]
|
||||
public long JoinedAt { get; set; }
|
||||
|
||||
[Preserve]
|
||||
[JsonProperty("iconData")]
|
||||
public MultiplayerPlayerIconData IconData { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 202aaab112ee946b1be7b8cc67e05fa1
|
||||
@@ -0,0 +1,6 @@
|
||||
public class MultiplayerUser {
|
||||
public string ID { get; set; }
|
||||
public string Username { get; set; }
|
||||
public bool Admin { get; set; }
|
||||
public long JoinedAt { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a4d4480ccb36440fca48a0444dfc7733
|
||||
Reference in new issue
Block a user