Skip to content

Commit

Permalink
Removed computed notion
Browse files Browse the repository at this point in the history
Realised all of this can be expressed via effects
  • Loading branch information
grofit committed Jun 20, 2022
1 parent d43b007 commit f45a2a8
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 48 deletions.
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 0.22.{build}
version: 0.23.{build}
branches:
only:
- master
Expand Down
1 change: 0 additions & 1 deletion src/OpenRpg.Core/Stats/IHasStats.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ namespace OpenRpg.Core.Stats
public interface IHasStats
{
IStatsVariables Stats { get; }
IComputedStatsVariables ComputedStats { get; }
}
}
13 changes: 0 additions & 13 deletions src/OpenRpg.Core/Stats/Variables/DefaultComputedStatsVariabless.cs

This file was deleted.

7 changes: 0 additions & 7 deletions src/OpenRpg.Core/Stats/Variables/IComputedStatsVariables.cs

This file was deleted.

4 changes: 2 additions & 2 deletions src/OpenRpg.Core/Stats/Variables/IStatPopulator.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using OpenRpg.Core.Variables.Computed;
using OpenRpg.Core.Variables;

namespace OpenRpg.Core.Stats.Variables
{
public interface IStatPopulator : IComputedVariablePopulator<IComputedStatsVariables>
public interface IStatPopulator : IVariablePopulator<IStatsVariables>
{
}
}
3 changes: 0 additions & 3 deletions src/OpenRpg.Core/Types/CoreVariableTypes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,5 @@ public interface CoreVariableTypes
public static int RaceTemplateVariables = 2;
public static int ClassTemplateVariables = 3;
public static int ClassVariables = 4;

// Computed Types
public static int ComputedStatsVariables = 1000;
}
}
10 changes: 0 additions & 10 deletions src/OpenRpg.Core/Variables/Computed/IComputedVariablePopulator.cs

This file was deleted.

11 changes: 0 additions & 11 deletions src/OpenRpg.Core/Variables/Computed/IComputedVariables.cs

This file was deleted.

10 changes: 10 additions & 0 deletions src/OpenRpg.Core/Variables/IVariablePopulator.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using System.Collections.Generic;
using OpenRpg.Core.Effects;

namespace OpenRpg.Core.Variables
{
public interface IVariablePopulator<out T> where T : IVariables
{
T Populate(IReadOnlyCollection<Effect> activeEffects, IReadOnlyCollection<IVariables> variables);
}
}

0 comments on commit f45a2a8

Please sign in to comment.