2018-10-30 01:13:10 -07:00
|
|
|
|
using System;
|
2019-09-03 13:14:04 -07:00
|
|
|
|
using JetBrains.Annotations;
|
2018-10-30 01:13:10 -07:00
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared.Physics
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Defined collision groups for the physics system.
|
|
|
|
|
|
/// </summary>
|
2019-09-03 13:14:04 -07:00
|
|
|
|
[Flags, PublicAPI]
|
2018-10-30 01:13:10 -07:00
|
|
|
|
public enum CollisionGroup
|
|
|
|
|
|
{
|
2019-09-03 13:14:04 -07:00
|
|
|
|
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,
|
2018-10-30 01:13:10 -07:00
|
|
|
|
}
|
|
|
|
|
|
}
|