iigs-sprite-compiler/SpriteCompiler/Problem/SpriteGeneratorGoalTest.cs

15 lines
428 B
C#
Raw Normal View History

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;
}
}
}