Right now ShuttleControllers add the collision component to the Grid Entity.

Adds Grids to the collision group.
This commit is contained in:
Acruid
2020-01-09 18:29:09 -08:00
parent 0db46da30e
commit 51f7f14c08
3 changed files with 13 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
using System;
using JetBrains.Annotations;
using Robust.Shared.Map;
namespace Content.Shared.Physics
{
@@ -17,6 +18,8 @@ namespace Content.Shared.Physics
SmallImpassable = 1 << 4, // 16 Things a smaller object - a cat, a crab - can't go through - a wall, but not a computer terminal or a table
Clickable = 1 << 5, // 32 Temporary "dummy" layer to ensure that objects can still be clicked even if they don't collide with anything (you can't interact with objects that have no layer, including items)
MapGrid = MapGridHelpers.CollisionGroup, // Map grids, like shuttles. This is the actual grid itself, not the walls or other entities connected to the grid.
// 32 possible groups
MobMask = Impassable | MobImpassable | VaultImpassable | SmallImpassable,
AllMask = -1,