diff --git a/VpSharp/src/Entities/VirtualParadiseObject.cs b/VpSharp/src/Entities/VirtualParadiseObject.cs index bc25d0b..c03dc77 100644 --- a/VpSharp/src/Entities/VirtualParadiseObject.cs +++ b/VpSharp/src/Entities/VirtualParadiseObject.cs @@ -217,6 +217,11 @@ public abstract class VirtualParadiseObject : IEquatable return HashCode.Combine(Location.World, Id); } + /// + /// Copies the properties from another object into this object. + /// + /// The object to copy. + /// is . protected internal virtual void ExtractFromOther(VirtualParadiseObject virtualParadiseObject) { ArgumentNullException.ThrowIfNull(virtualParadiseObject); @@ -224,6 +229,10 @@ public abstract class VirtualParadiseObject : IEquatable Owner = virtualParadiseObject.Owner; } + /// + /// Extracts the properties of an object from the current buffer held by an instance. + /// + /// The native SDK instance. protected internal virtual void ExtractFromInstance(nint handle) { var data = Span.Empty; @@ -240,6 +249,10 @@ public abstract class VirtualParadiseObject : IEquatable ExtractFromData(data); } + /// + /// Extracts the properties of an object from the specified span of bytes. + /// + /// A span of bytes containing the object data. protected virtual void ExtractFromData(ReadOnlySpan data) { }