private void DrawLargeTurretTargets(MyHudLargeTurretTargets largeTurretTargets) { ProfilerShort.Begin("MyGuiScreenHud.DrawLargeTurretTargets"); foreach (var target in largeTurretTargets.Targets) { MyHudEntityParams hudParams = target.Value; if (hudParams.ShouldDraw != null && !hudParams.ShouldDraw()) { continue; } m_markerRender.DrawLocationMarker( m_markerRender.GetStyleForRelation(MyRelationsBetweenPlayerAndBlock.Enemies), target.Key.PositionComp.WorldAABB.Center, hudParams, 0, 0 ); } ProfilerShort.End(); }
private void DrawLargeTurretTargets(MyHudLargeTurretTargets largeTurretTargets) { ProfilerShort.Begin("MyGuiScreenHud.DrawLargeTurretTargets"); foreach (var target in largeTurretTargets.Targets) { MyHudEntityParams hudParams = target.Value; if (hudParams.ShouldDraw != null && !hudParams.ShouldDraw()) continue; m_markerRender.AddTarget(target.Key.PositionComp.WorldAABB.Center); } ProfilerShort.End(); }
private void DrawLargeTurretTargets(MyHudLargeTurretTargets largeTurretTargets) { ProfilerShort.Begin("MyGuiScreenHud.DrawLargeTurretTargets"); foreach (var target in largeTurretTargets.Targets) { MyHudEntityParams hudParams = target.Value; if (hudParams.ShouldDraw != null && !hudParams.ShouldDraw()) continue; m_markerRender.DrawLocationMarker( m_markerRender.GetStyleForRelation(MyRelationsBetweenPlayerAndBlock.Enemies), target.Key.PositionComp.WorldAABB.Center, hudParams, 0, 0 ); } ProfilerShort.End(); }