Exemple #1
0
        public void ChangeState(SatelliteFlipbookState NewState)
        {
            if (SatelliteFlipbookState == NewState)
            {
                return;
            }

            SatelliteFlipbookState = NewState;
            Flipbook.AppendAnimationIntoCycle(new List <AnimationInstance>()
            {
                StatePresets[SatelliteFlipbookState]
            }, true);
        }
Exemple #2
0
        public Satellite(Mobile Owner)
        {
            mobile = Owner;
            SatelliteFlipbookState = SatelliteFlipbookState.Idle;
            StatePresets           = SatelliteStatePresets[Owner.MobileType];
            yMovementComponent     = new DefinedAcceleratedMovement();
            currentStartingSpeed   = Parameter.SatelliteMovementStartingSpeed;

#if DEBUG
            debugElemList = new List <DebugElement>()
            {
                new DebugCrosshair(Color.Teal), new DebugCrosshair(Color.Blue),
                new DebugLine(Color.Bisque), new DebugLine(Color.Bisque)
            };

            DebugHandler.Instance.AddRange(debugElemList);
#endif
        }