Example #1
0
        public override Timeline Copy(AnimationClass.AnimationLayer ActiveLayer)
        {
            ChargeAttackTimeline NewTimeline = new ChargeAttackTimeline(Owner);

            NewTimeline._ShootSecondaryWeapon = _ShootSecondaryWeapon;
            NewTimeline.MaxCharge             = MaxCharge;

            NewTimeline.UpdateFrom(this, ActiveLayer);

            return(NewTimeline);
        }
Example #2
0
        public override List <VisibleTimeline> CreateNewEditorItem(AnimationClass ActiveAnimation, AnimationClass.AnimationLayer ActiveLayer, int KeyFrame, System.Drawing.Point MousePosition)
        {
            List <VisibleTimeline> ReturnValue = new List <VisibleTimeline>();

            ChargeAttackTimeline NewDamageTimeline = new ChargeAttackTimeline(Owner);

            NewDamageTimeline.Position   = new Vector2(535, 170);
            NewDamageTimeline.SpawnFrame = KeyFrame;
            NewDamageTimeline.DeathFrame = KeyFrame + 10;
            NewDamageTimeline.IsUsed     = true;//Disable the spawner as we spawn the Timeline manually.
            NewDamageTimeline.Add(KeyFrame, new VisibleAnimationObjectKeyFrame(new Vector2(NewDamageTimeline.Position.X, NewDamageTimeline.Position.Y),
                                                                               true, -1));

            ReturnValue.Add(NewDamageTimeline);

            return(ReturnValue);
        }