Table of Contents

Class ReloadReason

Namespace
RisingV.Shared.Managers
Assembly
RisingV.Shared.dll

Represents a reason for reloading a manager or component.

public sealed record ReloadReason : IEquatable<ReloadReason>
Inheritance
ReloadReason
Implements
Inherited Members
Extension Methods

Constructors

ReloadReason(string, IReadOnlyList<FileChange>?, bool, bool, bool, string?)

Represents a reason for reloading a manager or component.

public ReloadReason(string Reason, IReadOnlyList<FileChange>? Changes = null, bool IsForced = false, bool IsCritical = false, bool IsFull = false, string? Key = null)

Parameters

Reason string

The reason for the reload.

Changes IReadOnlyList<FileChange>

A list of file changes that triggered the reload, if applicable.

IsForced bool

Indicates whether the reload is forced.

IsCritical bool

Indicates whether the reload is critical.

IsFull bool

Indicates whether the reload is a full reload.

Key string

An optional key associated with the reload reason, used for identification purposes.

Properties

Changes

A list of file changes that triggered the reload, if applicable.

public IReadOnlyList<FileChange>? Changes { get; init; }

Property Value

IReadOnlyList<FileChange>

IsCritical

Indicates whether the reload is critical.

public bool IsCritical { get; init; }

Property Value

bool

IsFileChange

Checks if we had file changes that triggered this reload reason.

public bool IsFileChange { get; }

Property Value

bool

IsForced

Indicates whether the reload is forced.

public bool IsForced { get; init; }

Property Value

bool

IsFull

Indicates whether the reload is a full reload.

public bool IsFull { get; init; }

Property Value

bool

Key

An optional key associated with the reload reason, used for identification purposes.

public string? Key { get; init; }

Property Value

string

Reason

The reason for the reload.

public string Reason { get; init; }

Property Value

string