forked from Shardstone/trail-into-darkness
added in-game logger
This commit is contained in:
20
Packages/com.jovian.ingame-logging/Runtime/LogEntry.cs
Normal file
20
Packages/com.jovian.ingame-logging/Runtime/LogEntry.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user