Skip to content

Commit

Permalink
Remove readonly modifier from Coordinate3D.cs and Coordinate2D.cs, so…
Browse files Browse the repository at this point in the history
… unity can serialize them properly
  • Loading branch information
antouhou committed Aug 4, 2020
1 parent 23e0f0c commit b5daeac
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions HexCore/Coordinate2D.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ namespace HexCore
[Serializable]
public struct Coordinate2D
{
public readonly int X, Y;
public readonly OffsetTypes OffsetType;
public int X, Y;
public OffsetTypes OffsetType;

public Coordinate3D To3D()
{
Expand Down
2 changes: 1 addition & 1 deletion HexCore/Coordinate3D.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace HexCore
[Serializable]
public struct Coordinate3D
{
public readonly int X, Y, Z;
public int X, Y, Z;

public Coordinate2D To2D(OffsetTypes offsetType)
{
Expand Down
2 changes: 1 addition & 1 deletion HexCore/HexCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<RootNamespace>HexCore</RootNamespace>
<Version>4.0.2</Version>
<Version>4.1.0</Version>
<Authors>Anton Suprunchuk</Authors>
<Description>Yet another library to manage hexagonal grids. For docs and usage examples please see the GitHub repo.</Description>
<RepositoryType>Git</RepositoryType>
Expand Down

0 comments on commit b5daeac

Please sign in to comment.