added code from unity

This commit is contained in:
Sebastian Bularca
2026-04-06 20:45:22 +02:00
parent a66b4471fa
commit 2872300873
34 changed files with 2164 additions and 2 deletions

20
Runtime/LogEntry.cs Normal file
View File

@@ -0,0 +1,20 @@
using System;
using Newtonsoft.Json;
namespace Jovian.InGameLogging {
[Serializable]
public readonly struct LogEntry {
[JsonProperty] public readonly string message;
[JsonProperty] [JsonConverter(typeof(LogChannelJsonConverter))]
public readonly LogChannel channel;
[JsonProperty] public readonly float gameTime;
public LogEntry(string message, LogChannel channel, float gameTime) {
this.message = message;
this.channel = channel;
this.gameTime = gameTime;
}
}
}