Merge pull request #993 from ComicIronic/add_collision_group_tag

Mark CollisionGroup as flag names for engine collision masks
This commit is contained in:
Víctor Aguilera Puerto
2020-05-25 02:24:15 +02:00
committed by GitHub
2 changed files with 9 additions and 1 deletions

View File

@@ -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,

View File

@@ -20,7 +20,12 @@
- type: Collidable
shapes:
- !type:PhysShapeAabb
layer: 31
layer:
- Opaque
- Impassable
- MobImpassable
- VaultImpassable
- SmallImpassable
- type: Damageable
- type: Destructible
thresholdvalue: 100