Cleanup warnings: CS0649 (#5891)

* Clean up

* Remove "struct UpdateTreesJob"

* Use #pragma

* Use #if DEBUG

* More #if DEBUG
This commit is contained in:
B_Kirill
2025-05-10 12:40:15 +10:00
committed by GitHub
parent 2a8b776ee9
commit 4754661467
3 changed files with 4 additions and 18 deletions

View File

@@ -87,11 +87,13 @@ namespace Robust.Client.Graphics.Clyde
if (cmd.Cursor != default)
ptr = _winThreadCursors[cmd.Cursor].Ptr;
#if DEBUG
if (_win32Experience)
{
// Based on a true story.
Thread.Sleep(15);
}
#endif
GLFW.SetCursor(window, ptr);
}

View File

@@ -23,7 +23,9 @@ namespace Robust.Client.Graphics.Clyde
private readonly ISawmill _sawmillGlfw;
private bool _glfwInitialized;
#if DEBUG
private bool _win32Experience;
#endif
public GlfwWindowingImpl(Clyde clyde, IDependencyCollection deps)
{

View File

@@ -621,24 +621,6 @@ public abstract partial class SharedPhysicsSystem
ArrayPool<Vector2>.Shared.Return(worldPoints);
}
private record struct UpdateTreesJob : IRobustJob
{
public IEntityManager EntManager;
public void Execute()
{
var query = EntManager.AllEntityQueryEnumerator<BroadphaseComponent>();
while (query.MoveNext(out var broadphase))
{
broadphase.DynamicTree.Rebuild(false);
broadphase.StaticTree.Rebuild(false);
broadphase.SundriesTree._b2Tree.Rebuild(false);
broadphase.StaticSundriesTree._b2Tree.Rebuild(false);
}
}
}
private void BuildManifolds(Contact[] contacts, int count, ContactStatus[] status, Vector2[] worldPoints)
{
if (count == 0)