private void SetAnimationTexture(AnimationGroup Group, Texture2D Texture) { foreach (var Ani in Group.AllAnimations()) { Ani.Value.Texture = Texture; } }
private void SetAnimationOffset(AnimationGroup Group, int Index, bool HasBow) { IntLocation Norm = new IntLocation(Index % 16 * 64, Index / 16 * 24); IntLocation Bow = new IntLocation(Index % 16 * 64 + 24, Index / 16 * 24); foreach (var Ani in Group.AllAnimations()) { if ((int)Ani.Key >= 8) { if (HasBow) { Ani.Value.Offset = Bow; } else { Ani.Value.Offset = Norm; } } else { Ani.Value.Offset = Norm; } } }