Table of Contents

Class UpdatableField

Namespace
Stride.Updater
Assembly
Stride.Engine.dll

Defines how to set and get values from a field for the UpdateEngine.

public abstract class UpdatableField : UpdatableMember
Inheritance
UpdatableField
Derived
Inherited Members

Fields

Offset

Offset of this field in its containing object.

public int Offset

Field Value

int

Size

Size of this field.

public int Size

Field Value

int

Methods

GetObject(IntPtr)

Gets a reference object from a field.

public object GetObject(IntPtr obj)

Parameters

obj IntPtr

The object encoded as a native pointer (UpdateEngine will make sure it is pinned).

Returns

object

The object value from the field.

GetSetOperationType()

Internally used to know type of set operation to use.

public UpdateOperationType GetSetOperationType()

Returns

UpdateOperationType

SetBlittable(IntPtr, IntPtr)

Sets a blittable field (from its pointer).

public void SetBlittable(IntPtr obj, IntPtr data)

Parameters

obj IntPtr

The container object.

data IntPtr

The struct data.

SetObject(IntPtr, object)

Sets a reference object from a field.

public void SetObject(IntPtr obj, object data)

Parameters

obj IntPtr

The object encoded as a native pointer (UpdateEngine will make sure it is pinned).

data object

The object value to set.

SetStruct(IntPtr, object)

Sets a non-blittable struct field (given in boxed form).

public abstract void SetStruct(IntPtr obj, object data)

Parameters

obj IntPtr

The container object.

data object

The new value to unbox and set