CatStation/Content.Shared/DisplacementMap/DisplacementData.cs
slarticodefast d1a53fcc54
network HandsComponent, fix changeling not updating hand displacements on transform (#43545)
* network handscomp

* fix

* small clean

* only clone displacements

* TODO

---------

Co-authored-by: ScarKy0 <scarky0@onet.eu>
2026-08-19 15:03:59 +00:00

27 lines
800 B
C#

using Robust.Shared.Serialization;
namespace Content.Shared.DisplacementMap;
[DataDefinition, Serializable, NetSerializable]
public sealed partial class DisplacementData
{
/// <summary>
/// allows you to attach different maps for layers of different sizes.
/// </summary>
[DataField(required: true)]
public Dictionary<int, PrototypeLayerData> SizeMaps = new();
[DataField]
public string? ShaderOverride = "DisplacedDraw";
[DataField]
public string ShaderOverrideUnshaded = "DisplacedDrawUnshaded";
// Shallow copy for networking purposes.
public DisplacementData(DisplacementData other)
{
SizeMaps = new(other.SizeMaps);
ShaderOverride = other.ShaderOverride;
ShaderOverrideUnshaded = other.ShaderOverrideUnshaded;
}
}