-
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.
Fixed missing generic and added helper wrappers
- Loading branch information
Showing
4 changed files
with
18 additions
and
2 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 |
---|---|---|
|
@@ -16,4 +16,5 @@ | |
<ProjectReference Include="..\OpenRpg.Core\OpenRpg.Core.csproj" /> | ||
</ItemGroup> | ||
|
||
|
||
</Project> |
7 changes: 7 additions & 0 deletions
7
src/OpenRpg.Combat/Processors/Attacks/Entity/IEntityAttackGenerator.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,7 @@ | ||
using OpenRpg.Core.Stats.Entity; | ||
|
||
namespace OpenRpg.Combat.Processors.Attacks.Entity | ||
{ | ||
public interface IEntityAttackGenerator : IAttackGenerator<IEntityStatsVariables> | ||
{} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/OpenRpg.Combat/Processors/Attacks/Entity/IEntityAttackProcessor.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,7 @@ | ||
using OpenRpg.Core.Stats.Entity; | ||
|
||
namespace OpenRpg.Combat.Processors.Attacks.Entity | ||
{ | ||
public interface IEntityAttackProcessor : IAttackProcessor<IEntityStatsVariables> | ||
{} | ||
} |
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,10 +1,11 @@ | ||
using OpenRpg.Combat.Attacks; | ||
using OpenRpg.Core.Stats; | ||
using OpenRpg.Core.Stats.Entity; | ||
|
||
namespace OpenRpg.Combat.Processors.Attacks | ||
{ | ||
public interface IAttackGenerator | ||
public interface IAttackGenerator<in T> where T : IStatsVariables | ||
{ | ||
Attack GenerateAttack(IStatsVariables stats); | ||
Attack GenerateAttack(T stats); | ||
} | ||
} |