Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    DummyAssetCommand<TAsset, TContent> Class

    Namespace: Stride.Core.Assets.Compiler
    Assembly: Stride.Core.Assets.dll

    An AssetCommand that will create a default instance of the content type for a given asset, rather than compiling it.

    System.Object → Stride.Core.BuildEngine.Command → Stride.Core.BuildEngine.IndexFileCommand → AssetCommand → AssetCommand<TAsset> → DummyAssetCommand<TAsset, TContent>
    Derived from DummyAssetCommand<TAsset, TContent>:

    public class DummyAssetCommand<TAsset, TContent> : AssetCommand<TAsset> where TAsset : Asset where TContent : new()
    Type Parameters
    Name Description
    TAsset

    The type of asset for which to generate a default instance of content.

    TContent

    The type of content to generate.

    Name Description
    Constructors
    DummyAssetCommand(AssetItem)

    Initializes a new instance of the DummyAssetCommand<TAsset, TContent> class.

    Methods
    DoCommandOverride(ICommandContext)
    | Improve this Doc View Source

    Constructors


    DummyAssetCommand(AssetItem)

    Initializes a new instance of the DummyAssetCommand<TAsset, TContent> class.

    public DummyAssetCommand(AssetItem assetItem)
    Parameters
    Type Name Description
    AssetItem assetItem

    The asset to compile.

    | Improve this Doc View Source

    Methods


    DoCommandOverride(ICommandContext)

    protected override Task<ResultStatus> DoCommandOverride(ICommandContext commandContext)
    Parameters
    Type Name Description
    Stride.Core.BuildEngine.ICommandContext commandContext
    Returns
    Type Description
    System.Threading.Tasks.Task<Stride.Core.BuildEngine.ResultStatus>
    Overrides
    Stride.Core.BuildEngine.Command.DoCommandOverride(Stride.Core.BuildEngine.ICommandContext)

    Inherited Members

    AssetCommand<TAsset>.AssetFinder
    AssetCommand<TAsset>.Version
    AssetCommand<TAsset>.Parameters
    AssetCommand<TAsset>.Title
    AssetCommand<TAsset>.ComputeParameterHash(BinarySerializationWriter)
    AssetCommand<TAsset>.ToString()
    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.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