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"); } }
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 }
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 }