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 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 Location
Field Value
NullIdentifier
public const int NullIdentifier = -1
Field Value
ObjectType
public readonly Type ObjectType
Field Value
Methods
Equals(ChunkReference)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(ChunkReference other)
Parameters
other
ChunkReferenceAn 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
obj
objectThe object to compare with the current instance.
Returns
- bool
true if
obj
and 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
left
ChunkReferenceright
ChunkReference
Returns
operator !=(ChunkReference, ChunkReference)
public static bool operator !=(ChunkReference left, ChunkReference right)
Parameters
left
ChunkReferenceright
ChunkReference