Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    SourceFileChangedData Struct

    Namespace: Stride.Core.Assets.Tracking
    Assembly: 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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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

    Inherited Members

    System.ValueType.Equals(System.Object)
    System.ValueType.GetHashCode()
    System.ValueType.ToString()

    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