public List <AnimationDNABlock> ImportAnimations(string spritesheetKey, string direction) { // Builds all directional animations for a spritesheet var animationList = new List <AnimationDNABlock>(); var builder = new AnimationImportUtil(); animationList.Add(builder.BuildAnimation(_w_importer, spritesheetKey, DirectionType.Up)); animationList.Add(builder.BuildAnimation(_a_importer, spritesheetKey, DirectionType.Left)); animationList.Add(builder.BuildAnimation(_s_importer, spritesheetKey, DirectionType.Down)); animationList.Add(builder.BuildAnimation(_d_importer, spritesheetKey, DirectionType.Right)); return(animationList); }
public List <AnimationDNABlock> ImportAnimations(string spritesheetKey, string direction) { var animationList = new List <AnimationDNABlock>(); var builder = new AnimationImportUtil(); animationList.Add(builder.BuildAnimation(this, spritesheetKey, direction)); return(animationList); }