SourceFileChangedData Struct
Namespace: Stride.Core.Assets.TrackingAssembly: Stride.Core.Assets.dll
Data structure for the SourceFileChanged block.
public struct SourceFileChangedData
| Name | Description | |
|---|---|---|
| Constructors | ||
| SourceFileChangedData(SourceFileChangeType, AssetId, IReadOnlyList<UFile>, Boolean) | Initializes a new instance of the SourceFileChangedData structure. |
|
| Properties | ||
| AssetId | Gets the id of the asset affected by this change. |
|
| Files | Gets the list of files that changed |
|
| NeedUpdate | Gets whether the asset needs to be updated from its sources due to this change. |
|
| Type | Gets the type of change that occurred. |
|
Constructors
SourceFileChangedData(SourceFileChangeType, AssetId, IReadOnlyList<UFile>, Boolean)
Initializes a new instance of the SourceFileChangedData structure.
public SourceFileChangedData(SourceFileChangeType type, AssetId assetId, IReadOnlyList<UFile> files, bool needUpdate)
Parameters
| Type | Name | Description |
|---|---|---|
| SourceFileChangeType | type | The type of change that occurred. |
| AssetId | assetId | The id of the asset affected by this change. |
| System.Collections.Generic.IReadOnlyList<Stride.Core.IO.UFile> | files | The list of files that changed. |
| System.Boolean | needUpdate | Indicate whether the asset needs to be updated from its sources due to this change. |
Properties
AssetId
Gets the id of the asset affected by this change.
public readonly AssetId AssetId { get; }
Property Value
| Type | Description |
|---|---|
| AssetId |
Files
Gets the list of files that changed
public readonly IReadOnlyList<UFile> Files { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IReadOnlyList<Stride.Core.IO.UFile> |
NeedUpdate
Gets whether the asset needs to be updated from its sources due to this change.
public readonly bool NeedUpdate { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Type
Gets the type of change that occurred.
public readonly SourceFileChangeType Type { get; }
Property Value
| Type | Description |
|---|---|
| SourceFileChangeType |