public BlueprintStructure_TN(IParent_Base_TN passedOwner = null) : base(passedOwner) { // Set NodeType NodeType = Base_TN_NodeType.BlueprintStructure; // Enable name auto-generation. AutoGenerateName = true; // Trigger name generation. //RefreshName(); }
/// <summary> /// Constructor that takes an Owner and raw Json and formats the Json_TN appropriately. /// </summary> /// <param name="json"></param> /// <param name="nodeName">Accepts a passed Name, if not provided a name will be auto-generated.</param> public Json_TN(IParent_Base_TN ownerObject, JToken passedJson, string nodeName = null, int populateDepth = 0) : base(ownerObject) { // Set the auto-population depth. _populateDepth = populateDepth; // Enable auto-name generation. AutoGenerateName = true; if (passedJson == null) { Debug.WriteLine($"Json_TN.ctor({nodeName}): Passed JToken was null."); } // Set the JData - this will trigger child nodes to be built to the specified depth. JData = passedJson; //?? throw new NullReferenceException ("Json_TN(JToken).ctor: Passed JToken was null."); }
/// <summary> /// Normal constructor - requires the owner object. /// </summary> /// <param name="ownerObject"></param> /// <param name="nodeType"></param> /// <param name="nodeName"></param> public Base_TN(IParent_Base_TN ownerObject, Base_TN_NodeType nodeType = Base_TN_NodeType.Unknown, string nodeName = null) : this(ownerObject) { NodeType = nodeType; if (nodeName != null && nodeName != string.Empty) { // A value for the name was supplied - no auto-generation. Name = nodeName; } else { AutoGenerateName = true; if (ownerObject != null) { RefreshName(); } } }
/// <summary> /// Constructor that takes a minimum of an Owner, but also optionally a name and type. /// </summary> /// <param name="nodeName">Name for the new node; required;</param> /// <param name="nodeType">Base_TN_NodeType of the new node; defaults to Unknown.</param> public SolarSystem_TN(IParent_Base_TN passedOwner, string nodeName = null, Base_TN_NodeType nodeType = Base_TN_NodeType.Unknown) : base(passedOwner, nodeType, nodeName) { }
public HierarchyView_TN(IParent_Base_TN passedOwner = null, string nodeName = null, Base_TN_NodeType newNodeType = Base_TN_NodeType.BlueprintHierarchyView) : base(passedOwner, newNodeType, nodeName) { }
/// <summary> /// Default constructor that attempts to set the owner object. /// </summary> /// <param name="ownerObject"></param> public Base_TN(IParent_Base_TN ownerObject = null) { OwnerObject = ownerObject; base.ToolTipText = null; }
/// <summary> /// Constructor that takes a minimum of a name, but also optionally a type and text (display name). /// </summary> /// <param name="nodeName">Name of the new node.</param> /// <param name="nodeType">Type of the new node (Base_TN_NodeType enum)</param> /// <param name="nodeText">Text of the new node (Display Name). If not specified this defaults to the node's name.</param> /// <param name="nodeToolTipText">Tool tip text of the new node. If not specified this defaults to the node's text.</param> public Json_TN(IParent_Base_TN ownerObject, Base_TN_NodeType newNodeType = Base_TN_NodeType.Unknown, string nodeName = null) : base(ownerObject, newNodeType, nodeName) { }
public Blueprint_TN(IParent_Base_TN passedOwner = null, Base_TN_NodeType newNodeType = Base_TN_NodeType.StationBlueprintFile, string nodeName = null) : base(passedOwner, newNodeType, nodeName) { }
/// <summary> /// Constructor that takes a minimum of a parent SearchHandler and a name, /// but also optionally a type and text (display name). /// </summary> /// <param name="passedParentSearchHandler"></param> /// <param name="nodeName"></param> /// <param name="newNodeType"></param> /// <param name="nodeText"></param> /// <param name="nodeToolTipText"></param> public SearchHandler_TN(SearchHandler.HESearchOperator passedParentSearchOperator, string nodeName, IParent_Base_TN passedOwner = null, Base_TN_NodeType newNodeType = Base_TN_NodeType.Unknown) : base(passedOwner, newNodeType, nodeName) { ParentSearchOperator = passedParentSearchOperator ?? throw new NullReferenceException("passedParentSearchOperator was null."); }
public SearchHandler_TN(string nodeName, IParent_Base_TN passedOwner = null, Base_TN_NodeType newNodeType = Base_TN_NodeType.Unknown) : base(passedOwner, newNodeType, nodeName) { }
public BlueprintDockingPort_TN(IParent_Base_TN passedOwner = null) : base(passedOwner) { // Set NodeType NodeType = Base_TN_NodeType.BlueprintDockingPort; }