Files
tbd-station-14/Content.Shared/Physics/CollisionGroup.cs
Acruid 9353a060f2 Physics Shapes (#306)
* Removed BoundingBoxComponent.

* Updated prototypes to use refactored CollidableComponent.

* Renamed ICollidable to IPhysBody.
Moved ICollidable to the Shared/Physics namespace.

* Migrated more yaml files to use PhysShapes.

* Updated YAML to use the new list-of-bodies system.

* Updated the new prototypes.

* Update submodule

* Update submodule again, whoops
2019-09-03 22:14:04 +02:00

24 lines
598 B
C#

using System;
using JetBrains.Annotations;
namespace Content.Shared.Physics
{
/// <summary>
/// Defined collision groups for the physics system.
/// </summary>
[Flags, PublicAPI]
public enum CollisionGroup
{
None = 0,
Grid = 1 << 0, // Walls
Mob = 1 << 1, // Mobs, like the player or NPCs
Fixture = 1 << 2, // wall fixtures, like APC or posters
Items = 1 << 3, // Items on the ground
Furniture = 1 << 4, // Tables, machines
// 32 possible groups
MobMask = Grid | Mob | Furniture,
AllMask = -1,
}
}