Files
RobustToolbox/Robust.Shared/GameObjects/Components/Collidable/CollisionChangeEvent.cs
T
metalgearslothandGitHub 07c5a38582 Issue collision change events on entity spawns again (#2828)
I thought I'd think of something better for pathfinding but I did not.
2022-05-16 13:17:48 +10:00

17 lines
365 B
C#

namespace Robust.Shared.GameObjects
{
[ByRefEvent]
public readonly struct CollisionChangeEvent
{
public readonly PhysicsComponent Body;
public readonly bool CanCollide;
public CollisionChangeEvent(PhysicsComponent body, bool canCollide)
{
Body = body;
CanCollide = canCollide;
}
}
}