Skip to content

Commit

Permalink
fix: unresolved dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaslagoni committed Dec 11, 2022
1 parent 121269a commit cc92650
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 33 deletions.
11 changes: 2 additions & 9 deletions Oxide.Ext.GamingApi/GamingApiExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,12 @@ public GamingApiExtension(ExtensionManager manager) : base(manager)
Player p = new Player() { Name = "Test", Id = "TEST", Address = "123", AdditionalProperties = new Dictionary<string, object>()};
p.AdditionalProperties.Add("TEST", 123);

JsonSerializerSettings settings = new JsonSerializerSettings
{
TypeNameHandling = TypeNameHandling.Auto,
ContractResolver = OmitTypeNamesOnDynamicsResolver.Instance,
Formatting = Formatting.Indented,
Converters= new List<JsonConverter> { new PlayerConverter() }
};
var json = JsonConvert.SerializeObject(p, settings);
var json = JsonConvert.SerializeObject(p);
Interface.Oxide.LogInfo("[GamingApi Ext] Serialized message " + json);

Asyncapi.Nats.Client.Models.Player p2 = new Asyncapi.Nats.Client.Models.Player() { Name = "Test", Id = "TEST", Address = "123", AdditionalProperties = new Dictionary<string, object>() };
p2.AdditionalProperties.Add("TEST", 123);
var json3 = JsonConvert.SerializeObject(p2, settings);
var json3 = JsonConvert.SerializeObject(p2);
Interface.Oxide.LogInfo("[GamingApi Ext] Serialized message " + json3);
}

Expand Down
23 changes: 0 additions & 23 deletions Oxide.Ext.GamingApi/OmitTypeNamesOnDynamicsResolver.cs

This file was deleted.

2 changes: 1 addition & 1 deletion Oxide.Ext.GamingApi/Oxide.Ext.GamingApi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<ItemGroup>
<Reference Include="Microsoft.CSharp" />
<Reference Include="NewtonsoftAlias.Json">
<HintPath>..\..\rust-csharp-game-api\NewtonsoftAlias.Json.dll</HintPath>
<HintPath>..\NewtonsoftAlias.Json.dll</HintPath>
</Reference>
<Reference Include="Oxide.Core, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
Expand Down

0 comments on commit cc92650

Please sign in to comment.