Skip to content

Commit

Permalink
Move ChildType to its own file
Browse files Browse the repository at this point in the history
  • Loading branch information
Majiir committed Sep 1, 2014
1 parent dbd70d7 commit bb759ee
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 16 deletions.
16 changes: 0 additions & 16 deletions Plugin/GeodesicGrid/Cell.cs
Expand Up @@ -6,22 +6,6 @@

namespace Kethane.GeodesicGrid
{
public enum ChildType : byte
{
Down = 0,
Straight = 1,
Up = 2,
}

public static class ChildTypeExtensions
{
public static ChildType Flip(this ChildType dir)
{
if (dir == ChildType.Straight) { return ChildType.Straight; }
return dir == ChildType.Down ? ChildType.Up : ChildType.Down;
}
}

public struct Cell : IEquatable<Cell>
{
private readonly uint index;
Expand Down
19 changes: 19 additions & 0 deletions Plugin/GeodesicGrid/ChildType.cs
@@ -0,0 +1,19 @@

namespace Kethane.GeodesicGrid
{
public enum ChildType : byte
{
Down = 0,
Straight = 1,
Up = 2,
}

public static class ChildTypeExtensions
{
public static ChildType Flip(this ChildType dir)
{
if (dir == ChildType.Straight) { return ChildType.Straight; }
return dir == ChildType.Down ? ChildType.Up : ChildType.Down;
}
}
}
1 change: 1 addition & 0 deletions Plugin/Kethane.csproj
Expand Up @@ -51,6 +51,7 @@
<Compile Include="CompatibilityChecker.cs" />
<Compile Include="GeodesicGrid\CellMap.cs" />
<Compile Include="GeodesicGrid\CellSet.cs" />
<Compile Include="GeodesicGrid\ChildType.cs" />
<Compile Include="InstallCleanup.cs" />
<Compile Include="IWindowToggle.cs" />
<Compile Include="LegacyResourceGenerator.cs" />
Expand Down

0 comments on commit bb759ee

Please sign in to comment.