Show / Hide Table of Contents

Class AnchorableSystem

Inheritance
System.Object
AnchorableSystem
Namespace: Content.Shared.Construction.EntitySystems
Assembly: Content.Shared.dll
Syntax
public sealed class AnchorableSystem : EntitySystem

Fields

| Improve this Doc View Source

Unstackable

Declaration
public const string Unstackable = null
Field Value
Type Description
System.String

Methods

| Improve this Doc View Source

AnyUnstackable(EntityUid, EntityCoordinates)

Returns true if any unstackables are also on the corresponding tile.

Declaration
public bool AnyUnstackable(EntityUid uid, EntityCoordinates location)
Parameters
Type Name Description
EntityUid uid
Robust.Shared.Map.EntityCoordinates location
Returns
Type Description
System.Boolean
| Improve this Doc View Source

AnyUnstackablesAnchoredAt(EntityCoordinates)

Declaration
public bool AnyUnstackablesAnchoredAt(EntityCoordinates location)
Parameters
Type Name Description
Robust.Shared.Map.EntityCoordinates location
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Initialize()

Declaration
public override void Initialize()
| Improve this Doc View Source

TileFree(MapGridComponent, Vector2i, Int32, Int32)

Returns true if no hard anchored entities match the collision layer or mask specified.

Declaration
public bool TileFree(MapGridComponent grid, Vector2i gridIndices, int collisionLayer = 0, int collisionMask = 0)
Parameters
Type Name Description
Robust.Shared.Map.Components.MapGridComponent grid
Vector2i gridIndices
System.Int32 collisionLayer
System.Int32 collisionMask
Returns
Type Description
System.Boolean
| Improve this Doc View Source

TryToggleAnchor(EntityUid, EntityUid, EntityUid, AnchorableComponent, Nullable<TransformComponent>, SharedPullableComponent, ToolComponent)

Tries to toggle the anchored status of this component's owner. override is used due to popup and adminlog being server side systems in this case.

Declaration
public void TryToggleAnchor(EntityUid uid, EntityUid userUid, EntityUid usingUid, AnchorableComponent anchorable = null, TransformComponent? transform = null, SharedPullableComponent pullable = null, ToolComponent usingTool = null)
Parameters
Type Name Description
EntityUid uid
EntityUid userUid
EntityUid usingUid
AnchorableComponent anchorable
System.Nullable<TransformComponent> transform
SharedPullableComponent pullable
ToolComponent usingTool
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾