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

15 lines
428 B
C#

namespace SpriteCompiler.Problem
{
using SpriteCompiler.AI;
public sealed class SpriteGeneratorGoalTest : IGoalTest<SpriteGeneratorState>
{
public bool IsGoal(SpriteGeneratorState state)
{
// We have reached our goal when there is no data left to display and we are back in
// 16-bit mode
return state.IsEmpty && state.LongA && state.LongI;
}
}
}