Skip to content

Game.Modding.Toolchain.DeploymentState

Assembly:
(not specified in source; likely contained in the game's modding/toolchain assembly)

Namespace: Game.Modding.Toolchain

Type: enum

Base: System.Enum

Summary:
Defines the possible installation/deployment states used by the modding toolchain to describe the current status of a mod or deployment target. Typical uses include checking whether a mod is installed, needs updating, or is in an invalid/unknown state. - Unknown = -1 — State cannot be determined. - Installed — Target is installed and up to date. - NotInstalled — Target is not installed. - Outdated — Target is installed but an update is available or required. - Invalid — Target is in an invalid state (corrupted, incompatible, etc.).


Fields

  • Unknown = -1
    Indicates the deployment state could not be determined or is explicitly unknown.

  • Installed
    Indicates the item is installed and considered up to date.

  • NotInstalled
    Indicates the item is not installed.

  • Outdated
    Indicates the item is installed but an update is available or required.

  • Invalid
    Indicates the item is in an invalid state (for example corrupted or incompatible).

Properties

  • None
    (An enum does not declare instance properties. You can use System.Enum helpers to inspect values.)

Constructors

  • None (implicit)
    Enums do not declare public constructors. Each named constant is a compile-time constant of the enum type. The enum has the default underlying integral type (int) unless otherwise specified.

Methods

  • None declared on this type
    (You can use System.Enum and System.Enum.Parse, Enum.TryParse, and other framework methods to work with the enum values. Standard methods inherited from System.Enum / System.ValueType / System.Object are available, such as ToString(), GetHashCode(), Equals(), and GetValues().)

Usage Example

using Game.Modding.Toolchain;

public void HandleDeploymentState(DeploymentState state)
{
    switch (state)
    {
        case DeploymentState.Installed:
            Console.WriteLine("Mod is installed and up to date.");
            break;
        case DeploymentState.NotInstalled:
            Console.WriteLine("Mod is not installed. Prompting installation...");
            break;
        case DeploymentState.Outdated:
            Console.WriteLine("Mod is outdated. Scheduling update...");
            break;
        case DeploymentState.Invalid:
            Console.WriteLine("Mod is in an invalid state. Manual intervention required.");
            break;
        case DeploymentState.Unknown:
        default:
            Console.WriteLine("Deployment state unknown.");
            break;
    }
}

// Parsing from string example:
if (Enum.TryParse<DeploymentState>("Outdated", out var parsed))
{
    // parsed == DeploymentState.Outdated
}