iigs-sprite-compiler/SpriteCompiler/Problem/SpriteGeneratorStepCost.cs
2016-11-30 08:17:05 -06:00

13 lines
384 B
C#

namespace SpriteCompiler.Problem
{
using SpriteCompiler.AI;
public sealed class SpriteGeneratorStepCost : IStepCostFunction<CodeSequence, SpriteGeneratorState, IntegerPathCost>
{
public IntegerPathCost StepCost(SpriteGeneratorState fromState, CodeSequence action, SpriteGeneratorState toState)
{
return action.CycleCount;
}
}
}