Exemplo n.º 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");
            }
        }
Exemplo n.º 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
        }
Exemplo n.º 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
        }