Search Results for

    Show / Hide Table of Contents

    Class PrefabDataPart

    This class represents the prefab data asset.

    Inheritance
    object
    IdentifiableObject
    AssetPart
    PrefabDataPart
    Inherited Members
    IdentifiableObject.Id
    IdentifiableObject.IdHasChanged(Guid)
    Namespace: Evergine.Framework.Assets.AssetParts
    Assembly: Evergine.Framework.dll
    Syntax
    public class PrefabDataPart : AssetPart

    Constructors

    PrefabDataPart()

    Initializes a new instance of the PrefabDataPart class.

    Declaration
    public PrefabDataPart()

    Fields

    RootGenerator

    Function to generate the root EntityItemModel and update the given dictionary with the reference counters.

    Declaration
    public Func<Dictionary<Guid, int>, EntityItemModel> RootGenerator
    Field Value
    Type Description
    Func<Dictionary<Guid, int>, EntityItemModel>

    Properties

    ReferenceCounter

    Gets the reference count of the assets.

    Declaration
    public Dictionary<Guid, int> ReferenceCounter { get; }
    Property Value
    Type Description
    Dictionary<Guid, int>

    Root

    Gets or sets the entity list.

    Declaration
    [EvergineMember]
    public EntityItemModel Root { get; set; }
    Property Value
    Type Description
    EntityItemModel

    Methods

    Read(BinaryReader)

    Reads this asset part.

    Declaration
    public static PrefabDataPart Read(BinaryReader reader)
    Parameters
    Type Name Description
    BinaryReader reader

    The binary reader.

    Returns
    Type Description
    PrefabDataPart

    The loaded asset part.

    Write(BinaryWriter)

    Writes the sub-asset.

    Declaration
    public override void Write(BinaryWriter writer)
    Parameters
    Type Name Description
    BinaryWriter writer

    The stream.

    Overrides
    AssetPart.Write(BinaryWriter)

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX