Table of Contents

Class OptionExt

Namespace
ConfigurableWarning.API.Internal
Assembly
RedstoneWizard08.ContentLibrary.dll

Extension Methods.

public static class OptionExt
Inheritance
OptionExt
Inherited Members

Methods

BoolOpt(string)

Convert this string into an option.

public static BoolOption? BoolOpt(this string name)

Parameters

name string

The string.

Returns

BoolOption

The option.

BoolState(string)

Converts this string into an option and gets its state.

public static bool BoolState(this string opt)

Parameters

opt string

The string.

Returns

bool

The state.

EnumOpt<T>(string)

Convert this string into an option.

public static EnumOption<T>? EnumOpt<T>(this string name) where T : struct

Parameters

name string

The string.

Returns

EnumOption<T>

The option.

Type Parameters

T

EnumState<T>(string)

Converts this string into an option and gets its state.

public static T? EnumState<T>(this string opt) where T : struct

Parameters

opt string

The string.

Returns

T?

The state.

Type Parameters

T

FloatOpt(string)

Convert this string into an option.

public static FloatOption? FloatOpt(this string name)

Parameters

name string

The string.

Returns

FloatOption

The option.

FloatState(string)

Converts this string into an option and gets its state.

public static float? FloatState(this string opt)

Parameters

opt string

The string.

Returns

float?

The state.

IntOpt(string)

Convert this string into an option.

public static IntOption? IntOpt(this string name)

Parameters

name string

The string.

Returns

IntOption

The option.

IntState(string)

Converts this string into an option and gets its state.

public static int? IntState(this string opt)

Parameters

opt string

The string.

Returns

int?

The state.

TextOpt(string)

Convert this string into an option.

public static TextOption? TextOpt(this string name)

Parameters

name string

The string.

Returns

TextOption

The option.

TextState(string)

Converts this string into an option and gets its state.

public static string? TextState(this string opt)

Parameters

opt string

The string.

Returns

string

The state.