Exemplo n.º 1
0
        private static AnimationPack LoadPortal()
        {
            var animations = new AnimationPack(Spell.ImagePath + "portal");

            animations.GetAnimation(AnimationType.Stand).AnimLength = 1300;
            return(animations);
        }
Exemplo n.º 2
0
        private static AnimationPack LoadImpact()
        {
            var animations = new AnimationPack(Spell.ImagePath + "impact", 70);

            animations.GetAnimation(AnimationType.Death).AnimLength = 500;
            return(animations);
        }
Exemplo n.º 3
0
        private static AnimationPack LoadPinkKnight()
        {
            var animations = new AnimationPack(PlayerCharacter.ImagePath + "pink knight");

            animations.GetAnimation(AnimationType.Run).AnimLength = 600;
            return(animations);
        }
Exemplo n.º 4
0
        private static AnimationPack LoadPinkKnightTomb()
        {
            var animations = new AnimationPack(PlayerCharacter.ImagePath + "pink tomb");

            animations.GetAnimation(AnimationType.Birth).AnimLength = 1800;
            return(animations);
        }
Exemplo n.º 5
0
        private static AnimationPack LoadOrangeCultist()
        {
            var animations = new AnimationPack(Mob.ImagePath + "orange cultist");

            animations.GetAnimation(AnimationType.Death).AnimLength = 1500;
            return(animations);
        }
Exemplo n.º 6
0
        private static AnimationPack LoadBomb()
        {
            var animations = new AnimationPack(Spell.ImagePath + "bomb", 16);

            animations.GetAnimation(AnimationType.Stand).AnimLength = 500;
            animations.GetAnimation(AnimationType.Death).AnimLength = 600;
            return(animations);
        }
Exemplo n.º 7
0
        private static AnimationPack LoadHolyball()
        {
            var animations = new AnimationPack(Spell.ImagePath + "holyball");

            animations.GetAnimation(AnimationType.Birth).AnimLength = 300;
            animations.GetAnimation(AnimationType.Stand).AnimLength = 300;
            return(animations);
        }
Exemplo n.º 8
0
        private static AnimationPack LoadCthulhuVoidball()
        {
            var animations = new AnimationPack(Spell.ImagePath + "voidball");

            animations.GetAnimation(AnimationType.Stand).AnimLength = 300;
            animations.GetAnimation(AnimationType.Death).AnimLength = 300;
            return(animations);
        }
Exemplo n.º 9
0
        public static Animation GetBlendAnimationByIndex(AnimationPack animationPack, int index)
        {
            if (animationPack == null || animationPack.BlendAnimations == null || index > animationPack.BlendAnimations.Count)
            {
                return(null);
            }

            return(animationPack.BlendAnimations[index]);
        }
Exemplo n.º 10
0
        private void CompareAnimationPackage(AnimationPack a, AnimationPack b)
        {
            if (a == null || b == null)
            {
                Assert.IsTrue(a == null ? (b == null) : (b != null));
                return;
            }
            Assert.AreEqual(a.ResourceType, b.ResourceType);
            Assert.AreEqual(a.Version, b.Version);

            throw new NotImplementedException();
        }
Exemplo n.º 11
0
 public static Animation[] GetBlendAnimations(AnimationPack ap)
 {
     if (ap == null)
     {
         return(Array.Empty <Animation>());
     }
     if (ap.BlendAnimations == null)
     {
         return(Array.Empty <Animation>());
     }
     return(ap.BlendAnimations.ToArray());
 }
Exemplo n.º 12
0
        private static AnimationPack LoadArrow()
        {
            var animations = new AnimationPack(Spell.ImagePath + "arrow");

            return(animations);
        }
Exemplo n.º 13
0
        private static AnimationPack LoadCthulhuMeteor()
        {
            var animations = new AnimationPack(Spell.ImagePath + "meteor");

            return(animations);
        }
Exemplo n.º 14
0
        private static AnimationPack LoadCthulhuLightning2()
        {
            var animations = new AnimationPack(Spell.ImagePath + "lightning B", 16);

            return(animations);
        }
Exemplo n.º 15
0
        private static AnimationPack LoadCthulhuGhost()
        {
            var animations = new AnimationPack(Mob.ImagePath + "cthulhu ghost");

            return(animations);
        }