Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Sandbox.ModAPI.Interfaces.TerminalPropertyExtensions

Morten Aune Lyrstad edited this page Apr 16, 2022 · 49 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 property)

static ITerminalProperty<bool> AsBool(this ITerminalProperty property)

Property type cast

static ITerminalProperty<Color> AsColor(this ITerminalProperty property)

Property type cast

static ITerminalProperty<float> AsFloat(this ITerminalProperty property)

Property type cast

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

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

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

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

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

static bool GetValueBool(this IMyTerminalBlock block, string propertyId)

Returns value of specified property

static Color GetValueColor(this IMyTerminalBlock block, string propertyId)

Returns value of specified property

static float GetValueFloat(this IMyTerminalBlock block, string propertyId)

Returns value of specified property

static bool Is<TValue>(this ITerminalProperty property)

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

static void SetValueBool(this IMyTerminalBlock block, string propertyId, bool value)

Set bool value of property

static void SetValueColor(this IMyTerminalBlock block, string propertyId, Color value)

Set bool value of property

static void SetValueFloat(this IMyTerminalBlock block, string propertyId, float value)

Set float value of property

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

Obsolete: Use GetMinimum instead

Clone this wiki locally