Files
RobustToolbox/Robust.Shared/GameObjects/Components/Transform/SnapGridComponent.cs
T
AcruidandGitHub 713f702064 Engine Entity Anchoring (#1829)
* Added unit tests for the new anchor system design.

* Amend ME!

* SnapGridComponent now anchors the entity when added or removed.
TransformComponent.Anchored properly replicates it's state to clients.

* Converted all SnapGridPositionChangedEvent subscriptions to AnchorStateChangedEvent.
Removed SnapGridPositionChangedEvent.
Obsoleted SnapGridComponent.

* Allows setting Transform.Anchored in prototypes.

* Changing tile to empty under anchored ents unanchors them.

* More unit testing.

* Migrated transform gamestate tests to RobustServerSimulation.

* Fixed nasty off-by-one error when sending a full server state.

* Adds lifetime stages to Component.

* More test fixing.

* Review changes.
2021-06-19 17:26:18 -07:00

15 lines
380 B
C#

using System;
namespace Robust.Shared.GameObjects
{
/// <summary>
/// Makes it possible to look this entity up with the snap grid.
/// </summary>
[Obsolete("Use Transform.Anchored instead of this flag component.")]
internal class SnapGridComponent : Component
{
/// <inheritdoc />
public sealed override string Name => "SnapGrid";
}
}