Search Results for

    Show / Hide Table of Contents

    Class AssetHeader

    This class represents an Asset Header.

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

    Constructors

    AssetHeader()

    Initializes a new instance of the AssetHeader class.

    Declaration
    public AssetHeader()

    AssetHeader(Guid)

    Initializes a new instance of the AssetHeader class.

    Declaration
    public AssetHeader(Guid id)
    Parameters
    Type Name Description
    Guid id

    The asset ID.

    Fields

    IsCompressed

    Indicates whether this asset is compressed.

    Declaration
    public bool IsCompressed
    Field Value
    Type Description
    bool

    Properties

    PartTypes

    Gets the asset part types.

    Declaration
    public List<string> PartTypes { get; }
    Property Value
    Type Description
    List<string>

    Methods

    GetPartsNumber<T>()

    Gets the count of asset parts.

    Declaration
    public int GetPartsNumber<T>() where T : AssetPart
    Returns
    Type Description
    int

    The number of asset parts.

    Type Parameters
    Name Description
    T

    The asset part type.

    Read(BinaryReader)

    Reads this asset part.

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

    The binary reader.

    Returns
    Type Description
    AssetHeader

    The loaded asset part.

    UpdateParts(List<AssetPart>)

    Updates the asset parts with the specified list.

    Declaration
    public void UpdateParts(List<AssetPart> assetParts)
    Parameters
    Type Name Description
    List<AssetPart> assetParts

    The list of asset parts.

    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