Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    UpdatablePropertyObject<T> Class

    Namespace: Stride.Updater
    Assembly: Stride.Engine.dll

    Defines how to set and get values from a property of a given reference type for the UpdateEngine.

    System.Object → UpdatableMember → UpdatablePropertyBase → UpdatableProperty → UpdatablePropertyObject<T>
    Derived from UpdatablePropertyObject<T>:

    public class UpdatablePropertyObject<T> : UpdatableProperty
    Type Parameters
    Name Description
    T

    The property type.

    Name Description
    Constructors
    UpdatablePropertyObject(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).

    | Improve this Doc View Source

    Constructors


    UpdatablePropertyObject(IntPtr, Boolean, IntPtr, Boolean)

    public UpdatablePropertyObject(IntPtr getter, bool virtualDispatchGetter, IntPtr setter, bool virtualDispatchSetter)
    Parameters
    Type Name Description
    System.IntPtr getter
    System.Boolean virtualDispatchGetter
    System.IntPtr setter
    System.Boolean virtualDispatchSetter
    | Improve this Doc View Source

    Properties


    MemberType

    Gets the type of the member.

    public override Type MemberType { get; }
    Property Value
    Type Description
    System.Type
    Overrides
    UpdatableMember.MemberType
    | Improve this Doc View Source

    Methods


    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
    UpdatablePropertyBase.GetBlittable(IntPtr, IntPtr)

    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
    UpdatablePropertyBase.GetStructAndUnbox(IntPtr, Object)

    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
    UpdatablePropertyBase.SetBlittable(IntPtr, IntPtr)

    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

    Overrides
    UpdatablePropertyBase.SetStruct(IntPtr, Object)

    Inherited Members

    UpdatableProperty.Getter
    UpdatableProperty.Setter
    UpdatableProperty.VirtualDispatchGetter
    UpdatableProperty.VirtualDispatchSetter
    UpdatableProperty.GetObject(IntPtr)
    UpdatableProperty.SetObject(IntPtr, Object)
    UpdatableMember.CreateEnterChecker()

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation