Table of Contents

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

objectType Type
location string

Fields

Location

public readonly string Location

Field Value

string

NullIdentifier

public const int NullIdentifier = -1

Field Value

int

ObjectType

public readonly Type ObjectType

Field Value

Type

Methods

Equals(ChunkReference)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(ChunkReference other)

Parameters

other ChunkReference

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

The 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 ChunkReference
right ChunkReference

Returns

bool

operator !=(ChunkReference, ChunkReference)

public static bool operator !=(ChunkReference left, ChunkReference right)

Parameters

left ChunkReference
right ChunkReference

Returns

bool