Class DummyAssetCommand<TAsset, TContent>
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
- 
      objectCommandIndexFileCommandAssetCommand<TAsset>DummyAssetCommand<TAsset, TContent>
- Inherited Members
- 
    
    
    
    
    
    
    
    IndexFileCommand.PreCommand(ICommandContext)IndexFileCommand.PostCommand(ICommandContext, ResultStatus)Command.CommandCacheVersionCommand.OutputLocationCommand.CancellationTokenCommand.DoCommand(ICommandContext)Command.Clone()Command.GetInputFiles()Command.InputFilesGetterCommand.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
- assetItemAssetItem
- 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
- commandContextICommandContext
Returns
- Task<ResultStatus>