Show / Hide Table of Contents

Class TurfSystem

Inheritance
System.Object
TurfSystem
Namespace: Content.Shared.Maps
Assembly: Content.Shared.dll
Syntax
public sealed class TurfSystem : EntitySystem

Methods

| Improve this Doc View Source

GetTileCenter(TileRef)

Returns the location of the centre of the tile in grid coordinates.

Declaration
public EntityCoordinates GetTileCenter(TileRef turf)
Parameters
Type Name Description
Robust.Shared.Map.TileRef turf
Returns
Type Description
Robust.Shared.Map.EntityCoordinates
| Improve this Doc View Source

IsTileBlocked(EntityUid, Vector2i, CollisionGroup, MapGridComponent, Nullable<TransformComponent>, Single)

Returns true if a given tile is blocked by physics-enabled entities.

Declaration
public bool IsTileBlocked(EntityUid gridUid, Vector2i indices, CollisionGroup mask, MapGridComponent grid = null, TransformComponent? gridXform = null, float minIntersectionArea = 0.1F)
Parameters
Type Name Description
EntityUid gridUid

The grid that owns the tile

Vector2i indices

The tile indices

CollisionGroup mask

Collision layers to check

Robust.Shared.Map.Components.MapGridComponent grid

Grid component

System.Nullable<TransformComponent> gridXform

Grid's transform

System.Single minIntersectionArea

Minimum area that must be covered for a tile to be considered blocked

Returns
Type Description
System.Boolean
| Improve this Doc View Source

IsTileBlocked(TileRef, CollisionGroup, Single)

Returns true if a given tile is blocked by physics-enabled entities.

Declaration
public bool IsTileBlocked(TileRef turf, CollisionGroup mask, float minIntersectionArea = 0.1F)
Parameters
Type Name Description
Robust.Shared.Map.TileRef turf
CollisionGroup mask
System.Single minIntersectionArea
Returns
Type Description
System.Boolean
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾