/// <summary> /// Initializes a new instance of the <see cref="BatteryCheckerStateObjectLinkAttribute"/> class. /// </summary> /// <param name="name">The StateObject name.</param> public BatteryCheckerStateObjectLinkAttribute(BatteryCheckerStateObjectNames name) : base(MyConstellation.Packages.BatteryChecker.GetRealName(), name.GetRealName()) { }
/// <summary> /// Initializes a new instance of the <see cref="BatteryCheckerStateObjectLinkAttribute"/> class. /// </summary> /// <param name="sentinel">The sentinel.</param> /// <param name="name">The StateObject name.</param> /// <param name="type">The StateObject type.</param> public BatteryCheckerStateObjectLinkAttribute(MyConstellation.Sentinels sentinel, BatteryCheckerStateObjectNames name, string type) : base(sentinel.GetRealName(), MyConstellation.Packages.BatteryChecker.GetRealName(), name.GetRealName(), type) { }
/// <summary> /// Gets the real name of a BatteryChecker's StateObject. /// </summary> /// <param name="stateObjectName">The BatteryChecker 's StateObject.</param> /// <returns>The real name.</returns> public static string GetRealName(this BatteryCheckerStateObjectNames stateObjectName) { return(RealNameAttribute.GetRealName <BatteryCheckerStateObjectNames>(stateObjectName)); }