-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from semihcelek/bugfix/composition-revision
Aspects can't generate to a read-only directory bug is solved.
- Loading branch information
Showing
11 changed files
with
73 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using System; | ||
|
||
namespace Gum.Composer | ||
{ | ||
public readonly struct AspectType : IEquatable<AspectType> | ||
{ | ||
public readonly int Value; | ||
|
||
public AspectType(int value) | ||
{ | ||
Value = value; | ||
} | ||
|
||
public bool Equals(AspectType other) | ||
{ | ||
return Value == other.Value; | ||
} | ||
|
||
public override bool Equals(object obj) | ||
{ | ||
return obj is AspectType other && Equals(other); | ||
} | ||
|
||
public override int GetHashCode() | ||
{ | ||
return Value; | ||
} | ||
|
||
public static implicit operator int(AspectType aspectType) => aspectType.Value; | ||
|
||
public static implicit operator AspectType(int value) => new AspectType(value); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
using Gum.Composer.Generated; | ||
|
||
namespace Gum.Composer | ||
namespace Gum.Composer | ||
{ | ||
public interface IAspect | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters