-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Forgot to add stats/state changes for populators
- Loading branch information
Showing
8 changed files
with
47 additions
and
9 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 |
---|---|---|
|
@@ -14,4 +14,5 @@ | |
|
||
|
||
|
||
|
||
</Project> |
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
18 changes: 18 additions & 0 deletions
18
src/OpenRpg.Core/State/Populators/CompositeStatePopulator.cs
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,18 @@ | ||
using System.Collections.Generic; | ||
using OpenRpg.Core.Stats; | ||
using OpenRpg.Core.Stats.Populators; | ||
using OpenRpg.Core.Variables.Populators; | ||
|
||
namespace OpenRpg.Core.State.Populators | ||
{ | ||
public class CompositeStatePopulator<T> : CompositeVariablePopulator<T>, IStatePopulator<T> where T : IStateVariables | ||
{ | ||
public CompositeStatePopulator(IEnumerable<IPartialStatePopulator<T>> partialPopulators) : base(partialPopulators) | ||
{ | ||
} | ||
|
||
protected CompositeStatePopulator() | ||
{ | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
src/OpenRpg.Core/State/Populators/IPartialStatPopulator.cs
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,12 @@ | ||
using OpenRpg.Core.Stats; | ||
using OpenRpg.Core.Variables.Populators; | ||
|
||
namespace OpenRpg.Core.State.Populators | ||
{ | ||
/// <summary> | ||
/// Acts as a smaller part to be used in conjunction with other populators | ||
/// </summary> | ||
public interface IPartialStatePopulator<in T> : IPartialVariablePopulator<T> where T : IStateVariables | ||
{ | ||
} | ||
} |
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,12 @@ | ||
using OpenRpg.Core.Variables.Populators; | ||
|
||
namespace OpenRpg.Core.State.Populators | ||
{ | ||
/// <summary> | ||
/// Provides a mechanism to populate stats from active effects | ||
/// </summary> | ||
public interface IStatePopulator<in T> : IVariablePopulator<T> where T : IStateVariables | ||
{ | ||
|
||
} | ||
} |
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 |
---|---|---|
@@ -1,12 +1,11 @@ | ||
using OpenRpg.Core.Stats.Variables; | ||
using OpenRpg.Core.Variables.Populators; | ||
|
||
namespace OpenRpg.Core.Stats.Populators | ||
{ | ||
/// <summary> | ||
/// Acts as a smaller part to be used in conjunction with other populators | ||
/// </summary> | ||
public interface IPartialStatPopulator : IPartialVariablePopulator<IStatsVariables> | ||
public interface IPartialStatPopulator<in T> : IPartialVariablePopulator<T> where T : IStatsVariables | ||
{ | ||
} | ||
} |
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