Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions OMI Filetypes Library/Formats/GameRuleFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
using System.Collections.Generic;
using System.Data;
using System.IO.Compression;
using Newtonsoft.Json;
using System.Linq;

using OMI.Workers.GameRule;

namespace OMI.Formats.GameRule
Expand Down Expand Up @@ -301,6 +303,7 @@ public sealed class GameRule

public string Name { get; } = string.Empty;

[JsonIgnore]
public GameRule Parent => _parent;
private GameRule _parent = null;
private Dictionary<string, string> _parameters { get; } = new Dictionary<string, string>();
Expand Down
6 changes: 6 additions & 0 deletions OMI Filetypes Library/OMI Filetype Library.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Newtonsoft.Json">
<HintPath>..\..\..\..\..\.nuget\packages\newtonsoft.json\13.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Drawing" />
Expand Down Expand Up @@ -107,6 +110,9 @@
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json">
<Version>13.0.3</Version>
</PackageReference>
<PackageReference Include="SharpZipLib">
<Version>1.4.2</Version>
</PackageReference>
Expand Down