UpdatableProperty Class
Namespace: Stride.UpdaterAssembly: Stride.Engine.dll
Defines how to set and get values from a property for the UpdateEngine.
Derived from UpdatableProperty: UpdatableProperty<T> UpdatablePropertyObject<T>
public abstract class UpdatableProperty : UpdatablePropertyBase
Name | Description | |
---|---|---|
Constructors | ||
UpdatableProperty(IntPtr, Boolean, IntPtr, Boolean) | ||
Fields | ||
Getter | ||
Setter | ||
VirtualDispatchGetter | ||
VirtualDispatchSetter | ||
Methods | ||
GetObject(IntPtr) | Gets a reference object from a property. |
|
SetObject(IntPtr, Object) | Sets a reference object from a property. |
Constructors
UpdatableProperty(IntPtr, Boolean, IntPtr, Boolean)
protected 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 |
Fields
Getter
public readonly IntPtr Getter
Field Value
Type | Description |
---|---|
System.IntPtr |
Setter
public readonly IntPtr Setter
Field Value
Type | Description |
---|---|
System.IntPtr |
VirtualDispatchGetter
public readonly bool VirtualDispatchGetter
Field Value
Type | Description |
---|---|
System.Boolean |
VirtualDispatchSetter
public readonly bool VirtualDispatchSetter
Field Value
Type | Description |
---|---|
System.Boolean |
Methods
GetObject(IntPtr)
Gets a reference object from a property.
public object GetObject(IntPtr obj)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | obj | The object encoded as a native pointer (UpdateEngine will make sure it is pinned). |
Returns
Type | Description |
---|---|
System.Object | The object value from the property. |
SetObject(IntPtr, Object)
Sets a reference object from a property.
public void SetObject(IntPtr obj, object data)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | obj | The object encoded as a native pointer (UpdateEngine will make sure it is pinned). |
System.Object | data | The object value to set. |