コード例 #1
0
 /// <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));
 }
コード例 #2
0
 /// <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));
 }
コード例 #3
0
 /// <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));
 }