Ditch Newtonsoft.Json in favor of System.Text.Json

This commit is contained in:
Sardelka9515
2023-03-19 15:13:24 +08:00
parent 0cb1098819
commit 713e005975
22 changed files with 56 additions and 76 deletions

View File

@ -1,5 +1,5 @@
using Newtonsoft.Json;
using System.Runtime.InteropServices;
using System.Runtime.InteropServices;
using System.Text.Json.Serialization;
namespace RageCoop.Core.Scripting
{
@ -44,10 +44,10 @@ namespace RageCoop.Core.Scripting
[JsonIgnore]
private CustomEventHandlerDelegate _managedHandler; // Used to keep GC reference
[JsonProperty]
[JsonInclude]
public ulong FunctionPtr { get; private set; }
[JsonProperty]
[JsonInclude]
public string Directory { get; private set; }
/// <summary>