Skip to content
This repository was archived by the owner on Dec 13, 2025. It is now read-only.

Sandbox.ModAPI.Interfaces.TerminalPropertyExtensions

Morten Aune Lyrstad edited this page Apr 16, 2022 · 50 revisions

IndexNamespace Index

TerminalPropertyExtensions Class

public abstract sealed class TerminalPropertyExtensions

Terminal block extension for property access

Namespace: Sandbox.ModAPI.Interfaces
Assembly: Sandbox.Common.dll

Methods

static ITerminalProperty<TValue> As<TValue>(this ITerminalProperty)

static ITerminalProperty<bool> AsBool(this ITerminalProperty)

Property type cast

static ITerminalProperty<Color> AsColor(this ITerminalProperty)

Property type cast

static ITerminalProperty<float> AsFloat(this ITerminalProperty)

Property type cast

static ITerminalProperty<TValue> Cast<TValue>(this ITerminalProperty)

static T GetDefaultValue<T>(this IMyTerminalBlock, string)

static T GetMaximum<T>(this IMyTerminalBlock, string)

static T GetMinimum<T>(this IMyTerminalBlock, string)

static T GetMininum<T>(this IMyTerminalBlock, string)

Obsolete: Use GetMinimum instead

static T GetValue<T>(this IMyTerminalBlock, string)

static bool GetValueBool(this IMyTerminalBlock, string)

Returns value of specified property

static Color GetValueColor(this IMyTerminalBlock, string)

Returns value of specified property

static float GetValueFloat(this IMyTerminalBlock, string)

Returns value of specified property

static bool Is<TValue>(this ITerminalProperty)

static void SetValue<T>(this IMyTerminalBlock, string, T)

static void SetValueBool(this IMyTerminalBlock, string, bool)

Set bool value of property

static void SetValueColor(this IMyTerminalBlock, string, Color)

Set bool value of property

static void SetValueFloat(this IMyTerminalBlock, string, float)

Set float value of property

Clone this wiki locally