public AnimationPlayer GetAnimationPlayer(DwarfSprites.LayerStack stack, String Anim = "IdleFORWARD") { foreach (var animation in Library.LoadNewLayeredAnimationFormat(ContentPaths.dwarf_animations)) { if (animation.Key == Anim) { return(new AnimationPlayer(stack.ProxyAnimation(animation.Value))); } } return(null); }
public DwarfAnimationProxy(LayerStack Owner) { this.Owner = Owner; }