Пример #1
0
        public override string ToString()
        {
            StringBuilder sBuilder = new StringBuilder();

            if (this.Sector != null)
            {
                sBuilder.AppendFormat("{0}.{1}", Base36.Encode((long)this.Sector.IndexX), Base36.Encode((long)this.Sector.IndexY));
            }
            if (this.StarSystem != null)
            {
                sBuilder.AppendFormat(".{0}", Base36.Encode((long)this.StarSystem.SysNum));
            }
            if (this.SystemBody != null)
            {
                sBuilder.AppendFormat(".{0}", Base36.Encode((long)this.SystemBody.SystemBodyId));
            }
            if (this.PlanetSector != null)
            {
                sBuilder.AppendFormat(".{0}", this.PlanetSector);
            }
            if (this.Zone != null)
            {
                sBuilder.AppendFormat(".{0}", this.Zone);
            }

            return(sBuilder.ToString());
        }
Пример #2
0
 public override string ToString()
 {
     return(string.Format(
                "{0}.{1}:{2}.{3}.{4}",
                Base36.Encode((long)this._sectorIndexX),
                Base36.Encode((long)this._sectorIndexY),
                Base36.Encode((long)this._sectorLocation.X),
                Base36.Encode((long)this._sectorLocation.Y),
                Base36.Encode((long)this._sectorLocation.Z)
                ));
 }