Files
RobustToolbox/Robust.Shared/Physics/BroadphaseComponent.cs
metalgearsloth 7dce51e2cf Arch PR two electric boogaloo (#4388)
Co-authored-by: DrSmugleaf <drsmugleaf@gmail.com>
Co-authored-by: ElectroJr <leonsfriedrich@gmail.com>
2023-11-23 14:29:37 +11:00

34 lines
945 B
C#

using Robust.Shared.GameObjects;
using Robust.Shared.GameStates;
using Robust.Shared.Physics.BroadPhase;
namespace Robust.Shared.Physics;
/// <summary>
/// Stores the broadphase structure for the relevant grid / map.
/// </summary>
[RegisterComponent, NetworkedComponent]
public sealed partial class BroadphaseComponent : Component
{
/// <summary>
/// Stores all non-static bodies.
/// </summary>
public IBroadPhase DynamicTree = new DynamicTreeBroadPhase();
/// <summary>
/// Stores all static bodies.
/// </summary>
public IBroadPhase StaticTree = new DynamicTreeBroadPhase();
/// <summary>
/// Stores all other non-static entities not in another tree.
/// </summary>
public DynamicTree<EntityUid> SundriesTree = default!;
/// <summary>
/// Stores all other static entities not in another tree.
/// </summary>
public DynamicTree<EntityUid> StaticSundriesTree = default!;
}