public ModSkinAnimationDfnXml this[ChaAnimType chaAnimType] { get { return(SkinAnimations.Where(o => o.Type == chaAnimType).FirstOrDefault()); } }
public string GetAnimationNameByType(ChaAnimType characterAnimationType) { var findAnims = anims.Where(o => o.Type == characterAnimationType); if (findAnims.Count() > 0) { return(findAnims.ElementAt(0).AnimationState.AnimationName); } else { return(null); } }
public CharacterAnimation(string name, AnimationState animationState, ChaAnimType type) { this.name = name; this.animationState = animationState; this.type = type; }