mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-04 02:57:08 +02:00
* 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.
15 lines
380 B
C#
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";
|
|
}
|
|
}
|