Merge pull request #993 from ComicIronic/add_collision_group_tag
Mark CollisionGroup as flag names for engine collision masks
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
using System;
|
||||
using JetBrains.Annotations;
|
||||
using Robust.Shared.Map;
|
||||
using RobustPhysics = Robust.Shared.Physics;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.Physics
|
||||
{
|
||||
@@ -8,6 +10,7 @@ namespace Content.Shared.Physics
|
||||
/// Defined collision groups for the physics system.
|
||||
/// </summary>
|
||||
[Flags, PublicAPI]
|
||||
[FlagsFor(typeof(RobustPhysics.CollisionLayer)), FlagsFor(typeof(RobustPhysics.CollisionMask))]
|
||||
public enum CollisionGroup
|
||||
{
|
||||
None = 0,
|
||||
|
||||
@@ -20,7 +20,12 @@
|
||||
- type: Collidable
|
||||
shapes:
|
||||
- !type:PhysShapeAabb
|
||||
layer: 31
|
||||
layer:
|
||||
- Opaque
|
||||
- Impassable
|
||||
- MobImpassable
|
||||
- VaultImpassable
|
||||
- SmallImpassable
|
||||
- type: Damageable
|
||||
- type: Destructible
|
||||
thresholdvalue: 100
|
||||
|
||||
Reference in New Issue
Block a user