Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    AssetCommand<T> Class

    Namespace: Stride.Core.Assets.Compiler
    Assembly: Stride.Core.Assets.dll
    System.Object → Stride.Core.BuildEngine.Command → Stride.Core.BuildEngine.IndexFileCommand → AssetCommand → AssetCommand<T>
    Derived from AssetCommand<T>: DummyAssetCommand<TAsset, TContent>

    public abstract class AssetCommand<T> : AssetCommand
    Type Parameters
    Name Description
    T
    Name Description
    Constructors
    AssetCommand(String, T, IAssetFinder)
    Fields
    AssetFinder
    Version

    This is useful if the asset binary format has changed and we want to bump the version to force re-evaluation/compilation of the command

    Properties
    Parameters
    Title
    Methods
    ComputeParameterHash(BinarySerializationWriter)
    ToString()
    | Improve this Doc View Source

    Constructors


    AssetCommand(String, T, IAssetFinder)

    protected AssetCommand(string url, T parameters, IAssetFinder assetFinder)
    Parameters
    Type Name Description
    System.String url
    T parameters
    IAssetFinder assetFinder
    | Improve this Doc View Source

    Fields


    AssetFinder

    protected readonly IAssetFinder AssetFinder
    Field Value
    Type Description
    IAssetFinder

    Version

    This is useful if the asset binary format has changed and we want to bump the version to force re-evaluation/compilation of the command

    protected int Version
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Properties


    Parameters

    public T Parameters { get; set; }
    Property Value
    Type Description
    T

    Title

    public override string Title { get; }
    Property Value
    Type Description
    System.String
    Overrides
    Stride.Core.BuildEngine.Command.Title
    | Improve this Doc View Source

    Methods


    ComputeParameterHash(BinarySerializationWriter)

    protected override void ComputeParameterHash(BinarySerializationWriter writer)
    Parameters
    Type Name Description
    BinarySerializationWriter writer
    Overrides
    Stride.Core.BuildEngine.Command.ComputeParameterHash(Stride.Core.Serialization.BinarySerializationWriter)

    ToString()

    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    Stride.Core.BuildEngine.Command.ToString()

    Inherited Members

    AssetCommand.Url
    Stride.Core.BuildEngine.IndexFileCommand.PreCommand(Stride.Core.BuildEngine.ICommandContext)
    Stride.Core.BuildEngine.IndexFileCommand.PostCommand(Stride.Core.BuildEngine.ICommandContext, Stride.Core.BuildEngine.ResultStatus)
    Stride.Core.BuildEngine.Command.CommandCacheVersion
    Stride.Core.BuildEngine.Command.OutputLocation
    Stride.Core.BuildEngine.Command.CancellationToken
    Stride.Core.BuildEngine.Command.DoCommandOverride(Stride.Core.BuildEngine.ICommandContext)
    Stride.Core.BuildEngine.Command.DoCommand(Stride.Core.BuildEngine.ICommandContext)
    Stride.Core.BuildEngine.Command.Clone()
    Stride.Core.BuildEngine.Command.GetInputFiles()
    Stride.Core.BuildEngine.Command.InputFilesGetter
    Stride.Core.BuildEngine.Command.ShouldForceExecution()
    Stride.Core.BuildEngine.Command.ShouldSpawnNewProcess()
    Stride.Core.BuildEngine.Command.Cancel()
    Stride.Core.BuildEngine.Command.ComputeInputFilesHash(Stride.Core.Serialization.BinarySerializationWriter, Stride.Core.BuildEngine.IPrepareContext)
    Stride.Core.BuildEngine.Command.ComputeCommandHash(System.IO.Stream, Stride.Core.BuildEngine.IPrepareContext)
    Stride.Core.BuildEngine.Command.ComputeAssemblyHash(Stride.Core.Serialization.BinarySerializationWriter)

    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