Ejemplo n.º 1
0
 public ModSkinAnimationDfnXml this[ChaAnimType chaAnimType]
 {
     get
     {
         return(SkinAnimations.Where(o => o.Type == chaAnimType).FirstOrDefault());
     }
 }
Ejemplo n.º 2
0
        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);
            }
        }
Ejemplo n.º 3
0
 public CharacterAnimation(string name, AnimationState animationState, ChaAnimType type)
 {
     this.name           = name;
     this.animationState = animationState;
     this.type           = type;
 }