map_static_data.pb.go 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.8
  4. // protoc v6.31.1
  5. // source: map_static_data.proto
  6. package pb
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. unsafe "unsafe"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. // 行走动态标签tag
  21. type MapWalkableTag int32
  22. const (
  23. // 不可行走
  24. MapWalkableTag_mwt_disable MapWalkableTag = 0
  25. // 可行走
  26. MapWalkableTag_mwt_enable MapWalkableTag = 1
  27. // 动态区域,区域通道占位点的格子标志这个
  28. MapWalkableTag_mwt_dymamic MapWalkableTag = 2
  29. )
  30. // Enum value maps for MapWalkableTag.
  31. var (
  32. MapWalkableTag_name = map[int32]string{
  33. 0: "mwt_disable",
  34. 1: "mwt_enable",
  35. 2: "mwt_dymamic",
  36. }
  37. MapWalkableTag_value = map[string]int32{
  38. "mwt_disable": 0,
  39. "mwt_enable": 1,
  40. "mwt_dymamic": 2,
  41. }
  42. )
  43. func (x MapWalkableTag) Enum() *MapWalkableTag {
  44. p := new(MapWalkableTag)
  45. *p = x
  46. return p
  47. }
  48. func (x MapWalkableTag) String() string {
  49. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  50. }
  51. func (MapWalkableTag) Descriptor() protoreflect.EnumDescriptor {
  52. return file_map_static_data_proto_enumTypes[0].Descriptor()
  53. }
  54. func (MapWalkableTag) Type() protoreflect.EnumType {
  55. return &file_map_static_data_proto_enumTypes[0]
  56. }
  57. func (x MapWalkableTag) Number() protoreflect.EnumNumber {
  58. return protoreflect.EnumNumber(x)
  59. }
  60. // Deprecated: Use MapWalkableTag.Descriptor instead.
  61. func (MapWalkableTag) EnumDescriptor() ([]byte, []int) {
  62. return file_map_static_data_proto_rawDescGZIP(), []int{0}
  63. }
  64. // 策划动态添加的tag
  65. type MapRuleTag int32
  66. const (
  67. // 无,默认值
  68. MapRuleTag_mrt_none MapRuleTag = 0
  69. // 驻守点
  70. MapRuleTag_mrt_garrison_point MapRuleTag = 1
  71. // 攻城主力站位
  72. MapRuleTag_mrt_main_force MapRuleTag = 2
  73. // 拆迁队站位
  74. MapRuleTag_mrt_siege_squad MapRuleTag = 3
  75. // 攻城交战位置(与守军交战的位置)
  76. MapRuleTag_mrt_siege_Points MapRuleTag = 4
  77. // 通道,关隘/渡口/码头等需要
  78. MapRuleTag_mrt_passageway MapRuleTag = 5
  79. // 城墙
  80. MapRuleTag_mrt_wall MapRuleTag = 6
  81. )
  82. // Enum value maps for MapRuleTag.
  83. var (
  84. MapRuleTag_name = map[int32]string{
  85. 0: "mrt_none",
  86. 1: "mrt_garrison_point",
  87. 2: "mrt_main_force",
  88. 3: "mrt_siege_squad",
  89. 4: "mrt_siege_Points",
  90. 5: "mrt_passageway",
  91. 6: "mrt_wall",
  92. }
  93. MapRuleTag_value = map[string]int32{
  94. "mrt_none": 0,
  95. "mrt_garrison_point": 1,
  96. "mrt_main_force": 2,
  97. "mrt_siege_squad": 3,
  98. "mrt_siege_Points": 4,
  99. "mrt_passageway": 5,
  100. "mrt_wall": 6,
  101. }
  102. )
  103. func (x MapRuleTag) Enum() *MapRuleTag {
  104. p := new(MapRuleTag)
  105. *p = x
  106. return p
  107. }
  108. func (x MapRuleTag) String() string {
  109. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  110. }
  111. func (MapRuleTag) Descriptor() protoreflect.EnumDescriptor {
  112. return file_map_static_data_proto_enumTypes[1].Descriptor()
  113. }
  114. func (MapRuleTag) Type() protoreflect.EnumType {
  115. return &file_map_static_data_proto_enumTypes[1]
  116. }
  117. func (x MapRuleTag) Number() protoreflect.EnumNumber {
  118. return protoreflect.EnumNumber(x)
  119. }
  120. // Deprecated: Use MapRuleTag.Descriptor instead.
  121. func (MapRuleTag) EnumDescriptor() ([]byte, []int) {
  122. return file_map_static_data_proto_rawDescGZIP(), []int{1}
  123. }
  124. // 地形/地表类型
  125. type TerrainType int32
  126. const (
  127. TerrainType_tt_none TerrainType = 0
  128. TerrainType_tt_grass TerrainType = 1 //草地
  129. TerrainType_tt_mountain TerrainType = 2 //山
  130. TerrainType_tt_water TerrainType = 3 //水
  131. TerrainType_tt_snowfield TerrainType = 4 //雪地
  132. TerrainType_tt_desert TerrainType = 5 //沙漠
  133. TerrainType_tt_wall TerrainType = 10 //城墙
  134. TerrainType_tt_foundation TerrainType = 20 //联盟驻地城内地基
  135. )
  136. // Enum value maps for TerrainType.
  137. var (
  138. TerrainType_name = map[int32]string{
  139. 0: "tt_none",
  140. 1: "tt_grass",
  141. 2: "tt_mountain",
  142. 3: "tt_water",
  143. 4: "tt_snowfield",
  144. 5: "tt_desert",
  145. 10: "tt_wall",
  146. 20: "tt_foundation",
  147. }
  148. TerrainType_value = map[string]int32{
  149. "tt_none": 0,
  150. "tt_grass": 1,
  151. "tt_mountain": 2,
  152. "tt_water": 3,
  153. "tt_snowfield": 4,
  154. "tt_desert": 5,
  155. "tt_wall": 10,
  156. "tt_foundation": 20,
  157. }
  158. )
  159. func (x TerrainType) Enum() *TerrainType {
  160. p := new(TerrainType)
  161. *p = x
  162. return p
  163. }
  164. func (x TerrainType) String() string {
  165. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  166. }
  167. func (TerrainType) Descriptor() protoreflect.EnumDescriptor {
  168. return file_map_static_data_proto_enumTypes[2].Descriptor()
  169. }
  170. func (TerrainType) Type() protoreflect.EnumType {
  171. return &file_map_static_data_proto_enumTypes[2]
  172. }
  173. func (x TerrainType) Number() protoreflect.EnumNumber {
  174. return protoreflect.EnumNumber(x)
  175. }
  176. // Deprecated: Use TerrainType.Descriptor instead.
  177. func (TerrainType) EnumDescriptor() ([]byte, []int) {
  178. return file_map_static_data_proto_rawDescGZIP(), []int{2}
  179. }
  180. // 系统对象(系统城/卫城/关卡/码头)类型
  181. type SysObjType int32
  182. const (
  183. SysObjType_so_none SysObjType = 0 //无
  184. SysObjType_so_castle SysObjType = 1 //系统城
  185. SysObjType_so_moutain_pass SysObjType = 2 //关隘
  186. SysObjType_so_river_crossing SysObjType = 3 //渡口
  187. SysObjType_so_dock SysObjType = 4 //码头
  188. SysObjType_so_town SysObjType = 5 //卫城
  189. )
  190. // Enum value maps for SysObjType.
  191. var (
  192. SysObjType_name = map[int32]string{
  193. 0: "so_none",
  194. 1: "so_castle",
  195. 2: "so_moutain_pass",
  196. 3: "so_river_crossing",
  197. 4: "so_dock",
  198. 5: "so_town",
  199. }
  200. SysObjType_value = map[string]int32{
  201. "so_none": 0,
  202. "so_castle": 1,
  203. "so_moutain_pass": 2,
  204. "so_river_crossing": 3,
  205. "so_dock": 4,
  206. "so_town": 5,
  207. }
  208. )
  209. func (x SysObjType) Enum() *SysObjType {
  210. p := new(SysObjType)
  211. *p = x
  212. return p
  213. }
  214. func (x SysObjType) String() string {
  215. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  216. }
  217. func (SysObjType) Descriptor() protoreflect.EnumDescriptor {
  218. return file_map_static_data_proto_enumTypes[3].Descriptor()
  219. }
  220. func (SysObjType) Type() protoreflect.EnumType {
  221. return &file_map_static_data_proto_enumTypes[3]
  222. }
  223. func (x SysObjType) Number() protoreflect.EnumNumber {
  224. return protoreflect.EnumNumber(x)
  225. }
  226. // Deprecated: Use SysObjType.Descriptor instead.
  227. func (SysObjType) EnumDescriptor() ([]byte, []int) {
  228. return file_map_static_data_proto_rawDescGZIP(), []int{3}
  229. }
  230. // {slgeditor}这个标签是地图编辑器相关。
  231. // {slgeditor enter=MapData }
  232. // 地图数据主消息
  233. type MapData struct {
  234. state protoimpl.MessageState `protogen:"open.v1"`
  235. // 地图基本信息
  236. MapInfo *MapInfo `protobuf:"bytes,1,opt,name=map_info,json=mapInfo,proto3" json:"map_info,omitempty"`
  237. // {slgeditor param=MapData.tiles fill=array from=cells } 用这个标签表示这个数组按NxN格子填充
  238. // 地块(格子)数据数组
  239. // 索引计算公式:index = y * width + x
  240. Tiles []*TileData `protobuf:"bytes,2,rep,name=tiles,proto3" json:"tiles,omitempty"`
  241. // {slgeditor param=MapData.castles fill=map from=instances key=center globalTagInv=BuildingType globalTagInvVelue=0|10} 用对象列表中对象公共属性 BuildingType != 0 的对象填充列表,
  242. // 系统城
  243. // 系统城
  244. Castles map[int32]*CastleData `protobuf:"bytes,4,rep,name=castles,proto3" json:"castles,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  245. // 跨洲寻路概览
  246. // {slgeditor param=MapData.path_summary}
  247. PathSummary *CrossStatePathSummary `protobuf:"bytes,9,opt,name=path_summary,json=pathSummary,proto3" json:"path_summary,omitempty"`
  248. // 元数据,编辑器专用,方便定位修改记录
  249. Metadata *MapMetadata `protobuf:"bytes,10,opt,name=metadata,proto3" json:"metadata,omitempty"`
  250. unknownFields protoimpl.UnknownFields
  251. sizeCache protoimpl.SizeCache
  252. }
  253. func (x *MapData) Reset() {
  254. *x = MapData{}
  255. mi := &file_map_static_data_proto_msgTypes[0]
  256. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  257. ms.StoreMessageInfo(mi)
  258. }
  259. func (x *MapData) String() string {
  260. return protoimpl.X.MessageStringOf(x)
  261. }
  262. func (*MapData) ProtoMessage() {}
  263. func (x *MapData) ProtoReflect() protoreflect.Message {
  264. mi := &file_map_static_data_proto_msgTypes[0]
  265. if x != nil {
  266. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  267. if ms.LoadMessageInfo() == nil {
  268. ms.StoreMessageInfo(mi)
  269. }
  270. return ms
  271. }
  272. return mi.MessageOf(x)
  273. }
  274. // Deprecated: Use MapData.ProtoReflect.Descriptor instead.
  275. func (*MapData) Descriptor() ([]byte, []int) {
  276. return file_map_static_data_proto_rawDescGZIP(), []int{0}
  277. }
  278. func (x *MapData) GetMapInfo() *MapInfo {
  279. if x != nil {
  280. return x.MapInfo
  281. }
  282. return nil
  283. }
  284. func (x *MapData) GetTiles() []*TileData {
  285. if x != nil {
  286. return x.Tiles
  287. }
  288. return nil
  289. }
  290. func (x *MapData) GetCastles() map[int32]*CastleData {
  291. if x != nil {
  292. return x.Castles
  293. }
  294. return nil
  295. }
  296. func (x *MapData) GetPathSummary() *CrossStatePathSummary {
  297. if x != nil {
  298. return x.PathSummary
  299. }
  300. return nil
  301. }
  302. func (x *MapData) GetMetadata() *MapMetadata {
  303. if x != nil {
  304. return x.Metadata
  305. }
  306. return nil
  307. }
  308. // 地图基本信息
  309. type MapInfo struct {
  310. state protoimpl.MessageState `protogen:"open.v1"`
  311. // {slgeditor param=MapInfo.map_id src=global path=map_id}
  312. // 地图
  313. MapId int32 `protobuf:"varint,1,opt,name=map_id,json=mapId,proto3" json:"map_id,omitempty"`
  314. // {slgeditor param=MapInfo.version_code src=global path=version_code}
  315. // 地图版本号
  316. VersionCode int32 `protobuf:"varint,2,opt,name=version_code,json=versionCode,proto3" json:"version_code,omitempty"`
  317. // {slgeditor param=MapInfo.width src=global path=mapwith}
  318. // 地图宽度(格子数)
  319. Width int32 `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"`
  320. // {slgeditor param=MapInfo.height src=global path=mapwith}
  321. // 地图高度(格子数)
  322. Height int32 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"`
  323. // 场景名称
  324. UnitySceneName string `protobuf:"bytes,5,opt,name=unity_scene_name,json=unitySceneName,proto3" json:"unity_scene_name,omitempty"`
  325. // {slgeditor param=MapInfo.map_name src=global path=map_name}
  326. // 地图名称
  327. MapName string `protobuf:"bytes,6,opt,name=map_name,json=mapName,proto3" json:"map_name,omitempty"`
  328. // 地图描述
  329. Description string `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"`
  330. unknownFields protoimpl.UnknownFields
  331. sizeCache protoimpl.SizeCache
  332. }
  333. func (x *MapInfo) Reset() {
  334. *x = MapInfo{}
  335. mi := &file_map_static_data_proto_msgTypes[1]
  336. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  337. ms.StoreMessageInfo(mi)
  338. }
  339. func (x *MapInfo) String() string {
  340. return protoimpl.X.MessageStringOf(x)
  341. }
  342. func (*MapInfo) ProtoMessage() {}
  343. func (x *MapInfo) ProtoReflect() protoreflect.Message {
  344. mi := &file_map_static_data_proto_msgTypes[1]
  345. if x != nil {
  346. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  347. if ms.LoadMessageInfo() == nil {
  348. ms.StoreMessageInfo(mi)
  349. }
  350. return ms
  351. }
  352. return mi.MessageOf(x)
  353. }
  354. // Deprecated: Use MapInfo.ProtoReflect.Descriptor instead.
  355. func (*MapInfo) Descriptor() ([]byte, []int) {
  356. return file_map_static_data_proto_rawDescGZIP(), []int{1}
  357. }
  358. func (x *MapInfo) GetMapId() int32 {
  359. if x != nil {
  360. return x.MapId
  361. }
  362. return 0
  363. }
  364. func (x *MapInfo) GetVersionCode() int32 {
  365. if x != nil {
  366. return x.VersionCode
  367. }
  368. return 0
  369. }
  370. func (x *MapInfo) GetWidth() int32 {
  371. if x != nil {
  372. return x.Width
  373. }
  374. return 0
  375. }
  376. func (x *MapInfo) GetHeight() int32 {
  377. if x != nil {
  378. return x.Height
  379. }
  380. return 0
  381. }
  382. func (x *MapInfo) GetUnitySceneName() string {
  383. if x != nil {
  384. return x.UnitySceneName
  385. }
  386. return ""
  387. }
  388. func (x *MapInfo) GetMapName() string {
  389. if x != nil {
  390. return x.MapName
  391. }
  392. return ""
  393. }
  394. func (x *MapInfo) GetDescription() string {
  395. if x != nil {
  396. return x.Description
  397. }
  398. return ""
  399. }
  400. // 格子数据
  401. type TileData struct {
  402. state protoimpl.MessageState `protogen:"open.v1"`
  403. // {slgeditor param=TileData.coord_index src=cell kind=pos} cell这种类型的情况,cell=pos导出格子的位置。
  404. // 格子索引(行优先顺序)
  405. // 索引计算公式:index = y * width + x
  406. // 索引从0开始,最大值为 (width * height - 1)
  407. CoordIndex int32 `protobuf:"varint,1,opt,name=coord_index,json=coordIndex,proto3" json:"coord_index,omitempty"`
  408. // {slgeditor param=TileData.county_id src=cell kind=area} cell这种类型的情况,cell=area 导出区域信息 反正就是导出最低一层是区域。简单来说,导出json的时候建筑有 Area0 Area1 Area2.反正就是最低一层所在的区域节点。
  409. // 所在县组合规则:
  410. // 例如 1 001 001
  411. // 州ID(001-999) + 省ID(001-999) + 县(001-999) //相当于原json Area1 + Area2 + Area3
  412. // Area2
  413. CountyId int32 `protobuf:"varint,2,opt,name=county_id,json=countyId,proto3" json:"county_id,omitempty"`
  414. // {slgeditor param=TileData.terrain src=cell kind=ground }//这个意思是把地图碰撞值放在这里,就是那个山,水,地面那个
  415. // 地形类型
  416. Terrain TerrainType `protobuf:"varint,3,opt,name=terrain,proto3,enum=pb.TerrainType" json:"terrain,omitempty"`
  417. // {slgeditor param=TileData.block_type src=cell kind=walkabletag} // 这个就是当前格子的地面信息是否地面可放置层。
  418. // 是否静态固定阻挡
  419. BlockType MapWalkableTag `protobuf:"varint,4,opt,name=block_type,json=blockType,proto3,enum=pb.MapWalkableTag" json:"block_type,omitempty"`
  420. // {slgeditor param=TileData.castle_center src=cell kind=center globalTagInv=BuildingType globalTagInvVelue=0|10 default=-1} //这个表示检查当前格子是否被某种instance占用,包括Point,Offset.如果有,这里是instance的center,否则则是defaul值-1
  421. // 系统物件中心点,坐标索引,没有就是-1
  422. CastleCenter int32 `protobuf:"varint,5,opt,name=castle_center,json=castleCenter,proto3" json:"castle_center,omitempty"`
  423. // {slgeditor param=TileData.is_state_boundary src=cell kind=gperimeter}
  424. // 是否州界
  425. IsStateBoundary bool `protobuf:"varint,6,opt,name=is_state_boundary,json=isStateBoundary,proto3" json:"is_state_boundary,omitempty"`
  426. unknownFields protoimpl.UnknownFields
  427. sizeCache protoimpl.SizeCache
  428. }
  429. func (x *TileData) Reset() {
  430. *x = TileData{}
  431. mi := &file_map_static_data_proto_msgTypes[2]
  432. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  433. ms.StoreMessageInfo(mi)
  434. }
  435. func (x *TileData) String() string {
  436. return protoimpl.X.MessageStringOf(x)
  437. }
  438. func (*TileData) ProtoMessage() {}
  439. func (x *TileData) ProtoReflect() protoreflect.Message {
  440. mi := &file_map_static_data_proto_msgTypes[2]
  441. if x != nil {
  442. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  443. if ms.LoadMessageInfo() == nil {
  444. ms.StoreMessageInfo(mi)
  445. }
  446. return ms
  447. }
  448. return mi.MessageOf(x)
  449. }
  450. // Deprecated: Use TileData.ProtoReflect.Descriptor instead.
  451. func (*TileData) Descriptor() ([]byte, []int) {
  452. return file_map_static_data_proto_rawDescGZIP(), []int{2}
  453. }
  454. func (x *TileData) GetCoordIndex() int32 {
  455. if x != nil {
  456. return x.CoordIndex
  457. }
  458. return 0
  459. }
  460. func (x *TileData) GetCountyId() int32 {
  461. if x != nil {
  462. return x.CountyId
  463. }
  464. return 0
  465. }
  466. func (x *TileData) GetTerrain() TerrainType {
  467. if x != nil {
  468. return x.Terrain
  469. }
  470. return TerrainType_tt_none
  471. }
  472. func (x *TileData) GetBlockType() MapWalkableTag {
  473. if x != nil {
  474. return x.BlockType
  475. }
  476. return MapWalkableTag_mwt_disable
  477. }
  478. func (x *TileData) GetCastleCenter() int32 {
  479. if x != nil {
  480. return x.CastleCenter
  481. }
  482. return 0
  483. }
  484. func (x *TileData) GetIsStateBoundary() bool {
  485. if x != nil {
  486. return x.IsStateBoundary
  487. }
  488. return false
  489. }
  490. // 系统城/卫城/关隘/渡口/码头
  491. // 2026.1.14 策划说码头是一个整体,只有一个血条,因此合并系统城/卫城/关隘/渡口/码头数据
  492. type CastleData struct {
  493. state protoimpl.MessageState `protogen:"open.v1"`
  494. // 中心点 换算公式 index = y * width + x
  495. // {slgeditor param=CastleData.center src=instance prop=pos} // 所有Vector2In都映射成 y * width + x
  496. Center int32 `protobuf:"varint,1,opt,name=center,proto3" json:"center,omitempty"`
  497. // {slgeditor param=CastleData.config_id src=instance prop=exportId} // 就是导出Instance的id
  498. // 配置Id
  499. ConfigId int32 `protobuf:"varint,2,opt,name=config_id,json=configId,proto3" json:"config_id,omitempty"`
  500. // {slgeditor param=CastleData.occupied_coords src=instance prop=offsets}
  501. // 占据面积(位置索引的集合),不含子建筑(卫城等)
  502. OccupiedCoords []int32 `protobuf:"varint,3,rep,packed,name=occupied_coords,json=occupiedCoords,proto3" json:"occupied_coords,omitempty"`
  503. // {slgeditor param=CastleData.parent src=instance prop=parent}
  504. // 父建筑数据(如有),坐标索引
  505. Parent int32 `protobuf:"varint,4,opt,name=parent,proto3" json:"parent,omitempty"`
  506. // {slgeditor param=CastleData.childs src=instance prop=childs}
  507. // 子建筑数据(如有),坐标索引列表
  508. Childs []int32 `protobuf:"varint,5,rep,packed,name=childs,proto3" json:"childs,omitempty"`
  509. // {slgeditor param=CastleData.appearance_index src=instance prop=AppearanceIndex} // 外观索引
  510. // 外观索引
  511. AppearanceIndex int32 `protobuf:"varint,6,opt,name=appearance_index,json=appearanceIndex,proto3" json:"appearance_index,omitempty"`
  512. // 标签坐标列表,如驻守点等
  513. // Protobuf 的 map key 不支持 enum,改用 int32(存 MapRuleTag 的数值)
  514. Tag_TilePoints map[int32]*TilePoints `protobuf:"bytes,7,rep,name=tag_TilePoints,json=tagTilePoints,proto3" json:"tag_TilePoints,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  515. // 系统对象类型(系统城、卫城、关隘、渡口、码头)
  516. // {slgeditor param=CastleData.sys_type src=tag name=BuildingType}
  517. SysType SysObjType `protobuf:"varint,8,opt,name=sys_type,json=sysType,proto3,enum=pb.SysObjType" json:"sys_type,omitempty"`
  518. unknownFields protoimpl.UnknownFields
  519. sizeCache protoimpl.SizeCache
  520. }
  521. func (x *CastleData) Reset() {
  522. *x = CastleData{}
  523. mi := &file_map_static_data_proto_msgTypes[3]
  524. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  525. ms.StoreMessageInfo(mi)
  526. }
  527. func (x *CastleData) String() string {
  528. return protoimpl.X.MessageStringOf(x)
  529. }
  530. func (*CastleData) ProtoMessage() {}
  531. func (x *CastleData) ProtoReflect() protoreflect.Message {
  532. mi := &file_map_static_data_proto_msgTypes[3]
  533. if x != nil {
  534. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  535. if ms.LoadMessageInfo() == nil {
  536. ms.StoreMessageInfo(mi)
  537. }
  538. return ms
  539. }
  540. return mi.MessageOf(x)
  541. }
  542. // Deprecated: Use CastleData.ProtoReflect.Descriptor instead.
  543. func (*CastleData) Descriptor() ([]byte, []int) {
  544. return file_map_static_data_proto_rawDescGZIP(), []int{3}
  545. }
  546. func (x *CastleData) GetCenter() int32 {
  547. if x != nil {
  548. return x.Center
  549. }
  550. return 0
  551. }
  552. func (x *CastleData) GetConfigId() int32 {
  553. if x != nil {
  554. return x.ConfigId
  555. }
  556. return 0
  557. }
  558. func (x *CastleData) GetOccupiedCoords() []int32 {
  559. if x != nil {
  560. return x.OccupiedCoords
  561. }
  562. return nil
  563. }
  564. func (x *CastleData) GetParent() int32 {
  565. if x != nil {
  566. return x.Parent
  567. }
  568. return 0
  569. }
  570. func (x *CastleData) GetChilds() []int32 {
  571. if x != nil {
  572. return x.Childs
  573. }
  574. return nil
  575. }
  576. func (x *CastleData) GetAppearanceIndex() int32 {
  577. if x != nil {
  578. return x.AppearanceIndex
  579. }
  580. return 0
  581. }
  582. func (x *CastleData) GetTag_TilePoints() map[int32]*TilePoints {
  583. if x != nil {
  584. return x.Tag_TilePoints
  585. }
  586. return nil
  587. }
  588. func (x *CastleData) GetSysType() SysObjType {
  589. if x != nil {
  590. return x.SysType
  591. }
  592. return SysObjType_so_none
  593. }
  594. // 地图元数据
  595. type MapMetadata struct {
  596. state protoimpl.MessageState `protogen:"open.v1"`
  597. // 创建时间(Unix时间戳)
  598. CreatedTime int64 `protobuf:"varint,1,opt,name=created_time,json=createdTime,proto3" json:"created_time,omitempty"`
  599. // 修改时间(Unix时间戳)
  600. ModifiedTime int64 `protobuf:"varint,2,opt,name=modified_time,json=modifiedTime,proto3" json:"modified_time,omitempty"`
  601. // 作者
  602. Author string `protobuf:"bytes,3,opt,name=author,proto3" json:"author,omitempty"`
  603. // 编辑器版本
  604. EditorVersion string `protobuf:"bytes,4,opt,name=editor_version,json=editorVersion,proto3" json:"editor_version,omitempty"`
  605. // 备注
  606. Notes string `protobuf:"bytes,5,opt,name=notes,proto3" json:"notes,omitempty"`
  607. // 标签
  608. Tags []string `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"`
  609. unknownFields protoimpl.UnknownFields
  610. sizeCache protoimpl.SizeCache
  611. }
  612. func (x *MapMetadata) Reset() {
  613. *x = MapMetadata{}
  614. mi := &file_map_static_data_proto_msgTypes[4]
  615. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  616. ms.StoreMessageInfo(mi)
  617. }
  618. func (x *MapMetadata) String() string {
  619. return protoimpl.X.MessageStringOf(x)
  620. }
  621. func (*MapMetadata) ProtoMessage() {}
  622. func (x *MapMetadata) ProtoReflect() protoreflect.Message {
  623. mi := &file_map_static_data_proto_msgTypes[4]
  624. if x != nil {
  625. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  626. if ms.LoadMessageInfo() == nil {
  627. ms.StoreMessageInfo(mi)
  628. }
  629. return ms
  630. }
  631. return mi.MessageOf(x)
  632. }
  633. // Deprecated: Use MapMetadata.ProtoReflect.Descriptor instead.
  634. func (*MapMetadata) Descriptor() ([]byte, []int) {
  635. return file_map_static_data_proto_rawDescGZIP(), []int{4}
  636. }
  637. func (x *MapMetadata) GetCreatedTime() int64 {
  638. if x != nil {
  639. return x.CreatedTime
  640. }
  641. return 0
  642. }
  643. func (x *MapMetadata) GetModifiedTime() int64 {
  644. if x != nil {
  645. return x.ModifiedTime
  646. }
  647. return 0
  648. }
  649. func (x *MapMetadata) GetAuthor() string {
  650. if x != nil {
  651. return x.Author
  652. }
  653. return ""
  654. }
  655. func (x *MapMetadata) GetEditorVersion() string {
  656. if x != nil {
  657. return x.EditorVersion
  658. }
  659. return ""
  660. }
  661. func (x *MapMetadata) GetNotes() string {
  662. if x != nil {
  663. return x.Notes
  664. }
  665. return ""
  666. }
  667. func (x *MapMetadata) GetTags() []string {
  668. if x != nil {
  669. return x.Tags
  670. }
  671. return nil
  672. }
  673. // ----------------------------------------------------------------
  674. // 跨州寻路
  675. // 跨州寻路参考
  676. type CrossStatePathSummary struct {
  677. state protoimpl.MessageState `protogen:"open.v1"`
  678. // {slgeditor param=CrossStatePathSummary.one_way_path fill=map from=areaMap areaLevel=1} 这是一个跨区域寻路字典,以区域第1层划分区域。 areaLevel=i,就是区域以哪级为主。
  679. // 遍历所有区域创建字典one_way_path[区域Id]
  680. // key为起始州Id
  681. OneWayPath map[int32]*AreaStateTarget `protobuf:"bytes,1,rep,name=one_way_path,json=oneWayPath,proto3" json:"one_way_path,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  682. unknownFields protoimpl.UnknownFields
  683. sizeCache protoimpl.SizeCache
  684. }
  685. func (x *CrossStatePathSummary) Reset() {
  686. *x = CrossStatePathSummary{}
  687. mi := &file_map_static_data_proto_msgTypes[5]
  688. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  689. ms.StoreMessageInfo(mi)
  690. }
  691. func (x *CrossStatePathSummary) String() string {
  692. return protoimpl.X.MessageStringOf(x)
  693. }
  694. func (*CrossStatePathSummary) ProtoMessage() {}
  695. func (x *CrossStatePathSummary) ProtoReflect() protoreflect.Message {
  696. mi := &file_map_static_data_proto_msgTypes[5]
  697. if x != nil {
  698. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  699. if ms.LoadMessageInfo() == nil {
  700. ms.StoreMessageInfo(mi)
  701. }
  702. return ms
  703. }
  704. return mi.MessageOf(x)
  705. }
  706. // Deprecated: Use CrossStatePathSummary.ProtoReflect.Descriptor instead.
  707. func (*CrossStatePathSummary) Descriptor() ([]byte, []int) {
  708. return file_map_static_data_proto_rawDescGZIP(), []int{5}
  709. }
  710. func (x *CrossStatePathSummary) GetOneWayPath() map[int32]*AreaStateTarget {
  711. if x != nil {
  712. return x.OneWayPath
  713. }
  714. return nil
  715. }
  716. // 州目标
  717. type AreaStateTarget struct {
  718. state protoimpl.MessageState `protogen:"open.v1"`
  719. // {slgeditor param=AreaStateTarget.targets fill=map from=areaPath path=PassageWay areaLevel=1} // 自动从 TilePathList 和 TilePoints 的 point_list_field 配置获取字段名
  720. Targets map[int32]*TilePathList `protobuf:"bytes,1,rep,name=targets,proto3" json:"targets,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  721. unknownFields protoimpl.UnknownFields
  722. sizeCache protoimpl.SizeCache
  723. }
  724. func (x *AreaStateTarget) Reset() {
  725. *x = AreaStateTarget{}
  726. mi := &file_map_static_data_proto_msgTypes[6]
  727. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  728. ms.StoreMessageInfo(mi)
  729. }
  730. func (x *AreaStateTarget) String() string {
  731. return protoimpl.X.MessageStringOf(x)
  732. }
  733. func (*AreaStateTarget) ProtoMessage() {}
  734. func (x *AreaStateTarget) ProtoReflect() protoreflect.Message {
  735. mi := &file_map_static_data_proto_msgTypes[6]
  736. if x != nil {
  737. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  738. if ms.LoadMessageInfo() == nil {
  739. ms.StoreMessageInfo(mi)
  740. }
  741. return ms
  742. }
  743. return mi.MessageOf(x)
  744. }
  745. // Deprecated: Use AreaStateTarget.ProtoReflect.Descriptor instead.
  746. func (*AreaStateTarget) Descriptor() ([]byte, []int) {
  747. return file_map_static_data_proto_rawDescGZIP(), []int{6}
  748. }
  749. func (x *AreaStateTarget) GetTargets() map[int32]*TilePathList {
  750. if x != nil {
  751. return x.Targets
  752. }
  753. return nil
  754. }
  755. // 多条路径列表
  756. // {slgeditor point_list_field=path_list message=TilePathList} // 指定 TilePathList 消息中用于存储路径列表的字段名
  757. type TilePathList struct {
  758. state protoimpl.MessageState `protogen:"open.v1"`
  759. // 多条路径列表
  760. // {slgeditor param=TilePathList.path_list fill=array manual=true} // 手动填充,不需要映射规则
  761. PathList []*TilePoints `protobuf:"bytes,1,rep,name=path_list,json=pathList,proto3" json:"path_list,omitempty"`
  762. unknownFields protoimpl.UnknownFields
  763. sizeCache protoimpl.SizeCache
  764. }
  765. func (x *TilePathList) Reset() {
  766. *x = TilePathList{}
  767. mi := &file_map_static_data_proto_msgTypes[7]
  768. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  769. ms.StoreMessageInfo(mi)
  770. }
  771. func (x *TilePathList) String() string {
  772. return protoimpl.X.MessageStringOf(x)
  773. }
  774. func (*TilePathList) ProtoMessage() {}
  775. func (x *TilePathList) ProtoReflect() protoreflect.Message {
  776. mi := &file_map_static_data_proto_msgTypes[7]
  777. if x != nil {
  778. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  779. if ms.LoadMessageInfo() == nil {
  780. ms.StoreMessageInfo(mi)
  781. }
  782. return ms
  783. }
  784. return mi.MessageOf(x)
  785. }
  786. // Deprecated: Use TilePathList.ProtoReflect.Descriptor instead.
  787. func (*TilePathList) Descriptor() ([]byte, []int) {
  788. return file_map_static_data_proto_rawDescGZIP(), []int{7}
  789. }
  790. func (x *TilePathList) GetPathList() []*TilePoints {
  791. if x != nil {
  792. return x.PathList
  793. }
  794. return nil
  795. }
  796. // 路径点(坐标索引)列表
  797. // {slgeditor point_list_field=points message=TilePoints} // 指定 TilePoints 消息中用于存储点列表的字段名
  798. type TilePoints struct {
  799. state protoimpl.MessageState `protogen:"open.v1"`
  800. Points []int32 `protobuf:"varint,1,rep,packed,name=points,proto3" json:"points,omitempty"`
  801. unknownFields protoimpl.UnknownFields
  802. sizeCache protoimpl.SizeCache
  803. }
  804. func (x *TilePoints) Reset() {
  805. *x = TilePoints{}
  806. mi := &file_map_static_data_proto_msgTypes[8]
  807. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  808. ms.StoreMessageInfo(mi)
  809. }
  810. func (x *TilePoints) String() string {
  811. return protoimpl.X.MessageStringOf(x)
  812. }
  813. func (*TilePoints) ProtoMessage() {}
  814. func (x *TilePoints) ProtoReflect() protoreflect.Message {
  815. mi := &file_map_static_data_proto_msgTypes[8]
  816. if x != nil {
  817. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  818. if ms.LoadMessageInfo() == nil {
  819. ms.StoreMessageInfo(mi)
  820. }
  821. return ms
  822. }
  823. return mi.MessageOf(x)
  824. }
  825. // Deprecated: Use TilePoints.ProtoReflect.Descriptor instead.
  826. func (*TilePoints) Descriptor() ([]byte, []int) {
  827. return file_map_static_data_proto_rawDescGZIP(), []int{8}
  828. }
  829. func (x *TilePoints) GetPoints() []int32 {
  830. if x != nil {
  831. return x.Points
  832. }
  833. return nil
  834. }
  835. var File_map_static_data_proto protoreflect.FileDescriptor
  836. const file_map_static_data_proto_rawDesc = "" +
  837. "\n" +
  838. "\x15map_static_data.proto\x12\x02pb\"\xc0\x02\n" +
  839. "\aMapData\x12&\n" +
  840. "\bmap_info\x18\x01 \x01(\v2\v.pb.MapInfoR\amapInfo\x12\"\n" +
  841. "\x05tiles\x18\x02 \x03(\v2\f.pb.TileDataR\x05tiles\x122\n" +
  842. "\acastles\x18\x04 \x03(\v2\x18.pb.MapData.CastlesEntryR\acastles\x12<\n" +
  843. "\fpath_summary\x18\t \x01(\v2\x19.pb.CrossStatePathSummaryR\vpathSummary\x12+\n" +
  844. "\bmetadata\x18\n" +
  845. " \x01(\v2\x0f.pb.MapMetadataR\bmetadata\x1aJ\n" +
  846. "\fCastlesEntry\x12\x10\n" +
  847. "\x03key\x18\x01 \x01(\x05R\x03key\x12$\n" +
  848. "\x05value\x18\x02 \x01(\v2\x0e.pb.CastleDataR\x05value:\x028\x01\"\xd8\x01\n" +
  849. "\aMapInfo\x12\x15\n" +
  850. "\x06map_id\x18\x01 \x01(\x05R\x05mapId\x12!\n" +
  851. "\fversion_code\x18\x02 \x01(\x05R\vversionCode\x12\x14\n" +
  852. "\x05width\x18\x03 \x01(\x05R\x05width\x12\x16\n" +
  853. "\x06height\x18\x04 \x01(\x05R\x06height\x12(\n" +
  854. "\x10unity_scene_name\x18\x05 \x01(\tR\x0eunitySceneName\x12\x19\n" +
  855. "\bmap_name\x18\x06 \x01(\tR\amapName\x12 \n" +
  856. "\vdescription\x18\a \x01(\tR\vdescription\"\xf7\x01\n" +
  857. "\bTileData\x12\x1f\n" +
  858. "\vcoord_index\x18\x01 \x01(\x05R\n" +
  859. "coordIndex\x12\x1b\n" +
  860. "\tcounty_id\x18\x02 \x01(\x05R\bcountyId\x12)\n" +
  861. "\aterrain\x18\x03 \x01(\x0e2\x0f.pb.TerrainTypeR\aterrain\x121\n" +
  862. "\n" +
  863. "block_type\x18\x04 \x01(\x0e2\x12.pb.MapWalkableTagR\tblockType\x12#\n" +
  864. "\rcastle_center\x18\x05 \x01(\x05R\fcastleCenter\x12*\n" +
  865. "\x11is_state_boundary\x18\x06 \x01(\bR\x0fisStateBoundary\"\x8c\x03\n" +
  866. "\n" +
  867. "CastleData\x12\x16\n" +
  868. "\x06center\x18\x01 \x01(\x05R\x06center\x12\x1b\n" +
  869. "\tconfig_id\x18\x02 \x01(\x05R\bconfigId\x12'\n" +
  870. "\x0foccupied_coords\x18\x03 \x03(\x05R\x0eoccupiedCoords\x12\x16\n" +
  871. "\x06parent\x18\x04 \x01(\x05R\x06parent\x12\x16\n" +
  872. "\x06childs\x18\x05 \x03(\x05R\x06childs\x12)\n" +
  873. "\x10appearance_index\x18\x06 \x01(\x05R\x0fappearanceIndex\x12H\n" +
  874. "\x0etag_TilePoints\x18\a \x03(\v2!.pb.CastleData.TagTilePointsEntryR\rtagTilePoints\x12)\n" +
  875. "\bsys_type\x18\b \x01(\x0e2\x0e.pb.SysObjTypeR\asysType\x1aP\n" +
  876. "\x12TagTilePointsEntry\x12\x10\n" +
  877. "\x03key\x18\x01 \x01(\x05R\x03key\x12$\n" +
  878. "\x05value\x18\x02 \x01(\v2\x0e.pb.TilePointsR\x05value:\x028\x01\"\xbe\x01\n" +
  879. "\vMapMetadata\x12!\n" +
  880. "\fcreated_time\x18\x01 \x01(\x03R\vcreatedTime\x12#\n" +
  881. "\rmodified_time\x18\x02 \x01(\x03R\fmodifiedTime\x12\x16\n" +
  882. "\x06author\x18\x03 \x01(\tR\x06author\x12%\n" +
  883. "\x0eeditor_version\x18\x04 \x01(\tR\reditorVersion\x12\x14\n" +
  884. "\x05notes\x18\x05 \x01(\tR\x05notes\x12\x12\n" +
  885. "\x04tags\x18\x06 \x03(\tR\x04tags\"\xb8\x01\n" +
  886. "\x15CrossStatePathSummary\x12K\n" +
  887. "\fone_way_path\x18\x01 \x03(\v2).pb.CrossStatePathSummary.OneWayPathEntryR\n" +
  888. "oneWayPath\x1aR\n" +
  889. "\x0fOneWayPathEntry\x12\x10\n" +
  890. "\x03key\x18\x01 \x01(\x05R\x03key\x12)\n" +
  891. "\x05value\x18\x02 \x01(\v2\x13.pb.AreaStateTargetR\x05value:\x028\x01\"\x9b\x01\n" +
  892. "\x0fAreaStateTarget\x12:\n" +
  893. "\atargets\x18\x01 \x03(\v2 .pb.AreaStateTarget.TargetsEntryR\atargets\x1aL\n" +
  894. "\fTargetsEntry\x12\x10\n" +
  895. "\x03key\x18\x01 \x01(\x05R\x03key\x12&\n" +
  896. "\x05value\x18\x02 \x01(\v2\x10.pb.TilePathListR\x05value:\x028\x01\";\n" +
  897. "\fTilePathList\x12+\n" +
  898. "\tpath_list\x18\x01 \x03(\v2\x0e.pb.TilePointsR\bpathList\"$\n" +
  899. "\n" +
  900. "TilePoints\x12\x16\n" +
  901. "\x06points\x18\x01 \x03(\x05R\x06points*B\n" +
  902. "\x0eMapWalkableTag\x12\x0f\n" +
  903. "\vmwt_disable\x10\x00\x12\x0e\n" +
  904. "\n" +
  905. "mwt_enable\x10\x01\x12\x0f\n" +
  906. "\vmwt_dymamic\x10\x02*\x93\x01\n" +
  907. "\n" +
  908. "MapRuleTag\x12\f\n" +
  909. "\bmrt_none\x10\x00\x12\x16\n" +
  910. "\x12mrt_garrison_point\x10\x01\x12\x12\n" +
  911. "\x0emrt_main_force\x10\x02\x12\x13\n" +
  912. "\x0fmrt_siege_squad\x10\x03\x12\x14\n" +
  913. "\x10mrt_siege_Points\x10\x04\x12\x12\n" +
  914. "\x0emrt_passageway\x10\x05\x12\f\n" +
  915. "\bmrt_wall\x10\x06*\x88\x01\n" +
  916. "\vTerrainType\x12\v\n" +
  917. "\att_none\x10\x00\x12\f\n" +
  918. "\btt_grass\x10\x01\x12\x0f\n" +
  919. "\vtt_mountain\x10\x02\x12\f\n" +
  920. "\btt_water\x10\x03\x12\x10\n" +
  921. "\ftt_snowfield\x10\x04\x12\r\n" +
  922. "\ttt_desert\x10\x05\x12\v\n" +
  923. "\att_wall\x10\n" +
  924. "\x12\x11\n" +
  925. "\rtt_foundation\x10\x14*n\n" +
  926. "\n" +
  927. "SysObjType\x12\v\n" +
  928. "\aso_none\x10\x00\x12\r\n" +
  929. "\tso_castle\x10\x01\x12\x13\n" +
  930. "\x0fso_moutain_pass\x10\x02\x12\x15\n" +
  931. "\x11so_river_crossing\x10\x03\x12\v\n" +
  932. "\aso_dock\x10\x04\x12\v\n" +
  933. "\aso_town\x10\x05B\x05Z\x03/pbb\x06proto3"
  934. var (
  935. file_map_static_data_proto_rawDescOnce sync.Once
  936. file_map_static_data_proto_rawDescData []byte
  937. )
  938. func file_map_static_data_proto_rawDescGZIP() []byte {
  939. file_map_static_data_proto_rawDescOnce.Do(func() {
  940. file_map_static_data_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_map_static_data_proto_rawDesc), len(file_map_static_data_proto_rawDesc)))
  941. })
  942. return file_map_static_data_proto_rawDescData
  943. }
  944. var file_map_static_data_proto_enumTypes = make([]protoimpl.EnumInfo, 4)
  945. var file_map_static_data_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
  946. var file_map_static_data_proto_goTypes = []any{
  947. (MapWalkableTag)(0), // 0: pb.MapWalkableTag
  948. (MapRuleTag)(0), // 1: pb.MapRuleTag
  949. (TerrainType)(0), // 2: pb.TerrainType
  950. (SysObjType)(0), // 3: pb.SysObjType
  951. (*MapData)(nil), // 4: pb.MapData
  952. (*MapInfo)(nil), // 5: pb.MapInfo
  953. (*TileData)(nil), // 6: pb.TileData
  954. (*CastleData)(nil), // 7: pb.CastleData
  955. (*MapMetadata)(nil), // 8: pb.MapMetadata
  956. (*CrossStatePathSummary)(nil), // 9: pb.CrossStatePathSummary
  957. (*AreaStateTarget)(nil), // 10: pb.AreaStateTarget
  958. (*TilePathList)(nil), // 11: pb.TilePathList
  959. (*TilePoints)(nil), // 12: pb.TilePoints
  960. nil, // 13: pb.MapData.CastlesEntry
  961. nil, // 14: pb.CastleData.TagTilePointsEntry
  962. nil, // 15: pb.CrossStatePathSummary.OneWayPathEntry
  963. nil, // 16: pb.AreaStateTarget.TargetsEntry
  964. }
  965. var file_map_static_data_proto_depIdxs = []int32{
  966. 5, // 0: pb.MapData.map_info:type_name -> pb.MapInfo
  967. 6, // 1: pb.MapData.tiles:type_name -> pb.TileData
  968. 13, // 2: pb.MapData.castles:type_name -> pb.MapData.CastlesEntry
  969. 9, // 3: pb.MapData.path_summary:type_name -> pb.CrossStatePathSummary
  970. 8, // 4: pb.MapData.metadata:type_name -> pb.MapMetadata
  971. 2, // 5: pb.TileData.terrain:type_name -> pb.TerrainType
  972. 0, // 6: pb.TileData.block_type:type_name -> pb.MapWalkableTag
  973. 14, // 7: pb.CastleData.tag_TilePoints:type_name -> pb.CastleData.TagTilePointsEntry
  974. 3, // 8: pb.CastleData.sys_type:type_name -> pb.SysObjType
  975. 15, // 9: pb.CrossStatePathSummary.one_way_path:type_name -> pb.CrossStatePathSummary.OneWayPathEntry
  976. 16, // 10: pb.AreaStateTarget.targets:type_name -> pb.AreaStateTarget.TargetsEntry
  977. 12, // 11: pb.TilePathList.path_list:type_name -> pb.TilePoints
  978. 7, // 12: pb.MapData.CastlesEntry.value:type_name -> pb.CastleData
  979. 12, // 13: pb.CastleData.TagTilePointsEntry.value:type_name -> pb.TilePoints
  980. 10, // 14: pb.CrossStatePathSummary.OneWayPathEntry.value:type_name -> pb.AreaStateTarget
  981. 11, // 15: pb.AreaStateTarget.TargetsEntry.value:type_name -> pb.TilePathList
  982. 16, // [16:16] is the sub-list for method output_type
  983. 16, // [16:16] is the sub-list for method input_type
  984. 16, // [16:16] is the sub-list for extension type_name
  985. 16, // [16:16] is the sub-list for extension extendee
  986. 0, // [0:16] is the sub-list for field type_name
  987. }
  988. func init() { file_map_static_data_proto_init() }
  989. func file_map_static_data_proto_init() {
  990. if File_map_static_data_proto != nil {
  991. return
  992. }
  993. type x struct{}
  994. out := protoimpl.TypeBuilder{
  995. File: protoimpl.DescBuilder{
  996. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  997. RawDescriptor: unsafe.Slice(unsafe.StringData(file_map_static_data_proto_rawDesc), len(file_map_static_data_proto_rawDesc)),
  998. NumEnums: 4,
  999. NumMessages: 13,
  1000. NumExtensions: 0,
  1001. NumServices: 0,
  1002. },
  1003. GoTypes: file_map_static_data_proto_goTypes,
  1004. DependencyIndexes: file_map_static_data_proto_depIdxs,
  1005. EnumInfos: file_map_static_data_proto_enumTypes,
  1006. MessageInfos: file_map_static_data_proto_msgTypes,
  1007. }.Build()
  1008. File_map_static_data_proto = out.File
  1009. file_map_static_data_proto_goTypes = nil
  1010. file_map_static_data_proto_depIdxs = nil
  1011. }