Table of Contents

Class DummyAssetCommand<TAsset, TContent>

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.

public class DummyAssetCommand<TAsset, TContent> : AssetCommand<TAsset> where TAsset : Asset where TContent : new()

Type Parameters

TAsset

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

TContent

The type of content to generate.

Inheritance
Command
IndexFileCommand
AssetCommand<TAsset>
DummyAssetCommand<TAsset, TContent>
Inherited Members
IndexFileCommand.PreCommand(ICommandContext)
IndexFileCommand.PostCommand(ICommandContext, ResultStatus)
Command.CommandCacheVersion
Command.OutputLocation
Command.CancellationToken
Command.DoCommand(ICommandContext)
Command.Clone()
Command.GetInputFiles()
Command.InputFilesGetter
Command.ShouldForceExecution()
Command.ShouldSpawnNewProcess()
Command.Cancel()
Command.ComputeInputFilesHash(BinarySerializationWriter, IPrepareContext)
Command.ComputeAssemblyHash(BinarySerializationWriter)

Constructors

DummyAssetCommand(AssetItem)

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

public DummyAssetCommand(AssetItem assetItem)

Parameters

assetItem AssetItem

The asset to compile.

Methods

DoCommandOverride(ICommandContext)

The method to override containing the actual command code. It is called by the Stride.Core.BuildEngine.Command.DoCommand(Stride.Core.BuildEngine.ICommandContext) function

protected override Task<ResultStatus> DoCommandOverride(ICommandContext commandContext)

Parameters

commandContext ICommandContext

Returns

Task<ResultStatus>