Example #1
0
        public override string ToString()
        {
            if (!this.mySerialized)
            {
                for (int i = 0; i < TransitCells.Count; i++)
                {
                    this.mySerializedPath.Append(Pathfinder.GetDirectionChar(Directions[i]));
                    this.mySerializedPath.Append(CellHelper.CellIdToCharCode(TransitCells[i]));
                }
                this.mySerialized = true;
            }

            return(this.mySerializedPath.ToString());
        }