Пример #1
0
 /// <summary>
 /// Set bool value of property
 /// </summary>
 /// <typeparam name="T"><see cref="ITerminalProperty.TypeName"/></typeparam>
 /// <param name="block">block reference</param>
 /// <param name="propertyId">property id (name)</param>
 /// <param name="value">value to set</param>
 public static void SetValueBool(this Ingame.IMyTerminalBlock block, string propertyId, bool value)
 {
     block.SetValue <bool>(propertyId, value);
 }
Пример #2
0
 /// <summary>
 /// Set bool value of property
 /// </summary>
 /// <typeparam name="T"><see cref="ITerminalProperty.TypeName"/></typeparam>
 /// <param name="block">block reference</param>
 /// <param name="propertyId">property id (name)</param>
 /// <param name="value">value to set</param>
 public static void SetValueColor(this Ingame.IMyTerminalBlock block, string propertyId, Color value)
 {
     block.SetValue <Color>(propertyId, value);
 }
Пример #3
0
 /// <summary>
 /// Set float value of property
 /// </summary>
 /// <typeparam name="T"><see cref="ITerminalProperty.TypeName"/></typeparam>
 /// <param name="block">block reference</param>
 /// <param name="propertyId">property id (name)</param>
 /// <param name="value">value to set</param>
 public static void SetValueFloat(this Ingame.IMyTerminalBlock block, string propertyId, float value)
 {
     block.SetValue <float>(propertyId, value);
 }