DataConfig.ts 48 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833
  1. // 蓝 灰 粉 红 黄 蓝2 灰2 粉2 红2 黄2
  2. // 1 3 5 7 9 11 13 15 17 19
  3. // 2 4 6 8 10 12 14 16 18 20
  4. import { SofaColor } from "../EventName/EventName"
  5. export const tiledSize = cc.size(81, 78)//每个小地板的 尺寸
  6. export const leftButtomStatPos = cc.v2(0, 0)
  7. //千位是否是锁
  8. export var tableData = [
  9. [0, 0, 0, 0, 0, 0],
  10. [0, 0, 0, 0, 0, 0],
  11. [0, 0, 0, 0, 0, 0],
  12. [0, 0, 0, 0, 0, 0],
  13. [0, 0, 0, 0, 0, 0],
  14. [99, 0, 99, 99, 99, 99],
  15. [99, 0, 99, 99, 99, 99],
  16. [0, 0, 0, 0, 0, 0],
  17. [0, 0, 0, 0, 0, 0],
  18. [0, 0, 0, 0, 0, 0],
  19. [0, 0, 0, 0, 0, 0],
  20. [0, 0, 0, 0, 0, 0],
  21. ]
  22. //车子的宽
  23. export var tableDataX = 6
  24. //车子的高
  25. export var tableDataY = 12
  26. //当前灰色沙发允许做的颜色
  27. export var GraySitDownColor = SofaColor.粉
  28. //当前排队人数
  29. export var RoloQueues = []
  30. //当前倒计时
  31. export var GlobalCountDownTime = 0
  32. //地图加载 是否完毕的标识
  33. export var MapInitOver = false
  34. //人物加载 是否完毕的标识
  35. export var RoloInitOver = false
  36. export var MenX = 5
  37. export var MenY = 11
  38. export var MenXLeft = 5
  39. export var MenYLeft = 11
  40. //车子类型
  41. export var BusType = 1
  42. export type BusNodeDataType = {
  43. 'fllow': number[],
  44. 'BusMod2': number[],
  45. 'BusMod4': number[],
  46. 'BusMod1': number[],
  47. 'BusMod3': number[],
  48. 'gameLayer': number[],
  49. 'BusModSp': number[],
  50. 'MapScale': number,
  51. 'BusScale': number,
  52. 'RoleScale': number,
  53. 'BgImage': string,
  54. 'Rail': number[][],
  55. }
  56. export var BusNodeData = {
  57. //#region 3x2+1x11 7x11 类型 皮肤类型
  58. 1: [{
  59. 'fllow': [-282.844, -475.78],
  60. 'gameLayer': [-282.844, -475.78],
  61. 'BusMod2': null,
  62. 'BusMod4': [-375, -812],//x.y.图片名称
  63. 'BusMod1': [-375, -812],
  64. 'BusMod3': null,
  65. 'BusModSp': [1, null, null, 2],
  66. 'MapScale': 1,
  67. 'BusScale': 1,
  68. 'RoleScale': 1,
  69. 'Rail': null,
  70. 'BgImage': 'res/Bg/背景'
  71. }, {
  72. 'fllow': [-282.844, -475.78],
  73. 'gameLayer': [-282.844, -475.78],
  74. 'BusMod2': null,
  75. 'BusMod4': [-375, -812],//x.y.图片名称
  76. 'BusMod1': [-375, -812],
  77. 'BusMod3': null,
  78. 'BusModSp': [1, null, null, 2],
  79. 'MapScale': 1,
  80. 'BusScale': 1,
  81. 'RoleScale': 1,
  82. 'Rail': [[-157.83, 13.902, 1, 1], [158.388, 13.902, 1, 1]],
  83. 'BgImage': 'res/Bg/背景'
  84. }, {
  85. 'fllow': [-282.844, -475.78],
  86. 'gameLayer': [-282.844, -475.78],
  87. 'BusMod2': null,
  88. 'BusMod4': [-375, -812],//x.y.图片名称
  89. 'BusMod1': [-375, -812],
  90. 'BusMod3': null,
  91. 'BusModSp': [1, null, null, 2],
  92. 'MapScale': 1,
  93. 'BusScale': 1,
  94. 'RoleScale': 1,
  95. 'Rail': null,
  96. 'BgImage': 'res/Bg/背景'
  97. }, {
  98. 'fllow': [-282.844, -470.926],
  99. 'gameLayer': [-282.844, -470.926],
  100. 'BusMod2': null,
  101. 'BusMod4': [-375, -812],//x.y.图片名称
  102. 'BusMod1': [-375, -812],
  103. 'BusMod3': null,
  104. 'BusModSp': [1, null, null, 2],
  105. 'MapScale': 1,
  106. 'BusScale': 1,
  107. 'RoleScale': 1,
  108. 'Rail': [[-157.83, 13.902, 1, 1], [158.388, 13.902, 1, 1]],
  109. 'BgImage': 'res/Bg/背景'
  110. }, {
  111. 'fllow': [-282.844, -470.926],
  112. 'gameLayer': [-282.844, -470.926],
  113. 'BusMod2': null,
  114. 'BusMod4': [-375, -812],//x.y.图片名称
  115. 'BusMod1': [-375, -812],
  116. 'BusMod3': null,
  117. 'BusModSp': [1, null, null, 2],
  118. 'MapScale': 1,
  119. 'BusScale': 1,
  120. 'RoleScale': 1,
  121. 'Rail': [[-157.83, 13.902, 1, 1], [158.388, 13.902, 1, 1]],
  122. 'BgImage': 'res/Bg/背景'
  123. }, {
  124. 'fllow': [-309.644, -506.234],
  125. 'gameLayer': [-309.644, -506.234],
  126. 'BusMod2': null,
  127. 'BusMod4': [-544.441, -1124.433],//x.y.图片名称
  128. 'BusMod1': [-544.441, -1124.433],
  129. 'BusMod3': null,
  130. 'BusModSp': [1, null, null, 2],
  131. 'MapScale': 0.893,
  132. 'BusScale': 1.3,
  133. 'RoleScale': 0.893,
  134. 'BgImage': 'res/Bg/海'
  135. }, {
  136. 'fllow': [-343.261, -402.212],
  137. 'gameLayer': [-343.261, -402.212],
  138. 'BusMod2': null,
  139. 'BusMod4': [-571.481, -1026.478],//x.y.图片名称
  140. 'BusMod1': [-571.481, -1025.042],
  141. 'BusMod3': null,
  142. 'BusModSp': [1, null, null, 2],
  143. 'MapScale': 0.98,
  144. 'BusScale': 1.35,
  145. 'RoleScale': 0.98,
  146. 'BgImage': 'res/Bg/背景'
  147. }],
  148. //#endregion
  149. //#region 4x7 类型 皮肤类型
  150. 2: [{
  151. 'fllow': [-278.372, -509.388],
  152. 'gameLayer': [-278.372, -509.388],
  153. 'BusMod2': null,
  154. 'BusMod4': [-555.763, -1180.689],//x.y.图片名称
  155. 'BusMod1': [-555.763, -1180.689],
  156. 'BusMod3': null,
  157. 'BusModSp': [2, null, null, 1],
  158. 'MapScale': 1.3,
  159. 'BusScale': 1.3,
  160. 'RoleScale': 1.3,
  161. 'Rail': null,
  162. 'BgImage': 'res/Bg/背景'
  163. }, {
  164. 'fllow': [-278.372, -509.388],
  165. 'gameLayer': [-278.372, -509.388],
  166. 'BusMod2': null,
  167. 'BusMod4': [-555.763, -1180.689],//x.y.图片名称
  168. 'BusMod1': [-555.763, -1180.689],
  169. 'BusMod3': null,
  170. 'BusModSp': [2, null, null, 1],
  171. 'MapScale': 1.3,
  172. 'BusScale': 1.3,
  173. 'RoleScale': 1.3,
  174. 'Rail': [[-60, 13.902, 1.3, 1.3], null],
  175. 'BgImage': 'res/Bg/背景'
  176. }, {
  177. 'fllow': [-278.372, -509.388],
  178. 'gameLayer': [-278.372, -509.388],
  179. 'BusMod2': null,
  180. 'BusMod4': [-555.763, -1180.689],//x.y.图片名称
  181. 'BusMod1': [-555.763, -1180.689],
  182. 'BusMod3': null,
  183. 'BusModSp': [2, null, null, 1],
  184. 'MapScale': 1.3,
  185. 'BusScale': 1.3,
  186. 'RoleScale': 1.3,
  187. 'Rail': null,
  188. 'BgImage': 'res/Bg/背景'
  189. }, {
  190. 'fllow': [-278.372, -509.388],
  191. 'gameLayer': [-278.372, -509.388],
  192. 'BusMod2': null,
  193. 'BusMod4': [-555.763, -1180.689],//x.y.图片名称
  194. 'BusMod1': [-555.763, -1180.689],
  195. 'BusMod3': null,
  196. 'BusModSp': [2, null, null, 1],
  197. 'MapScale': 1.3,
  198. 'BusScale': 1.3,
  199. 'RoleScale': 1.3,
  200. 'Rail': [[-60, 13.902, 1.3, 1.3], null],
  201. 'BgImage': 'res/Bg/背景'
  202. }, {
  203. 'fllow': [-278.372, -509.388],
  204. 'gameLayer': [-278.372, -509.388],
  205. 'BusMod2': null,
  206. 'BusMod4': [-555.763, -1180.689],//x.y.图片名称
  207. 'BusMod1': [-555.763, -1180.689],
  208. 'BusMod3': null,
  209. 'BusModSp': [2, null, null, 1],
  210. 'MapScale': 1.3,
  211. 'BusScale': 1.3,
  212. 'RoleScale': 1.3,
  213. 'Rail': [[-74, 13.902, 1.3, 1.3], null],
  214. 'BgImage': 'res/Bg/背景'
  215. }, {
  216. 'fllow': [-278.372, -509.388],
  217. 'gameLayer': [-278.372, -509.388],
  218. 'BusMod2': null,
  219. 'BusMod4': [-555.763, -1180.689],//x.y.图片名称
  220. 'BusMod1': [-555.763, -1180.689],
  221. 'BusMod3': null,
  222. 'BusModSp': [2, null, null, 1],
  223. 'MapScale': 1.3,
  224. 'BusScale': 1.3,
  225. 'RoleScale': 1.3,
  226. 'BgImage': 'res/Bg/海'
  227. }, {
  228. 'fllow': [-278.372, -509.388],
  229. 'gameLayer': [-278.372, -509.388],
  230. 'BusMod2': null,
  231. 'BusMod4': [-555.763, -1180.689],//x.y.图片名称
  232. 'BusMod1': [-555.763, -1180.689],
  233. 'BusMod3': null,
  234. 'BusModSp': [2, null, null, 1],
  235. 'MapScale': 1.3,
  236. 'BusScale': 1.3,
  237. 'RoleScale': 1.3,
  238. 'BgImage': 'res/Bg/背景'
  239. }],
  240. //#endregion
  241. //#region 4x8 类型 皮肤类型
  242. 3: [{
  243. 'fllow': [-278.372, -509.388],
  244. 'gameLayer': [-278.372, -509.388],
  245. 'BusMod2': null,
  246. 'BusMod4': [-555.763, -1129.354],//x.y.图片名称
  247. 'BusMod1': [-555.763, -1129.354],
  248. 'BusMod3': null,
  249. 'BusModSp': [2, null, null, 1],
  250. 'MapScale': 1.3,
  251. 'BusScale': 1.3,
  252. 'RoleScale': 1.3,
  253. 'Rail': null,
  254. 'BgImage': 'res/Bg/背景'
  255. }, {
  256. 'fllow': [-278.372, -509.388],
  257. 'gameLayer': [-278.372, -509.388],
  258. 'BusMod2': null,
  259. 'BusMod4': [-555.763, -1129.354],//x.y.图片名称
  260. 'BusMod1': [-555.763, -1129.354],
  261. 'BusMod3': null,
  262. 'BusModSp': [2, null, null, 1],
  263. 'MapScale': 1.3,
  264. 'BusScale': 1.3,
  265. 'RoleScale': 1.3,
  266. 'Rail': [[-60, 13.902, 1.3, 1.3], null],
  267. 'BgImage': 'res/Bg/背景'
  268. }, {
  269. 'fllow': [-278.372, -509.388],
  270. 'gameLayer': [-278.372, -509.388],
  271. 'BusMod2': null,
  272. 'BusMod4': [-555.763, -1129.354],//x.y.图片名称
  273. 'BusMod1': [-555.763, -1129.354],
  274. 'BusMod3': null,
  275. 'BusModSp': [2, null, null, 1],
  276. 'MapScale': 1.3,
  277. 'BusScale': 1.3,
  278. 'RoleScale': 1.3,
  279. 'Rail': null,
  280. 'BgImage': 'res/Bg/背景'
  281. }, {
  282. 'fllow': [-278.372, -509.388],
  283. 'gameLayer': [-278.372, -509.388],
  284. 'BusMod2': null,
  285. 'BusMod4': [-555.763, -1129.354],//x.y.图片名称
  286. 'BusMod1': [-555.763, -1129.354],
  287. 'BusMod3': null,
  288. 'BusModSp': [2, null, null, 1],
  289. 'MapScale': 1.3,
  290. 'BusScale': 1.3,
  291. 'RoleScale': 1.3,
  292. 'Rail': [[-60, 13.902, 1.3, 1.3], null],
  293. 'BgImage': 'res/Bg/背景'
  294. }, {
  295. 'fllow': [-278.372, -509.388],
  296. 'gameLayer': [-278.372, -509.388],
  297. 'BusMod2': null,
  298. 'BusMod4': [-555.763, -1129.354],//x.y.图片名称
  299. 'BusMod1': [-555.763, -1129.354],
  300. 'BusMod3': null,
  301. 'BusModSp': [2, null, null, 1],
  302. 'MapScale': 1.3,
  303. 'BusScale': 1.3,
  304. 'RoleScale': 1.3,
  305. 'Rail': [[-66, 13.902, 1.3, 1.3], null],
  306. 'BgImage': 'res/Bg/背景'
  307. }, {
  308. 'fllow': [-278.372, -509.388],
  309. 'gameLayer': [-278.372, -509.388],
  310. 'BusMod2': null,
  311. 'BusMod4': [-555.763, -1129.354],//x.y.图片名称
  312. 'BusMod1': [-555.763, -1129.354],
  313. 'BusMod3': null,
  314. 'BusModSp': [2, null, null, 1],
  315. 'MapScale': 1.3,
  316. 'BusScale': 1.3,
  317. 'RoleScale': 1.3,
  318. 'BgImage': 'res/Bg/海'
  319. }, {
  320. 'fllow': [-278.372, -509.388],
  321. 'gameLayer': [-278.372, -509.388],
  322. 'BusMod2': null,
  323. 'BusMod4': [-555.763, -1129.354],//x.y.图片名称
  324. 'BusMod1': [-555.763, -1129.354],
  325. 'BusMod3': null,
  326. 'BusModSp': [2, null, null, 1],
  327. 'MapScale': 1.3,
  328. 'BusScale': 1.3,
  329. 'RoleScale': 1.3,
  330. 'BgImage': 'res/Bg/背景'
  331. }],
  332. //#endregion
  333. //#region 5x8 类型 皮肤类型
  334. 4: [{
  335. 'fllow': [-278.372, -509.388],
  336. 'gameLayer': [-278.372, -509.388],
  337. 'BusMod2': null,
  338. 'BusMod4': [-496.749, -1027.72],//x.y.图片名称
  339. 'BusMod1': [-496.749, -1027.72],
  340. 'BusMod3': null,
  341. 'BusModSp': [2, null, null, 1],
  342. 'MapScale': 1.2,
  343. 'BusScale': 1.2,
  344. 'RoleScale': 1.2,
  345. 'Rail': null,
  346. 'BgImage': 'res/Bg/背景'
  347. }, {
  348. 'fllow': [-278.372, -509.388],
  349. 'gameLayer': [-278.372, -509.388],
  350. 'BusMod2': null,
  351. 'BusMod4': [-496.749, -1027.72],//x.y.图片名称
  352. 'BusMod1': [-496.749, -1027.72],
  353. 'BusMod3': null,
  354. 'BusModSp': [2, null, null, 1],
  355. 'MapScale': 1.2,
  356. 'BusScale': 1.2,
  357. 'RoleScale': 1.2,
  358. 'Rail': [[-35, 13.902, 1.3, 1.3], null],///////////////
  359. 'BgImage': 'res/Bg/背景'
  360. }, {
  361. 'fllow': [-278.372, -509.388],
  362. 'gameLayer': [-278.372, -509.388],
  363. 'BusMod2': null,
  364. 'BusMod4': [-496.749, -1027.72],//x.y.图片名称
  365. 'BusMod1': [-496.749, -1027.72],
  366. 'BusMod3': null,
  367. 'BusModSp': [2, null, null, 1],
  368. 'MapScale': 1.2,
  369. 'BusScale': 1.2,
  370. 'RoleScale': 1.2,
  371. 'Rail': null,
  372. 'BgImage': 'res/Bg/背景'
  373. }, {
  374. 'fllow': [-278.372, -509.388],
  375. 'gameLayer': [-278.372, -509.388],
  376. 'BusMod2': null,
  377. 'BusMod4': [-496.749, -1027.72],//x.y.图片名称
  378. 'BusMod1': [-496.749, -1027.72],
  379. 'BusMod3': null,
  380. 'BusModSp': [2, null, null, 1],
  381. 'MapScale': 1.2,
  382. 'BusScale': 1.2,
  383. 'RoleScale': 1.2,
  384. 'Rail': [[-37, 13.902, 1.3, 1.3], null],
  385. 'BgImage': 'res/Bg/背景'
  386. }, {
  387. 'fllow': [-278.372, -509.388],
  388. 'gameLayer': [-278.372, -509.388],
  389. 'BusMod2': null,
  390. 'BusMod4': [-496.749, -1027.72],//x.y.图片名称
  391. 'BusMod1': [-496.749, -1027.72],
  392. 'BusMod3': null,
  393. 'BusModSp': [2, null, null, 1],
  394. 'MapScale': 1.2,
  395. 'BusScale': 1.2,
  396. 'RoleScale': 1.2,
  397. 'Rail': [[-38, 13.902, 1.2, 1.2], null],
  398. 'BgImage': 'res/Bg/背景'
  399. }, {
  400. 'fllow': [-278.372, -509.388],
  401. 'gameLayer': [-278.372, -509.388],
  402. 'BusMod2': null,
  403. 'BusMod4': [-496.749, -1027.72],//x.y.图片名称
  404. 'BusMod1': [-496.749, -1027.72],
  405. 'BusMod3': null,
  406. 'BusModSp': [2, null, null, 1],
  407. 'MapScale': 1.2,
  408. 'BusScale': 1.2,
  409. 'RoleScale': 1.2,
  410. 'BgImage': 'res/Bg/海'
  411. }, {
  412. 'fllow': [-278.372, -509.388],
  413. 'gameLayer': [-278.372, -509.388],
  414. 'BusMod2': null,
  415. 'BusMod4': [-496.749, -1027.72],//x.y.图片名称
  416. 'BusMod1': [-496.749, -1027.72],
  417. 'BusMod3': null,
  418. 'BusModSp': [2, null, null, 1],
  419. 'MapScale': 1.2,
  420. 'BusScale': 1.2,
  421. 'RoleScale': 1.2,
  422. 'BgImage': 'res/Bg/背景'
  423. }],
  424. //#endregion
  425. //#region 5x11 类型 皮肤类型
  426. 5: [{
  427. 'fllow': [-283.82, -581.042],
  428. 'gameLayer': [-283.82, -581.042],
  429. 'BusMod2': null,
  430. 'BusMod4': [-493.869, -874.512],//x.y.图片名称
  431. 'BusMod1': [-493.869, -874.512],
  432. 'BusMod3': null,
  433. 'BusModSp': [2, null, null, 1],
  434. 'MapScale': 1.2,
  435. 'BusScale': 1.2,
  436. 'RoleScale': 1.2,
  437. 'Rail': null,
  438. 'BgImage': 'res/Bg/背景'
  439. }, {
  440. 'fllow': [-283.82, -581.042],
  441. 'gameLayer': [-283.82, -581.042],
  442. 'BusMod2': null,
  443. 'BusMod4': [-493.869, -874.512],//x.y.图片名称
  444. 'BusMod1': [-493.869, -874.512],
  445. 'BusMod3': null,
  446. 'BusModSp': [2, null, null, 1],
  447. 'MapScale': 1.2,
  448. 'BusScale': 1.2,
  449. 'RoleScale': 1.2,
  450. 'Rail': [[-40, 13.902, 1.3, 1.3], null],///////////////
  451. 'BgImage': 'res/Bg/背景'
  452. }, {
  453. 'fllow': [-283.82, -581.042],
  454. 'gameLayer': [-283.82, -581.042],
  455. 'BusMod2': null,
  456. 'BusMod4': [-493.869, -874.512],//x.y.图片名称
  457. 'BusMod1': [-493.869, -874.512],
  458. 'BusMod3': null,
  459. 'BusModSp': [2, null, null, 1],
  460. 'MapScale': 1.2,
  461. 'BusScale': 1.2,
  462. 'RoleScale': 1.2,
  463. 'Rail': null,
  464. 'BgImage': 'res/Bg/背景'
  465. }, {
  466. 'fllow': [-283.82, -581.042],
  467. 'gameLayer': [-283.82, -581.042],
  468. 'BusMod2': null,
  469. 'BusMod4': [-493.869, -874.512],//x.y.图片名称
  470. 'BusMod1': [-493.869, -874.512],
  471. 'BusMod3': null,
  472. 'BusModSp': [2, null, null, 1],
  473. 'MapScale': 1.2,
  474. 'BusScale': 1.2,
  475. 'RoleScale': 1.2,
  476. 'Rail': [[-43, 13.902, 1.3, 1.3], null],
  477. 'BgImage': 'res/Bg/背景'
  478. }, {
  479. 'fllow': [-252.836, -452.315],
  480. 'gameLayer': [-252.836, -452.315],
  481. 'BusMod2': null,
  482. 'BusMod4': [-600.872, -1216.356],//x.y.图片名称5
  483. 'BusMod1': [-600.639, -1212.792],
  484. 'BusMod3': null,
  485. 'BusModSp': [2, null, null, 1],
  486. 'MapScale': 1.1,
  487. 'BusScale': 1.5,
  488. 'RoleScale': 1.1,
  489. 'Rail': [[-32, 13.902, 1.3, 1.3], null],
  490. 'BgImage': 'res/Bg/背景'
  491. }, {
  492. 'fllow': [-289.305, -577.853],
  493. 'gameLayer': [-289.305, -577.853],
  494. 'BusMod2': null,
  495. 'BusMod4': [-658.1, -1389.637],//x.y.图片名称
  496. 'BusMod1': [-658.1, -1389.637],
  497. 'BusMod3': null,
  498. 'BusModSp': [2, null, null, 1],
  499. 'MapScale': 1.17,
  500. 'BusScale': 1.6,
  501. 'RoleScale': 1.17,
  502. 'BgImage': 'res/Bg/海'
  503. }, {
  504. 'fllow': [-257.486, -533.114],
  505. 'gameLayer': [-257.486, -533.114],
  506. 'BusMod2': null,
  507. 'BusMod4': [-628.923, -1345.273],//x.y.图片名称
  508. 'BusMod1': [-628.923, -1345.832],
  509. 'BusMod3': null,
  510. 'BusModSp': [2, null, null, 1],
  511. 'MapScale': 1.17,
  512. 'BusScale': 1.6,
  513. 'RoleScale': 1.17,
  514. 'BgImage': 'res/Bg/背景'
  515. }],
  516. //#endregion
  517. //#region 6x10 类型 皮肤类型
  518. 6: [{
  519. 'fllow': [-278.372, -509.288],
  520. 'gameLayer': [-278.372, -509.288],
  521. 'BusMod2': null,
  522. 'BusMod4': [-411.465, -782.903],//x.y.图片名称
  523. 'BusMod1': [-411.465, -782.903],
  524. 'BusMod3': null,
  525. 'BusModSp': [2, null, null, 1],
  526. 'MapScale': 1,
  527. 'BusScale': 1,
  528. 'RoleScale': 1,
  529. 'Rail': null,
  530. 'BgImage': 'res/Bg/背景'
  531. }, {
  532. 'fllow': [-278.372, -509.288],
  533. 'gameLayer': [-278.372, -509.288],
  534. 'BusMod2': null,
  535. 'BusMod4': [-411.465, -782.903],//x.y.图片名称
  536. 'BusMod1': [-411.465, -782.903],
  537. 'BusMod3': null,
  538. 'BusModSp': [2, null, null, 1],
  539. 'MapScale': 1,
  540. 'BusScale': 1,
  541. 'RoleScale': 1,
  542. 'Rail': [[-37, 13.902, 1.3, 1.3], null],
  543. 'BgImage': 'res/Bg/背景'
  544. }, {
  545. 'fllow': [-278.372, -509.288],
  546. 'gameLayer': [-278.372, -509.288],
  547. 'BusMod2': null,
  548. 'BusMod4': [-411.465, -782.903],//x.y.图片名称
  549. 'BusMod1': [-411.465, -782.903],
  550. 'BusMod3': null,
  551. 'BusModSp': [2, null, null, 1],
  552. 'MapScale': 1,
  553. 'BusScale': 1,
  554. 'RoleScale': 1,
  555. 'Rail': null,
  556. 'BgImage': 'res/Bg/背景'
  557. }, {
  558. 'fllow': [-278.372, -509.288],
  559. 'gameLayer': [-278.372, -509.288],
  560. 'BusMod2': null,
  561. 'BusMod4': [-411.465, -782.903],//x.y.图片名称
  562. 'BusMod1': [-411.465, -782.903],
  563. 'BusMod3': null,
  564. 'BusModSp': [2, null, null, 1],
  565. 'MapScale': 1,
  566. 'BusScale': 1,
  567. 'RoleScale': 1,
  568. 'Rail': [[-34, 13.902, 1.3, 1.3], null],
  569. 'BgImage': 'res/Bg/背景'
  570. }, {
  571. 'fllow': [-282.054, -416.883],
  572. 'gameLayer': [-282.054, -416.883],
  573. 'BusMod2': null,
  574. 'BusMod4': [-600.872, -1216.356],//x.y.图片名称
  575. 'BusMod1': [-600.639, -1212.792],
  576. 'BusMod3': null,
  577. 'BusModSp': [2, null, null, 1],
  578. 'MapScale': 1,
  579. 'BusScale': 1.5,
  580. 'RoleScale': 1,
  581. 'Rail': [[-39, 13.902, 1.3, 1.3], null],
  582. 'BgImage': 'res/Bg/背景'
  583. }, {
  584. 'fllow': [-210.06, -420.809],
  585. 'gameLayer': [-210.06, -420.809],
  586. 'BusMod2': null,
  587. 'BusMod4': [-411.959, -861.165],//x.y.图片名称6
  588. 'BusMod1': [-411.959, -861.165],
  589. 'BusMod3': null,
  590. 'BusModSp': [2, null, null, 1],
  591. 'MapScale': 0.86,
  592. 'BusScale': 1.1,
  593. 'RoleScale': 0.86,
  594. 'BgImage': 'res/Bg/海'
  595. }, {
  596. 'fllow': [-261.439, -429.379],
  597. 'gameLayer': [-261.439, -429.379],
  598. 'BusMod2': null,
  599. 'BusMod4': [-599.185, -1283.031],//x.y.图片名称7
  600. 'BusMod1': [-599.185, -1283.59],
  601. 'BusMod3': null,
  602. 'BusModSp': [2, null, null, 1],
  603. 'MapScale': 1.07,
  604. 'BusScale': 1.6,
  605. 'RoleScale': 1.07,
  606. 'BgImage': 'res/Bg/背景'
  607. }],
  608. //#endregion
  609. //#region 6x12 类型 皮肤类型
  610. 7: [{
  611. 'fllow': [-278.372, -559.388],
  612. 'gameLayer': [-278.372, -559.388],
  613. 'BusMod2': [-318.467, -635.103],
  614. 'BusMod4': [-318.467, -635.103],
  615. 'BusMod1': [-318.467, -635.103],
  616. 'BusMod3': [-318.467, -635.103],
  617. 'BusModSp': [1, 2, 3, 4],
  618. 'MapScale': 1,
  619. 'BusScale': 1,
  620. 'RoleScale': 1,
  621. 'Rail': null,
  622. 'BgImage': 'res/Bg/背景'
  623. }, {
  624. 'fllow': [-338, -581],
  625. 'gameLayer': [-338, -581],
  626. 'BusMod2': [-575.083, -1195.585],
  627. 'BusMod4': [-575.6, -1178.467],
  628. 'BusMod1': [-575.192, -1193.314],
  629. 'BusMod3': [-575.044, -1177.408],
  630. 'BusModSp': [1, 2, 3, 4],
  631. 'MapScale': 1.2,
  632. 'BusScale': 1.4,
  633. 'RoleScale': 1.2,
  634. 'Rail': [[-46.441, 13.902, 1.3, 1.3], null],
  635. 'BgImage': 'res/Bg/背景'
  636. }, {
  637. 'fllow': [-306.97, -616.259],
  638. 'gameLayer': [-306.97, -616.259],
  639. 'BusMod2': [-452.339, -993.942],
  640. 'BusMod4': [-452.856, -994.791],
  641. 'BusMod1': [-452.448, -991.671],
  642. 'BusMod3': [-452.3, -990.978],
  643. 'BusModSp': [1, 2, 3, 4],
  644. 'MapScale': 1.1,
  645. 'BusScale': 1.1,
  646. 'RoleScale': 1.1,
  647. 'Rail': null,
  648. 'BgImage': 'res/Bg/背景'
  649. }, {
  650. 'fllow': [-306.97, -616.259],
  651. 'gameLayer': [-306.97, -616.259],
  652. 'BusMod2': [-644.737, -1364.247],
  653. 'BusMod4': [-643.678, -1343.396],
  654. 'BusMod1': [-645.23, -1359.001],
  655. 'BusMod3': [-644.122, -1343.541],
  656. 'BusModSp': [1, 2, 3, 4],
  657. 'MapScale': 1.1,
  658. 'BusScale': 1.6,
  659. 'RoleScale': 1.1,
  660. 'Rail': [[-37, 13.902, 1.3, 1.3], null],
  661. 'BgImage': 'res/Bg/背景'
  662. }, {
  663. 'fllow': [-306.97, -616.259],
  664. 'gameLayer': [-306.97, -616.259],
  665. 'BusMod2': [-452.031, -994.64],
  666. 'BusMod4': [-452.149, -996.357],
  667. 'BusMod1': [-453.701, -993.615],
  668. 'BusMod3': [-452.593, -995.597],
  669. 'BusModSp': [1, 2, 3, 4],
  670. 'MapScale': 1.1,
  671. 'BusScale': 1.1,
  672. 'RoleScale': 1.1,
  673. 'Rail': [[-41, 13.902, 1.3, 1.3], null],
  674. 'BgImage': 'res/Bg/背景'
  675. }, {
  676. 'fllow': [-307.327, -580.149],
  677. 'gameLayer': [-307.327, -580.149],
  678. 'BusMod2': [-571.481, -1026.968],
  679. 'BusMod4': [-571.481, -1026.478],
  680. 'BusMod1': [-571.481, -1026.968],
  681. 'BusMod3': [-571.481, -1026.478],
  682. 'BusModSp': [2, null, null, 1],
  683. 'MapScale': 1,
  684. 'BusScale': 1.35,
  685. 'RoleScale': 1,
  686. 'BgImage': 'res/Bg/海'
  687. }, {
  688. 'fllow': [-286.547, -409.942],
  689. 'gameLayer': [-286.547, -409.942],
  690. 'BusMod2': [-706.422, -1201.846],
  691. 'BusMod4': [-706.422, -1201.846],
  692. 'BusMod1': [-706.422, -1202.405],
  693. 'BusMod3': [-706.422, -1202.405],
  694. 'BusModSp': [2, null, null, 1],
  695. 'MapScale': 1,
  696. 'BusScale': 1.76,
  697. 'RoleScale': 1,
  698. 'BgImage': 'res/Bg/背景'
  699. }],
  700. //#endregion
  701. }
  702. export type MapRoleQueuePosType = {
  703. 'type': number,
  704. 'pos': number[],
  705. 'pos1': number[],
  706. 'an': number[][],
  707. }
  708. //地图上乘客排队的精确位置 ,
  709. export var MapRoleQueuePos = {
  710. 1: [{
  711. type: 1,
  712. pos: [619, 783],//7*11
  713. }, {
  714. type: 1,
  715. pos: [637, 805],//7*11
  716. }, {
  717. type: 1,
  718. pos: [637, 805],//7*11
  719. }, {
  720. type: 1,
  721. pos: [637, 805],//7*11
  722. }, {
  723. type: 1,
  724. pos: [637, 805],//7*11
  725. }, {
  726. type: 1,
  727. pos: [723, 805],//7*11
  728. an: [[333.634, -518, 1], null]
  729. }, {
  730. type: 1,
  731. pos: [637, 805],//7*11
  732. }],
  733. 2: [{
  734. type: 1,
  735. pos: [380, 482],//4*7
  736. }, {
  737. type: 1,
  738. pos: [380, 482],//4*7
  739. }, {
  740. type: 1,
  741. pos: [380, 482],//4*7
  742. }, {
  743. type: 1,
  744. pos: [380, 482],//4*7
  745. }, {
  746. type: 1,
  747. pos: [380, 482],//4*7
  748. }, {
  749. type: 1,
  750. pos: [433, 482],//4*7
  751. an: [[263.634, -518, 1], null]
  752. }, {
  753. type: 1,
  754. pos: [380, 482],//4*7
  755. }],
  756. 3: [{
  757. type: 1,
  758. pos: [378, 566],//4*8
  759. }, {
  760. type: 1,
  761. pos: [378, 566],//4*8
  762. }, {
  763. type: 1,
  764. pos: [390, 566],//4*8
  765. }, {
  766. type: 1,
  767. pos: [378, 566],//4*8
  768. }, {
  769. type: 1,
  770. pos: [378, 566],//4*8
  771. }, {
  772. type: 1,
  773. pos: [421, 566],//4*8
  774. an: [[263.634, -518, 1], null]
  775. }, {
  776. type: 1,
  777. pos: [378, 566],//4*8
  778. }],
  779. 4: [{
  780. type: 1,
  781. pos: [480, 565],//5*8
  782. }, {
  783. type: 1,
  784. pos: [480, 565],//5*8
  785. }, {
  786. type: 1,
  787. pos: [480, 565],//5*8
  788. }, {
  789. type: 1,
  790. pos: [480, 565],//5*8
  791. }, {
  792. type: 1,
  793. pos: [480, 565],//5*8
  794. }, {
  795. type: 1,
  796. pos: [502, 565],//5*8
  797. an: [[330.634, -518, 1], null]
  798. }, {
  799. type: 1,
  800. pos: [480, 565],//5*8
  801. }],
  802. 5: [{
  803. type: 1,
  804. pos: [475, 805],//5*11
  805. }, {
  806. type: 1,
  807. pos: [475, 805],//5*11
  808. }, {
  809. type: 1,
  810. pos: [475, 805],//5*11
  811. }, {
  812. type: 1,
  813. pos: [475, 805],//5*11
  814. }, {
  815. type: 1,
  816. pos: [475, 805],//5*11
  817. }, {
  818. type: 1,
  819. pos: [521, 805],//5*11
  820. an: [[316.634, -279, 1], null]
  821. }, {
  822. type: 1,
  823. pos: [475, 805],//5*11
  824. }],
  825. 6: [{
  826. type: 2,
  827. pos: [561, 725],//5*11
  828. pos1: [-57, 193],//5*11
  829. }, {
  830. type: 2,
  831. pos: [561, 725],//5*11
  832. pos1: [-57, 193],//5*11
  833. }, {
  834. type: 2,
  835. pos: [561, 725],//5*11
  836. pos1: [-57, 193],//5*11
  837. }, {
  838. type: 2,
  839. pos: [561, 725],//5*11
  840. pos1: [-57, 193],//5*11
  841. }, {
  842. type: 2,
  843. pos: [561, 725],//5*11
  844. pos1: [-57, 193],//5*11
  845. }, {
  846. type: 2,
  847. pos: [621, 725],//5*11
  848. pos1: [-142, 193],//5*11
  849. an: [[316.634, -279, 1], [-333.763, 400, 1]]
  850. }, {
  851. type: 2,
  852. pos: [561, 725],//5*11
  853. pos1: [-57, 193],//5*11
  854. }],
  855. 7: [{
  856. type: 1,
  857. pos: [570, 891],//5*11
  858. }, {
  859. type: 1,
  860. pos: [535, 891],//5*11
  861. }, {
  862. type: 1,
  863. pos: [570, 891],//5*11
  864. }, {
  865. type: 1,
  866. pos: [570, 891],//5*11
  867. }, {
  868. type: 1,
  869. pos: [570, 891],//5*11
  870. }, {
  871. type: 1,
  872. pos: [637, 891],//5*11
  873. an: [[316.634, -367, 1], null]/////////////todo
  874. }, {
  875. type: 1,
  876. pos: [570, 891],//5*11
  877. }],
  878. }
  879. export var MenPos = {
  880. 1: [[6, 10]],//7*11
  881. 2: [[3, 6]],//4*7
  882. 3: [[3, 7]],//4*8
  883. 4: [[4, 7]],//5*8
  884. 5: [[4, 10]],//5*11
  885. 6: [[5, 9], [0, 2]],// 右门 左门
  886. 7: [[5, 11]],//6*12
  887. }
  888. export type CloseDoorPosType = {
  889. [key: number]: {
  890. [key: number]: {
  891. pos: number[][];
  892. scale: number[][];
  893. };
  894. };
  895. };
  896. export var CloseDoorPos: CloseDoorPosType = {
  897. 1: {//关卡类型
  898. 1: {
  899. 'pos': [[327, 408]],
  900. 'scale': [[2, 1]],
  901. },//皮肤 -》 具体位置 x y scalex scaley
  902. 2: {
  903. 'pos': [[324, 416]],
  904. 'scale': [[2, 1]],
  905. },//皮肤 -》 具体位置 x y scalex scaley
  906. 3: {
  907. 'pos': [[342, 423]],
  908. 'scale': [[2.5, 1.3]],
  909. },//皮肤 -》 具体位置 x y scalex scaley
  910. 4: {
  911. 'pos': [[309, 410]],
  912. 'scale': [[1, 1]],
  913. },//皮肤 -》 具体位置 x y scalex scaley
  914. 5: {
  915. 'pos': [[310, 420]],
  916. 'scale': [[1, 1]],
  917. },//皮肤 -》 具体位置 x y scalex scaley
  918. 6: {
  919. 'pos': [[226, 304]],
  920. 'scale': [[1, 1]],
  921. },//皮肤 -》 具体位置 x y scalex scaley
  922. 7: {
  923. 'pos': [[241, 470]],
  924. 'scale': [[1, 1]],
  925. },//皮肤 -》 具体位置 x y scalex scaley
  926. },//7*11
  927. 2: {
  928. 1: {
  929. 'pos': [[188, 219]],
  930. 'scale': [[2, 1]],
  931. },//皮肤 -》 具体位置 x y scalex scaley
  932. 2: {
  933. 'pos': [[188, 219]],
  934. 'scale': [[2, 1]],
  935. },//皮肤 -》 具体位置 x y scalex scaley
  936. 3: {
  937. 'pos': [[188, 219]],
  938. 'scale': [[2, 1]],
  939. },//皮肤 -》 具体位置 x y scalex scaley
  940. 4: {
  941. 'pos': [[179, 226]],
  942. 'scale': [[1, 1]],
  943. },//皮肤 -》 具体位置 x y scalex scaley
  944. 5: {
  945. 'pos': [[174, 237]],
  946. 'scale': [[1, 1]],
  947. },//皮肤 -》 具体位置 x y scalex scaley
  948. 6: {
  949. 'pos': [[173, 219]],
  950. 'scale': [[1, 1]],
  951. },//皮肤 -》 具体位置 x y scalex scaley
  952. 7: {
  953. 'pos': [[171, 230]],
  954. 'scale': [[1, 1]],
  955. },//皮肤 -》 具体位置 x y scalex scaley
  956. },//4*7
  957. 3: {
  958. 1: {
  959. 'pos': [[191, 337]],
  960. 'scale': [[2, 1.3]],
  961. },//皮肤 -》 具体位置 x y scalex scaley
  962. 2: {
  963. 'pos': [[197, 341]],
  964. 'scale': [[2.5, 1.3]],
  965. },//皮肤 -》 具体位置 x y scalex scaley
  966. 3: {
  967. 'pos': [[191, 337]],
  968. 'scale': [[2, 1.3]],
  969. },//皮肤 -》 具体位置 x y scalex scaley
  970. 4: {
  971. 'pos': [[175, 316]],
  972. 'scale': [[1, 1]],
  973. },//皮肤 -》 具体位置 x y scalex scaley
  974. 5: {
  975. 'pos': [[174, 336]],
  976. 'scale': [[1, 1]],
  977. },//皮肤 -》 具体位置 x y scalex scaley
  978. 6: {
  979. 'pos': [[173, 337]],
  980. 'scale': [[1, 1]],
  981. },//皮肤 -》 具体位置 x y scalex scaley
  982. 7: {
  983. 'pos': [[172, 337]],
  984. 'scale': [[1, 1]],
  985. },//皮肤 -》 具体位置 x y scalex scaley
  986. },//4*8
  987. 4: {
  988. 1: {
  989. 'pos': [[261, 263]],
  990. 'scale': [[2.2, 1.3]],
  991. },//皮肤 -》 具体位置 x y scalex scaley
  992. 2: {
  993. 'pos': [[261, 263]],
  994. 'scale': [[2.2, 1.3]],
  995. },//皮肤 -》 具体位置 x y scalex scaley
  996. 3: {
  997. 'pos': [[261, 263]],
  998. 'scale': [[2.2, 1.3]],
  999. },//皮肤 -》 具体位置 x y scalex scaley
  1000. 4: {
  1001. 'pos': [[232, 264]],
  1002. 'scale': [[1, 1]],
  1003. },//皮肤 -》 具体位置 x y scalex scaley
  1004. 5: {
  1005. 'pos': [[235, 273]],
  1006. 'scale': [[1, 1]],
  1007. },//皮肤 -》 具体位置 x y scalex scaley
  1008. 6: {
  1009. 'pos': [[231, 263]],
  1010. 'scale': [[1, 1]],
  1011. },//皮肤 -》 具体位置 x y scalex scaley
  1012. 7: {
  1013. 'pos': [[242, 263]],
  1014. 'scale': [[1, 1]],
  1015. },//皮肤 -》 具体位置 x y scalex scaley
  1016. },//5*8
  1017. 5: {
  1018. 1: {
  1019. 'pos': [[260, 484]],
  1020. 'scale': [[2.4, 1.3]],
  1021. },//皮肤 -》 具体位置 x y scalex scaley
  1022. 2: {
  1023. 'pos': [[258, 484]],
  1024. 'scale': [[2.4, 1.3]],
  1025. },//皮肤 -》 具体位置 x y scalex scaley
  1026. 3: {
  1027. 'pos': [[260, 484]],
  1028. 'scale': [[2.4, 1.3]],
  1029. },//皮肤 -》 具体位置 x y scalex scaley
  1030. 4: {
  1031. 'pos': [[229, 474]],
  1032. 'scale': [[1, 1]],
  1033. },//皮肤 -》 具体位置 x y scalex scaley
  1034. 5: {
  1035. 'pos': [[215, 520]],
  1036. 'scale': [[1, 1]],
  1037. },//皮肤 -》 具体位置 x y scalex scaley
  1038. 6: {
  1039. 'pos': [[208, 484]],
  1040. 'scale': [[1, 1]],
  1041. },//皮肤 -》 具体位置 x y scalex scaley
  1042. 7: {
  1043. 'pos': [[248, 484]],
  1044. 'scale': [[1, 1]],
  1045. },//皮肤 -》 具体位置 x y scalex scaley
  1046. },//5*11
  1047. 6: {
  1048. 1: {
  1049. 'pos': [[256, 302], [-332, -381]],
  1050. 'scale': [[2, 1], [-2, 1]],
  1051. },//皮肤 -》 具体位置 x y scalex scaley
  1052. 2: {
  1053. 'pos': [[256, 302], [-332, -381]],
  1054. 'scale': [[2, 1], [-2, 1]],
  1055. },//皮肤 -》 具体位置 x y scalex scaley
  1056. 3: {
  1057. 'pos': [[256, 302], [-332, -381]],
  1058. 'scale': [[2, 1], [-2, 1]],
  1059. },//皮肤 -》 具体位置 x y scalex scaley
  1060. 4: {
  1061. 'pos': [[244, 302], [-313, -381]],
  1062. 'scale': [[1, 1], [-1, 1]],
  1063. },//皮肤 -》 具体位置 x y scalex scaley
  1064. 5: {
  1065. 'pos': [[238, 397], [-320, -299]],
  1066. 'scale': [[1, 1], [-1, 1]],
  1067. },//皮肤 -》 具体位置 x y scalex scaley
  1068. 6: {
  1069. 'pos': [[231, 288], [-256, -323]],
  1070. 'scale': [[1, 1], [-1, 1]],
  1071. },//皮肤 -》 具体位置 x y scalex scaley
  1072. 7: {
  1073. 'pos': [[281, 427], [-293, -291]],
  1074. 'scale': [[1, 1], [-1, 1]],
  1075. },//皮肤 -》 具体位置 x y scalex scaley
  1076. }, //双门
  1077. 7: {
  1078. 1: {
  1079. 'pos': [[265, 402]],
  1080. 'scale': [[2, 1]],
  1081. },//皮肤 -》 具体位置 x y scalex scaley
  1082. 2: {
  1083. 'pos': [[289, 580]],
  1084. 'scale': [[2.5, 1.5]],
  1085. },//皮肤 -》 具体位置 x y scalex scaley
  1086. 3: {
  1087. 'pos': [[289, 470]],
  1088. 'scale': [[2.5, 1.5]],
  1089. },//皮肤 -》 具体位置 x y scalex scaley
  1090. 4: {
  1091. 'pos': [[247, 441]],
  1092. 'scale': [[1, 1]],
  1093. },//皮肤 -》 具体位置 x y scalex scaley
  1094. 5: {
  1095. 'pos': [[262, 449]],
  1096. 'scale': [[1, 1]],
  1097. },//皮肤 -》 具体位置 x y scalex scaley
  1098. 6: {
  1099. 'pos': [[203, 402]],
  1100. 'scale': [[1, 1]],
  1101. },//皮肤 -》 具体位置 x y scalex scaley
  1102. 7: {
  1103. 'pos': [[227, 552]],
  1104. 'scale': [[1, 1]],
  1105. },//皮肤 -》 具体位置 x y scalex scaley
  1106. },//6*12
  1107. }
  1108. // [[5, 9], [1, 1]]
  1109. export const ChangetableDataMen = (temp: number[][]) => {
  1110. if (BusType == 6) {
  1111. MenX = temp[0][0]
  1112. MenY = temp[0][1]
  1113. MenXLeft = temp[1][0]
  1114. MenYLeft = temp[1][1]
  1115. } else {
  1116. MenX = temp[0][0]
  1117. MenY = temp[0][1]
  1118. }
  1119. }
  1120. export const ChangetableDataBusSize = (temp: number[]) => {
  1121. tableDataX = temp[0]
  1122. tableDataY = temp[1]
  1123. }
  1124. export const ChangetableDataBusType = (temp: number) => {
  1125. BusType = temp
  1126. }
  1127. export const ChangetableData = (temp: number[][]) => {
  1128. if (!temp) {
  1129. return
  1130. }
  1131. //深拷贝一下
  1132. let a = []
  1133. for (let index = 0; index < temp.length; index++) {
  1134. a.push([...temp[index]])
  1135. }
  1136. tableData = a
  1137. }
  1138. export const ChangeGraySitDownColor = (temp: SofaColor) => {
  1139. GraySitDownColor = temp
  1140. }
  1141. export const ChangeRoloQueues = (temp: SofaColor[] | SofaColor[][]) => {
  1142. RoloQueues = temp
  1143. }
  1144. export const GetRoloQueues = () => {
  1145. if (BusType == 6) {
  1146. return RoloQueues
  1147. }
  1148. return RoloQueues
  1149. }
  1150. export const ChangeCountDown = (temp: number) => {
  1151. GlobalCountDownTime = temp
  1152. }
  1153. //设置人物加载 是否完毕的标识
  1154. export const ChangeRoloInitOver = (temp: boolean) => {
  1155. RoloInitOver = temp
  1156. }
  1157. //设置地图加载 是否完毕的标识
  1158. export const ChangeMapInitOver = (temp: boolean) => {
  1159. MapInitOver = temp
  1160. }
  1161. //#region 引导关卡数据
  1162. export const MapData_ByYinDao = [
  1163. [//4*7 map 2
  1164. [0, 1, 1, 7],
  1165. [0, 0, 3, 3],
  1166. [0, 0, 0, 0],
  1167. [1, 0, 0, 0],
  1168. [1, 3, 0, 0],
  1169. [1, 0, 0, 0],
  1170. [0, 0, 0, 7],
  1171. ]
  1172. ]
  1173. export var MapDataRoloQueues_ByYinDao = [
  1174. [//4*7 map2
  1175. SofaColor.蓝,
  1176. SofaColor.蓝,
  1177. SofaColor.蓝,
  1178. SofaColor.蓝,
  1179. SofaColor.蓝,
  1180. SofaColor.红,
  1181. SofaColor.蓝,
  1182. SofaColor.蓝,
  1183. SofaColor.蓝,
  1184. SofaColor.红,
  1185. ],
  1186. ]
  1187. export var MapDataGraySitDownColor_ByYinDao = [
  1188. SofaColor.蓝,//第一关灰色可以坐下的乘客的颜色
  1189. ]
  1190. export var MapDataCountDown_ByYinDao = [
  1191. 1200
  1192. ]
  1193. //当前车子类型
  1194. export var MapDataBusTypes_ByYinDao = [
  1195. 2,
  1196. ]
  1197. //#endregion
  1198. //#region 快速通关关卡
  1199. export var MapData = [
  1200. [//7*11 map 1
  1201. [0, 0, 0, 99, 0, 1, 0],
  1202. [0, 0, 0, 99, 0, 1, 0],
  1203. [17, 0, 0, 0, 0, 1, 0],
  1204. [1, 0, 0, 99, 0, 1, 0],
  1205. [1, 0, 0, 99, 0, 1, 0],
  1206. [1, 0, 0, 99, 0, 1, 0],
  1207. [0, 0, 0, 99, 0, 1, 0],
  1208. [0, 15, 0, 99, 0, 1, 0],
  1209. [0, 0, 0, 99, 0, 1, 0],
  1210. [0, 1, 0, 0, 0, 1, 0],
  1211. [0, 0, 0, 99, 0, 1, 1],
  1212. ],
  1213. [//4*7 map 2
  1214. [0, 0, 0, 0],
  1215. [17, 0, 0, 0],
  1216. [0, 1, 15, 0],
  1217. [0, 1, 0, 0],
  1218. [0, 1, 0, 0],
  1219. [17, 0, 15, 0],
  1220. [0, 0, 0, 0],
  1221. ],
  1222. [//4*8 map 3
  1223. [0, 0, 0, 1],
  1224. [0, 0, 0, 0],
  1225. [0, 1, 0, 0],
  1226. [0, 1, 0, 0],
  1227. [0, 1, 0, 0],
  1228. [0, 1, 0, 0],
  1229. [0, 0, 0, 0],
  1230. [0, 0, 0, 1],
  1231. ],
  1232. [//5*8 map 4
  1233. [0, 0, 0, 0, 1],
  1234. [0, 0, 0, 0, 0],
  1235. [0, 0, 1, 0, 0],
  1236. [0, 0, 1, 0, 0],
  1237. [0, 0, 1, 0, 0],
  1238. [0, 0, 0, 0, 0],
  1239. [0, 0, 0, 0, 0],
  1240. [0, 0, 0, 0, 1],
  1241. ], [//5*11 map 5
  1242. [0, 0, 0, 0, 0],
  1243. [0, 0, 0, 0, 0],
  1244. [0, 0, 1, 0, 0],
  1245. [0, 0, 1, 0, 0],
  1246. [0, 0, 1, 0, 0],
  1247. [0, 0, 0, 0, 0],
  1248. [0, 0, 0, 0, 0],
  1249. [0, 0, 0, 0, 0],
  1250. [0, 0, 0, 0, 0],
  1251. [0, 0, 0, 0, 0],
  1252. [0, 0, 0, 0, 1],
  1253. ],
  1254. [//6*10 map 6
  1255. [0, 0, 0, 0, 0, 0],
  1256. [0, 0, 0, 0, 0, 1],
  1257. [1, 0, 12, 0, 0, 0],
  1258. [0, 1, 0, 0, 0, 0],
  1259. [1, 1, 0, 0, 1, 0],
  1260. [1, 1, 0, 0, 4, 0],
  1261. [1, 1, 0, 0, 0, 0],
  1262. [1, 1, 4, 0, 0, 0],
  1263. [0, 0, 4, 0, 0, 0],
  1264. [0, 4, 4, 0, 0, 1],
  1265. ],
  1266. [
  1267. // 6 * 12 map 7
  1268. [0, 0, 12, 0, 0, 0],
  1269. [17, 0, 19, 0, 20, 0],
  1270. [0, 15, 0, 0, 19, 0],
  1271. [0, 1, 13, 0, 1, 0],
  1272. [0, 1, 0, 0, 1, 0],
  1273. [99, 0, 99, 99, 99, 99],
  1274. [99, 0, 99, 99, 99, 99],
  1275. [19, 0, 0, 0, 0, 0],
  1276. [0, 0, 3, 19, 0, 0],
  1277. [5, 18, 0, 19, 0, 0],
  1278. [0, 13, 0, 1, 3, 0],
  1279. [0, 12, 0, 0, 0, 1],
  1280. ],
  1281. ]
  1282. export var MapDataRoloQueues = [
  1283. [//4*7 map1
  1284. SofaColor.蓝,
  1285. SofaColor.蓝,
  1286. SofaColor.蓝,
  1287. SofaColor.蓝,
  1288. SofaColor.蓝,
  1289. SofaColor.蓝,
  1290. SofaColor.蓝,
  1291. SofaColor.蓝,
  1292. SofaColor.蓝,
  1293. SofaColor.蓝,
  1294. SofaColor.蓝,
  1295. SofaColor.蓝,
  1296. ],
  1297. [//4*7 map2
  1298. SofaColor.红,
  1299. SofaColor.红,
  1300. SofaColor.蓝,
  1301. ],
  1302. [//4*8 map 3
  1303. SofaColor.蓝,
  1304. SofaColor.蓝,
  1305. SofaColor.蓝,
  1306. SofaColor.蓝,
  1307. ],
  1308. [//5*8 map 4
  1309. SofaColor.蓝,
  1310. SofaColor.蓝,
  1311. SofaColor.蓝,
  1312. ],
  1313. [//5*11 map 5
  1314. SofaColor.蓝,
  1315. SofaColor.蓝,
  1316. SofaColor.蓝,
  1317. ],
  1318. [//6*10 map 6
  1319. [
  1320. SofaColor.蓝,
  1321. SofaColor.蓝,
  1322. SofaColor.蓝,
  1323. SofaColor.蓝,
  1324. ],
  1325. [
  1326. SofaColor.蓝,
  1327. SofaColor.蓝,
  1328. SofaColor.蓝,
  1329. ]
  1330. ],
  1331. [//6*12 map7
  1332. SofaColor.黄,
  1333. SofaColor.黄,
  1334. ],
  1335. ]
  1336. export var MapDataGraySitDownColor = [
  1337. SofaColor.蓝,//第一关灰色可以坐下的乘客的颜色
  1338. SofaColor.蓝,//第2关
  1339. SofaColor.蓝,
  1340. SofaColor.蓝,
  1341. SofaColor.蓝,
  1342. SofaColor.蓝,
  1343. SofaColor.蓝,
  1344. SofaColor.蓝
  1345. ]
  1346. export var MapDataCountDown = [
  1347. 112,//第一关需要的时间
  1348. 112,//第2关需要的时间
  1349. 112,
  1350. 112,
  1351. 112,
  1352. 110,
  1353. 112]
  1354. //当前车子类型
  1355. export var MapDataBusTypes = [
  1356. 1,
  1357. 2,
  1358. 3,
  1359. 4,
  1360. 5,
  1361. 6,
  1362. 7,
  1363. ]
  1364. //#endregion
  1365. //#region 打包用关卡数据
  1366. // export var MapData = [
  1367. // [//4*7 map 2
  1368. // [0, 1, 0, 1],
  1369. // [1, 0, 1, 0],
  1370. // [0, 1, 0, 1],
  1371. // [1, 0, 1, 0],
  1372. // [0, 1, 0, 1],
  1373. // [1, 0, 1, 0],
  1374. // [0, 1, 0, 1],
  1375. // ],
  1376. // [//5*8 map 4
  1377. // [1, 7, 9, 0, 3],
  1378. // [9, 7, 1, 15, 0],
  1379. // [0, 0, 4, 0, 0],
  1380. // [15, 0, 0, 1, 4],
  1381. // [0, 0, 3, 0, 0],
  1382. // [15, 0, 20, 0, 0],
  1383. // [14, 0, 0, 20, 0],
  1384. // [1, 7, 7, 0, 0],
  1385. // ],
  1386. // [//5*8 map 4
  1387. // [1, 0, 11, 0, 1009],
  1388. // [1007, 1, 1005, 1, 1],
  1389. // [1, 0, 19, 0, 0],
  1390. // [1009, 1, 1005, 1, 1005],
  1391. // [1, 2, 0, 11, 0],
  1392. // [1007, 0, 1, 1, 0],
  1393. // [1, 1, 0, 1009, 0],
  1394. // [0, 1005, 0, 11, 0],
  1395. // ],
  1396. // [//7*11 map 1
  1397. // [11, 0, 0, 99, 15, 0, 0],
  1398. // [1, 0, 0, 99, 0, 5, 0],
  1399. // [0, 1, 1, 5, 5, 5, 5],
  1400. // [11, 0, 0, 99, 5, 5, 0],
  1401. // [1, 1, 1, 99, 0, 5, 5],
  1402. // [0, 9, 9, 99, 17, 0, 0],
  1403. // [9, 0, 9, 99, 0, 17, 0],
  1404. // [0, 9, 0, 99, 7, 7, 0],
  1405. // [9, 9, 9, 99, 0, 3, 7],
  1406. // [3, 0, 1, 9, 17, 0, 0],
  1407. // [0, 9, 0, 99, 7, 0, 7,],
  1408. // ],
  1409. // [
  1410. // // 6 * 12 map 7
  1411. // [0, 0, 12, 0, 0, 0],
  1412. // [17, 0, 19, 0, 20, 0],
  1413. // [0, 15, 0, 0, 19, 0],
  1414. // [0, 1, 13, 0, 1, 0],
  1415. // [0, 1, 0, 0, 1, 0],
  1416. // [99, 0, 99, 99, 99, 99],
  1417. // [99, 0, 99, 99, 99, 99],
  1418. // [19, 0, 0, 0, 0, 0],
  1419. // [0, 0, 3, 19, 0, 0],
  1420. // [5, 18, 0, 19, 0, 0],
  1421. // [0, 13, 0, 1, 3, 0],
  1422. // [0, 12, 0, 0, 0, 0],
  1423. // ],
  1424. // [
  1425. // // 6 * 12 map 7
  1426. // [0, 0, 12, 0, 0, 0],
  1427. // [17, 0, 19, 0, 20, 0],
  1428. // [0, 15, 0, 0, 19, 0],
  1429. // [0, 1, 13, 0, 1, 0],
  1430. // [0, 1, 0, 0, 1, 0],
  1431. // [99, 0, 99, 99, 99, 99],
  1432. // [99, 0, 99, 99, 99, 99],
  1433. // [19, 0, 0, 0, 0, 0],
  1434. // [0, 0, 3, 19, 0, 0],
  1435. // [5, 18, 0, 19, 0, 0],
  1436. // [0, 13, 0, 1, 3, 0],
  1437. // [0, 12, 0, 0, 0, 0],
  1438. // ],
  1439. // ]
  1440. // export var MapDataRoloQueues = [
  1441. // [//4*7 map2
  1442. // SofaColor.蓝,
  1443. // SofaColor.蓝,
  1444. // SofaColor.蓝,
  1445. // SofaColor.蓝,
  1446. // SofaColor.蓝,
  1447. // SofaColor.蓝,
  1448. // SofaColor.蓝,
  1449. // SofaColor.蓝,
  1450. // SofaColor.蓝,
  1451. // SofaColor.蓝,
  1452. // SofaColor.蓝,
  1453. // SofaColor.蓝,
  1454. // SofaColor.蓝,
  1455. // SofaColor.蓝,
  1456. // ],
  1457. // [
  1458. // SofaColor.粉,
  1459. // SofaColor.粉,
  1460. // SofaColor.蓝,
  1461. // SofaColor.蓝,
  1462. // SofaColor.蓝,
  1463. // SofaColor.蓝,
  1464. // SofaColor.红,
  1465. // SofaColor.红,
  1466. // SofaColor.黄,
  1467. // SofaColor.黄,
  1468. // SofaColor.黄,
  1469. // SofaColor.蓝,
  1470. // SofaColor.蓝,
  1471. // SofaColor.蓝,
  1472. // SofaColor.粉,
  1473. // SofaColor.粉,
  1474. // SofaColor.粉,
  1475. // SofaColor.蓝,
  1476. // SofaColor.蓝,
  1477. // SofaColor.粉,
  1478. // SofaColor.黄,
  1479. // SofaColor.黄,
  1480. // SofaColor.黄,
  1481. // SofaColor.红,
  1482. // SofaColor.红,
  1483. // SofaColor.蓝,
  1484. // ],
  1485. // [
  1486. // SofaColor.粉,
  1487. // SofaColor.蓝,
  1488. // SofaColor.蓝,
  1489. // SofaColor.蓝,
  1490. // SofaColor.蓝,
  1491. // SofaColor.蓝,
  1492. // SofaColor.黄,
  1493. // SofaColor.蓝,
  1494. // SofaColor.蓝,
  1495. // SofaColor.红,
  1496. // SofaColor.红,
  1497. // SofaColor.粉,
  1498. // SofaColor.粉,
  1499. // SofaColor.粉,
  1500. // SofaColor.蓝,
  1501. // SofaColor.蓝,
  1502. // SofaColor.蓝,
  1503. // SofaColor.蓝,
  1504. // SofaColor.蓝,
  1505. // SofaColor.蓝,
  1506. // SofaColor.黄,
  1507. // SofaColor.黄,
  1508. // SofaColor.蓝,
  1509. // SofaColor.蓝,
  1510. // SofaColor.蓝,
  1511. // SofaColor.蓝,
  1512. // SofaColor.蓝,
  1513. // SofaColor.蓝,
  1514. // SofaColor.黄,
  1515. // SofaColor.黄,
  1516. // ],
  1517. // [
  1518. // SofaColor.粉,
  1519. // SofaColor.红,
  1520. // SofaColor.黄,
  1521. // SofaColor.蓝,
  1522. // SofaColor.粉,
  1523. // SofaColor.红,
  1524. // SofaColor.黄,
  1525. // SofaColor.蓝,
  1526. // SofaColor.蓝,
  1527. // SofaColor.粉,
  1528. // SofaColor.红,
  1529. // SofaColor.黄,
  1530. // SofaColor.蓝,
  1531. // SofaColor.粉,
  1532. // SofaColor.红,
  1533. // SofaColor.黄,
  1534. // SofaColor.蓝,
  1535. // SofaColor.粉,
  1536. // SofaColor.红,
  1537. // SofaColor.黄,
  1538. // SofaColor.蓝,
  1539. // SofaColor.粉,
  1540. // SofaColor.红,
  1541. // SofaColor.黄,
  1542. // SofaColor.蓝,
  1543. // SofaColor.粉,
  1544. // SofaColor.红,
  1545. // SofaColor.黄,
  1546. // SofaColor.蓝,
  1547. // SofaColor.粉,
  1548. // SofaColor.粉,
  1549. // SofaColor.粉,
  1550. // SofaColor.粉,
  1551. // SofaColor.红,
  1552. // SofaColor.红,
  1553. // SofaColor.红,
  1554. // SofaColor.红,
  1555. // SofaColor.黄,
  1556. // SofaColor.黄,
  1557. // SofaColor.黄,
  1558. // SofaColor.蓝,
  1559. // SofaColor.蓝,
  1560. // SofaColor.蓝,
  1561. // SofaColor.蓝,
  1562. // SofaColor.蓝,
  1563. // ],
  1564. // [//6*12 map7
  1565. // SofaColor.黄,
  1566. // SofaColor.黄,
  1567. // SofaColor.黄,
  1568. // SofaColor.黄,
  1569. // SofaColor.黄,
  1570. // SofaColor.黄,
  1571. // SofaColor.黄,
  1572. // SofaColor.黄,
  1573. // SofaColor.蓝,
  1574. // SofaColor.蓝,
  1575. // SofaColor.蓝,
  1576. // SofaColor.蓝,
  1577. // SofaColor.蓝,
  1578. // SofaColor.黄,
  1579. // SofaColor.红,
  1580. // SofaColor.粉,
  1581. // SofaColor.红,
  1582. // SofaColor.黄,
  1583. // SofaColor.蓝,
  1584. // SofaColor.蓝,
  1585. // SofaColor.蓝,
  1586. // SofaColor.蓝,
  1587. // SofaColor.黄,
  1588. // SofaColor.黄,
  1589. // SofaColor.红,
  1590. // SofaColor.粉,
  1591. // SofaColor.红,
  1592. // SofaColor.粉,
  1593. // SofaColor.蓝,
  1594. // SofaColor.蓝,
  1595. // SofaColor.蓝,
  1596. // SofaColor.蓝,
  1597. // SofaColor.蓝,
  1598. // SofaColor.蓝,
  1599. // ],
  1600. // [//6*12 map7
  1601. // SofaColor.黄,
  1602. // SofaColor.黄,
  1603. // SofaColor.黄,
  1604. // SofaColor.黄,
  1605. // SofaColor.黄,
  1606. // SofaColor.黄,
  1607. // SofaColor.黄,
  1608. // SofaColor.黄,
  1609. // SofaColor.蓝,
  1610. // SofaColor.蓝,
  1611. // SofaColor.蓝,
  1612. // SofaColor.蓝,
  1613. // SofaColor.蓝,
  1614. // SofaColor.黄,
  1615. // SofaColor.红,
  1616. // SofaColor.粉,
  1617. // SofaColor.红,
  1618. // SofaColor.黄,
  1619. // SofaColor.蓝,
  1620. // SofaColor.蓝,
  1621. // SofaColor.蓝,
  1622. // SofaColor.蓝,
  1623. // SofaColor.黄,
  1624. // SofaColor.黄,
  1625. // SofaColor.红,
  1626. // SofaColor.粉,
  1627. // SofaColor.红,
  1628. // SofaColor.粉,
  1629. // SofaColor.蓝,
  1630. // SofaColor.蓝,
  1631. // SofaColor.蓝,
  1632. // SofaColor.蓝,
  1633. // SofaColor.蓝,
  1634. // SofaColor.蓝,
  1635. // ],
  1636. // ]
  1637. // export var MapDataGraySitDownColor = [
  1638. // SofaColor.蓝,//第一关灰色可以坐下的乘客的颜色
  1639. // SofaColor.蓝,//第2关
  1640. // SofaColor.蓝,
  1641. // SofaColor.蓝,
  1642. // SofaColor.蓝,
  1643. // SofaColor.蓝
  1644. // ]
  1645. // export var MapDataCountDown = [
  1646. // 120,//第一关需要的时间
  1647. // 180,//第2关需要的时间
  1648. // 180,
  1649. // 220,
  1650. // 180,
  1651. // 180
  1652. // ]
  1653. // //当前车子类型
  1654. // export var MapDataBusTypes = [
  1655. // 2,
  1656. // 4,
  1657. // 4,
  1658. // 1,
  1659. // 7,
  1660. // 7,
  1661. // ]
  1662. //#endregion
  1663. //设置正式地图函数
  1664. export const SetMap = (Data: string) => {
  1665. // console.log(JSON.parse(Data));
  1666. console.error(Data);
  1667. try {
  1668. MapData = JSON.parse(Data['MapData'])
  1669. } catch (error) {
  1670. return console.error('MapData出错');
  1671. }
  1672. try {
  1673. MapDataRoloQueues = JSON.parse(Data['MapDataRoloQueues'])
  1674. } catch (error) {
  1675. return console.error('MapDataRoloQueues出错');
  1676. }
  1677. try {
  1678. MapDataGraySitDownColor = JSON.parse(Data['MapDataGraySitDownColor'])
  1679. } catch (error) {
  1680. return console.error('MapDataGraySitDownColor出错');
  1681. }
  1682. try {
  1683. MapDataCountDown = JSON.parse(Data['MapDataCountDown'])
  1684. } catch (error) {
  1685. return console.error('MapDataCountDown出错');
  1686. }
  1687. try {
  1688. MapDataBusTypes = JSON.parse(Data['MapDataBusTypes'])
  1689. } catch (error) {
  1690. return console.error('MapDataBusTypes出错');
  1691. }
  1692. }
  1693. //设置预览地图函数
  1694. export const SetPreviewMap = (Mapobj: object) => {
  1695. try {
  1696. JSON.parse(Mapobj['MapData'])
  1697. JSON.parse(Mapobj['MapDataRoloQueues'])
  1698. JSON.parse(Mapobj['MapDataGraySitDownColor'])
  1699. JSON.parse(Mapobj['MapDataCountDown'])
  1700. JSON.parse(Mapobj['MapDataBusTypes'])
  1701. } catch (error) {
  1702. console.error(error);
  1703. console.error('序列化出错了');
  1704. debugger
  1705. return
  1706. }
  1707. if (Mapobj) {
  1708. MapData[0] = JSON.parse(Mapobj['MapData'])
  1709. MapDataRoloQueues[0] = JSON.parse(Mapobj['MapDataRoloQueues'])
  1710. MapDataGraySitDownColor[0] = JSON.parse(Mapobj['MapDataGraySitDownColor'])
  1711. MapDataCountDown[0] = JSON.parse(Mapobj['MapDataCountDown'])
  1712. MapDataBusTypes[0] = JSON.parse(Mapobj['MapDataBusTypes'])
  1713. }
  1714. }