public static void SetFrame(DMIState state, Image <Rgba32> image, DirectionDepth depth, StateDirection direction, int frame) { if (depth == DirectionDepth.One) { state.SetFrame(image, frame); } else { state.SetFrame(image, direction, frame); } }
public StateMetadata(string name, DirectionDepth directionDepth, int frames) { State = name; Dirs = (int)directionDepth; Frames = frames; }