A game about forced loneliness, made by TACStudios
1using System; 2using System.Diagnostics; 3 4namespace UnityEngine.TestRunner.TestProtocol 5{ 6 [Serializable] 7 internal class MessageForRetryRepeat 8 { 9 public string type; 10 // Milliseconds since unix epoch 11 public ulong time; 12 public int version; 13 public string phase; 14 public int processId; 15 16 public MessageForRetryRepeat() 17 { 18 type = "TestStatus"; 19 version = 2; 20 phase = "Immediate"; 21 processId = Process.GetCurrentProcess().Id; 22 AddTimeStamp(); 23 } 24 25 public void AddTimeStamp() 26 { 27 time = Convert.ToUInt64((DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalMilliseconds); 28 } 29 30 internal const string UtpPrefix = "\n##utp:"; 31 32 public override string ToString() 33 { 34 var msgJson = JsonUtility.ToJson(this); 35 return $"{UtpPrefix}{msgJson}"; 36 } 37 } 38}