Struct ChunkReference
- Namespace
- Stride.Core.Serialization.Contents
- Assembly
- Stride.Core.Serialization.dll
Describe a reference between an object and another.
[DataSerializer(typeof(ChunkReference.Serializer))]
public readonly struct ChunkReference : IEquatable<ChunkReference>- Implements
- Inherited Members
Remarks
This class is IEquatable, and equality is true if and only if Location and ObjType properties match
Constructors
ChunkReference(Type, string)
public ChunkReference(Type objectType, string location)Parameters
Fields
Location
public readonly string LocationField Value
NullIdentifier
public const int NullIdentifier = -1Field Value
ObjectType
public readonly Type ObjectTypeField Value
Methods
Equals(ChunkReference)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(ChunkReference other)Parameters
- otherChunkReference
- An object to compare with this object. 
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)Parameters
- objobject
- The object to compare with the current instance. 
Returns
- bool
- true if - objand this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()Returns
- int
- A 32-bit signed integer that is the hash code for this instance. 
Operators
operator ==(ChunkReference, ChunkReference)
public static bool operator ==(ChunkReference left, ChunkReference right)Parameters
- leftChunkReference
- rightChunkReference
Returns
operator !=(ChunkReference, ChunkReference)
public static bool operator !=(ChunkReference left, ChunkReference right)Parameters
- leftChunkReference
- rightChunkReference