/// <summary> /// Returns value of specified property /// </summary> /// <param name="block">block reference</param> /// <param name="propertyId">property id (name)</param> /// <returns>property value as bool</returns> public static bool GetValueBool(this Ingame.IMyTerminalBlock block, string propertyId) { return(block.GetValue <bool>(propertyId)); }
/// <summary> /// Returns value of specified property /// </summary> /// <param name="block">block reference</param> /// <param name="propertyId">property id (name)</param> /// <returns>property value as Color</returns> public static Color GetValueColor(this Ingame.IMyTerminalBlock block, string propertyId) { return(block.GetValue <Color>(propertyId)); }
/// <summary> /// Returns value of specified property /// </summary> /// <param name="block">block reference</param> /// <param name="propertyId">property id (name)</param> /// <returns>property value as float</returns> public static float GetValueFloat(this Ingame.IMyTerminalBlock block, string propertyId) { return(block.GetValue <float>(propertyId)); }