Files
Nitrox/NitroxModel/DataStructures/GameLogic/Entities/Metadata/Bases/BaseAnchoredCellGhostMetadata.cs
2025-07-06 00:23:46 +02:00

25 lines
676 B
C#

using System;
using System.Runtime.Serialization;
using BinaryPack.Attributes;
namespace NitroxModel.DataStructures.GameLogic.Entities.Metadata.Bases;
[Serializable, DataContract]
public class BaseAnchoredCellGhostMetadata : GhostMetadata
{
[DataMember(Order = 1)]
public NitroxInt3? AnchoredCell { get; set; }
[IgnoreConstructor]
public BaseAnchoredCellGhostMetadata()
{
// Constructor for ProtoBuf deserialization.
}
/// <remarks>Used for json deserialization</remarks>
public BaseAnchoredCellGhostMetadata(NitroxInt3? anchoredCell, NitroxInt3 targetOffset) : base(targetOffset)
{
AnchoredCell = anchoredCell;
}
}