Ejemplo n.º 1
0
        /// <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));
        }
Ejemplo n.º 2
0
        /// <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));
        }