UpdatableProperty<T> Class
Namespace: Stride.UpdaterAssembly: Stride.Engine.dll
Defines how to set and get values from a property of a given value type for the UpdateEngine.
public class UpdatableProperty<T> : UpdatableProperty where T : struct
Type Parameters
Name | Description |
---|---|
T | The property type. |
Name | Description | |
---|---|---|
Constructors | ||
UpdatableProperty(IntPtr, Boolean, IntPtr, Boolean) | ||
Properties | ||
MemberType | Gets the type of the member. |
|
Methods | ||
GetBlittable(IntPtr, IntPtr) | Gets a blittable property (from its pointer). |
|
GetStructAndUnbox(IntPtr, Object) | Gets and stores a non-blittable struct property into pre-allocated data, and return pointer to its start. |
|
SetBlittable(IntPtr, IntPtr) | Sets a blittable property (from its pointer). |
|
SetStruct(IntPtr, Object) | Sets a non-blittable struct property (given in boxed form). |
Constructors
UpdatableProperty(IntPtr, Boolean, IntPtr, Boolean)
public UpdatableProperty(IntPtr getter, bool virtualDispatchGetter, IntPtr setter, bool virtualDispatchSetter)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | getter | |
System.Boolean | virtualDispatchGetter | |
System.IntPtr | setter | |
System.Boolean | virtualDispatchSetter |
Properties
MemberType
Gets the type of the member.
public override Type MemberType { get; }
Property Value
Type | Description |
---|---|
System.Type |
Overrides
| Improve this Doc View SourceMethods
GetBlittable(IntPtr, IntPtr)
Gets a blittable property (from its pointer).
public override void GetBlittable(IntPtr obj, IntPtr data)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | obj | The container object. |
System.IntPtr | data | The struct data. |
Overrides
GetStructAndUnbox(IntPtr, Object)
Gets and stores a non-blittable struct property into pre-allocated data, and return pointer to its start.
public override IntPtr GetStructAndUnbox(IntPtr obj, object data)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | obj | The container object. |
System.Object | data | The pre-allocated boxed struct. |
Returns
Type | Description |
---|---|
System.IntPtr |
Overrides
SetBlittable(IntPtr, IntPtr)
Sets a blittable property (from its pointer).
public override void SetBlittable(IntPtr obj, IntPtr data)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | obj | The container object. |
System.IntPtr | data | The struct data. |
Overrides
SetStruct(IntPtr, Object)
Sets a non-blittable struct property (given in boxed form).
public override void SetStruct(IntPtr obj, object data)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | obj | The container object. |
System.Object | data | The new value to unbox and set |