Пример #1
0
        public NGAnimation GetByName(string Name)
        {
            NGAnimation _TmpReturn = null;

            _TmpReturn = Animations[_AnimationNameToIndexCache[Name]];
            return(_TmpReturn);
        }
Пример #2
0
        public void AddAnimation(NGAnimation NewAnimation)
        {
            if (Animations.Where(x => x.IDValue == NewAnimation.IDValue).Count() > 0)
            {
                int _IPos = RemoveAnimation(NewAnimation.IDValue);

                if (_IPos != -1)
                {
                    Animations.Insert(_IPos, NewAnimation);
                }
                else
                {
                    Animations.Add(NewAnimation);
                }
            }
            else
            {
                Animations.Add(NewAnimation);
            }

            UpdateCache();
        }