Skip to content

Commit

Permalink
Do not serialize sockets
Browse files Browse the repository at this point in the history
  • Loading branch information
OndrejNepozitek committed Dec 15, 2023
1 parent a3d2414 commit 2094900
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Edgar/GraphBasedGenerator/Grid2D/Doors/DoorGrid2D.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Edgar.Geometry;
using Edgar.GraphBasedGenerator.Common.Doors;
using Newtonsoft.Json;

namespace Edgar.GraphBasedGenerator.Grid2D
{
Expand All @@ -21,6 +22,7 @@ public class DoorGrid2D
/// <summary>
/// Door socket. Only doors with the same socket (test with .Equals()) can be connected.
/// </summary>
[JsonIgnore]
public IDoorSocket Socket { get; }

public DoorType Type { get; }
Expand Down
2 changes: 2 additions & 0 deletions src/Edgar/GraphBasedGenerator/Grid2D/Doors/DoorLineGrid2D.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Collections.Generic;
using Edgar.Geometry;
using Edgar.GraphBasedGenerator.Common.Doors;
using Newtonsoft.Json;

namespace Edgar.GraphBasedGenerator.Grid2D
{
Expand All @@ -27,6 +28,7 @@ public struct DoorLineGrid2D : IEquatable<DoorLineGrid2D>
/// <summary>
/// Door socket.
/// </summary>
[JsonIgnore]
public IDoorSocket DoorSocket { get; }

public DoorType Type { get; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Collections.Generic;
using Edgar.Geometry;
using Edgar.GraphBasedGenerator.Common.Doors;
using Newtonsoft.Json;

namespace Edgar.GraphBasedGenerator.Grid2D
{
Expand All @@ -24,6 +25,7 @@ public class SimpleDoorModeGrid2D : IDoorModeGrid2D
/// <summary>
/// Door socket. Only doors with the same socket (test with .Equals()) can be connected.
/// </summary>
[JsonIgnore]
public IDoorSocket DoorSocket { get; }

/// <param name="doorLength">See the <seealso cref="DoorLength"/> property.</param>
Expand Down

0 comments on commit 2094900

Please sign in to comment.