-
Notifications
You must be signed in to change notification settings - Fork 125
Sandbox.ModAPI.Interfaces.TerminalPropertyExtensions
← Index ← Namespace Index
public abstract sealed class TerminalPropertyExtensions
Terminal block extension for property access
Namespace: Sandbox.ModAPI.Interfaces
Assembly: Sandbox.Common.dll
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
Do you have questions, comments, suggestions for improvements? Is there something I can do better? Did I make a mistake? Please add an issue here, and prefix your issue title with Wiki. Thank you, your help will be very appreciated!