-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Using 'ReadOnly' on interfaces and classes that are immutable instead of 'Mutable' 'Immutable' StatModel now has ClearModifiers method
- Loading branch information
Cory Leach
committed
Jan 31, 2023
1 parent
aad5e27
commit c5984e8
Showing
14 changed files
with
40 additions
and
42 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
File renamed without changes.
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
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace Gameframe.StatSheet | ||
{ | ||
/// <summary> | ||
/// Enumerable Set of stat modifiers | ||
/// Generic version | ||
/// </summary> | ||
/// <typeparam name="TKey">Stat key type (Usually an enum)</typeparam> | ||
public interface IReadOnlyStatModifierSet<TKey> : IEnumerable<IStatModifier<TKey>> | ||
{ | ||
IStatModifier<TKey> Get(TKey statName, StatMode mode); | ||
|
||
IEnumerable<IStatModifier<TKey>> Get(StatMode mode); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,16 +1,13 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace Gameframe.StatSheet | ||
{ | ||
/// <summary> | ||
/// Enumerable Set of stat modifiers | ||
/// Generic version | ||
/// Enumerable set of stat modifiers | ||
/// Mutable version | ||
/// </summary> | ||
/// <typeparam name="TKey">Stat key type (Usually an enum)</typeparam> | ||
public interface IStatModifierSet<TKey> : IEnumerable<IStatModifier<TKey>> | ||
/// <typeparam name="TKey"></typeparam> | ||
public interface IStatModifierSet<TKey> : IReadOnlyStatModifierSet<TKey> | ||
{ | ||
IStatModifier<TKey> Get(TKey statName, StatMode mode); | ||
|
||
IEnumerable<IStatModifier<TKey>> Get(StatMode mode); | ||
void Set(IStatModifier<TKey> modifier); | ||
void Set(TKey statType, float value, StatMode mode); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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