地图编码研究记录
HDTT
目录
一、前言 ...............................................................................................................................................................1
1.1 License.................................................................................................................................................1
1.2 不懂代码也能读程序 ......................................................................................................................2
1.2.1 Class ........................................................................................................................................2
1.2.1.1 定义.............................................................................................................................2
1.2.1.2 构造.............................................................................................................................3
1.2.1.3 C#构造函数.............................................................................................................3
二、重识地图......................................................................................................................................................3
1.3 关于本文的声明................................................................................................................................4
三、程序 ...............................................................................................................................................................4
3.1 背景介绍 .............................................................................................................................................4
3.2 文件的定义.........................................................................................................................................5
3.2.1 虚拟文件系统 .......................................................................................................................5
3.2.2 VirtualTextFile.cs.................................................................................................................7
3.2.2 MemoryFile............................................................................................................................7
3.3 数据格式 .............................................................................................................................................8
3.3.1 MapObject.cs........................................................................................................................8
3.3.1.1 综述.............................................................................................................................8
3.3.1.2 IsoTile .........................................................................................................................9
3.3.1.3 Overlay.....................................................................................................................10
3.3.2 TileLayer.cs.........................................................................................................................10
3.3.3 MapFile.cs ...........................................................................................................................12
3.3.3.1 定义 ..........................................................................................................................12
3.3.3.2 初始化地图的函数...............................................................................................13
3.3.3.2 ReadTile ..................................................................................................................15
四、编码方式....................................................................................................................................................17
评论0