示例#1
0
        protected override void DrawDebugBorders(IBatchRenderer sbatch)
        {
            base.DrawDebugBorders(sbatch);

            DrawDebugView(sbatch);

            // ASSERTION
            if (ActiveOperations.Count(p => p is CannonBooster) != BulletBoostCount)
            {
                throw new Exception("Assertion failed TotalBoost == Boosters");
            }
        }
示例#2
0
        protected override void OnDrawOrderedForegroundLayer(IBatchRenderer sbatch)
        {
            DrawCrosshair(sbatch);
            DrawBodyAndBarrel_FG(sbatch);
            DrawCog(sbatch);

            DrawShield(sbatch);

#if DEBUG
            // ASSERTION
            if (ActiveOperations.Count(p => p is CannonBooster) != BulletBoostCount)
            {
                throw new Exception("Assertion failed TotalBoost == Boosters");
            }
#endif
        }
示例#3
0
        protected override void OnDrawOrderedForegroundLayer(IBatchRenderer sbatch)
        {
            DrawCrosshair(sbatch);

            CommonCannonRenderer.DrawBulletCannon_FG(sbatch, Position, Scale, Rotation.ActualValue, barrelRecoil, cannonCogRotation, CannonHealth.ActualValue, Fraction.Color);

            DrawShield(sbatch);

#if DEBUG
            // ASSERTION
            if (ActiveOperations.Count(p => p is CannonBooster) != BulletBoostCount)
            {
                throw new Exception("Assertion failed TotalBoost == Boosters");
            }
#endif
        }