Table of Contents

Class ItemInstanceData

Namespace
DefaultNamespace
Assembly
Assembly-CSharp.dll
public class ItemInstanceData
Inheritance
ItemInstanceData
Inherited Members
Extension Methods

Constructors

ItemInstanceData(Guid)

public ItemInstanceData(Guid guid)

Parameters

guid Guid

Fields

isHeld

public bool isHeld

Field Value

bool

isHeldByMe

public bool isHeldByMe

Field Value

bool

m_dataEntries

public HashSet<ItemDataEntry> m_dataEntries

Field Value

HashSet<ItemDataEntry>

m_guid

public Guid m_guid

Field Value

Guid

timeInHand

public float timeInHand

Field Value

float

timeSinceGrounded

public float timeSinceGrounded

Field Value

float

Methods

AddDataEntry(ItemDataEntry)

public void AddDataEntry(ItemDataEntry entry)

Parameters

entry ItemDataEntry

ClearDirty()

public void ClearDirty()

Copy()

public ItemInstanceData Copy()

Returns

ItemInstanceData

CreateDataSyncer(bool)

public ItemDataSyncer CreateDataSyncer(bool roomOwned)

Parameters

roomOwned bool

Returns

ItemDataSyncer

Deserialize(byte[])

public void Deserialize(byte[] bytes)

Parameters

bytes byte[]

Deserialize(BinaryDeserializer)

public void Deserialize(BinaryDeserializer binaryDeserializer)

Parameters

binaryDeserializer BinaryDeserializer

GetEntryIdentifier(Type)

public byte GetEntryIdentifier(Type type)

Parameters

type Type

Returns

byte

GetEntryType(byte)

public ItemDataEntry GetEntryType(byte identifier)

Parameters

identifier byte

Returns

ItemDataEntry

IsDirty()

public bool IsDirty()

Returns

bool

RemoveDataEntry(ItemDataEntry)

public void RemoveDataEntry(ItemDataEntry entry)

Parameters

entry ItemDataEntry

Serialize(bool)

public byte[] Serialize(bool createNewGuid = false)

Parameters

createNewGuid bool

Returns

byte[]

Serialize(BinarySerializer, bool)

public void Serialize(BinarySerializer binarySerializer, bool createNewGuid)

Parameters

binarySerializer BinarySerializer
createNewGuid bool

SerializeAsNative()

public NativeArray<byte> SerializeAsNative()

Returns

NativeArray<byte>

TryGetElseAdd<T>(ref T)

public void TryGetElseAdd<T>(ref T startValue) where T : ItemDataEntry

Parameters

startValue T

Type Parameters

T

TryGetEntry(Type, out ItemDataEntry)

public bool TryGetEntry(Type type, out ItemDataEntry t)

Parameters

type Type
t ItemDataEntry

Returns

bool

TryGetEntry<T>(out T)

public bool TryGetEntry<T>(out T t) where T : ItemDataEntry

Parameters

t T

Returns

bool

Type Parameters

T