/// <summary> /// Avoid doing this each frame, it looks up the name via doing a GetDataBlob and an List.IndexOf() /// </summary> public string GetName() { string designName = DesignEntity.GetDataBlob <NameDB>().DefaultName; return(designName + " " + ParentInstances.GetComponentsBySpecificDesign(DesignEntity.Guid).IndexOf(this)); }
/// <summary> /// returns the design name and index of this component ie "Thruster5k# 1" /// Avoid doing this each frame, it looks up the name via doing a GetDataBlob and an List.IndexOf() /// </summary> public string GetName() { string designName = Design.Name; return(designName + "# " + ParentInstances.GetComponentsBySpecificDesign(Design.ID).IndexOf(this)); }