Advertisement
Guest User

Untitled

a guest
Jul 29th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 44.82 KB | None | 0 0
  1. package com.devm.cosmic.comm
  2. {
  3. import com.devm.cosmic.comm.commands.*;
  4. import com.devm.cosmic.game.*;
  5. import com.devm.cosmic.util.*;
  6. import com.devm.util.misc.*;
  7. import flash.display.*;
  8. import flash.events.*;
  9. import flash.utils.*;
  10.  
  11. public class CosmicConnector extends Connector
  12. {
  13. private var _savedMessages:Dictionary;
  14. private var _username:String;
  15. private var _password:String;
  16. public static const MSG_SFS_INITIALIZED:String = "initialized";
  17. public static const MSG_SFS_CONNECTED:String = "connection success";
  18. public static const MSG_SFS_FAIL:String = "connection failure";
  19. public static const MSG_SRV_ALERT:String = "0";
  20. public static const MSG_SRV_LOGINFAIL:String = "1";
  21. public static const MSG_SRV_LOGINSUCCESS:String = "2";
  22. public static const MSG_SRV_COCKPITUPDATE:String = "3";
  23. public static const MSG_SRV_SHIPLANDED:String = "4";
  24. public static const MSG_SRV_SHIPLISTDETAIL:String = "5";
  25. public static const MSG_SRV_PLAYERLISTDETAIL:String = "6";
  26. public static const MSG_SRV_SENDPLAYERPROFILE:String = "7";
  27. public static const MSG_SRV_SENDSHIPCONFIG:String = "8";
  28. public static const MSG_SRV_ENTERSECTOR:String = "9";
  29. public static const MSG_SRV_SHIPFLIGHTCHANGE:String = "10";
  30. public static const MSG_SRV_SECTORUPDATE:String = "11";
  31. public static const MSG_SRV_PLAYERINVENTORY:String = "12";
  32. public static const MSG_SRV_TRADELIST:String = "13";
  33. public static const MSG_SRV_ENTERGAME:String = "14";
  34. public static const MSG_SRV_STOPEXTRACTION:String = "15";
  35. public static const MSG_SRV_OUTPOSTSHIPLIST:String = "16";
  36. public static const MSG_SRV_SHIPCONFIGDETAIL:String = "17";
  37. public static const MSG_SRV_SHIPDESTROYED:String = "18";
  38. public static const MSG_SRV_ENTERCOLONY:String = "19";
  39. public static const MSG_SRV_PLAYERSHIPLIST:String = "20";
  40. public static const MSG_SRV_WAREHOUSESTATUS:String = "21";
  41. public static const MSG_SRV_PM_SENDLIST:String = "22";
  42. public static const MSG_SRV_PM_SENDTHREAD:String = "23";
  43. public static const MSG_SRV_CHAT_ROOMLIST:String = "24";
  44. public static const MSG_SRV_CHAT_UPDATE:String = "25";
  45. public static const MSG_SRV_CHAT_ROOMROSTER:String = "26";
  46. public static const MSG_SRV_MRKT_ITEMOFFERLIST:String = "27";
  47. public static const MSG_SRV_MRKT_SHIPOFFERLIST:String = "28";
  48. public static const MSG_SRV_REGISTER_SUCCESS:String = "29";
  49. public static const MSG_SRV_BP_REQS:String = "30";
  50. public static const MSG_SRV_BASE_STRUCTURES:String = "31";
  51. public static const MSG_SRV_SCRAP_PREVIEW:String = "32";
  52. public static const MSG_SRV_TELEPORT_LIST:String = "33";
  53. public static const MSG_SRV_SALVAGEBOX:String = "34";
  54. public static const MSG_SRV_MISSION_OFFER:String = "35";
  55. public static const MSG_SRV_MISSION_DETAIL:String = "36";
  56. public static const MSG_SRV_MISSION_LIST:String = "37";
  57. public static const MSG_SRV_MISSION_COMPLETED:String = "38";
  58. public static const MSG_SRV_RELATIONS:String = "39";
  59. public static const MSG_SRV_BASEOPTIONS:String = "40";
  60. public static const MSG_SRV_REPORT_RESPONSE:String = "41";
  61. public static const MSG_SRV_PROMOTION:String = "42";
  62. public static const MSG_SRV_TUTORIAL:String = "43";
  63. public static const MSG_SRV_TUTORIAL_END:String = "44";
  64. public static const MSG_SRV_CREATECOLONYEXITGATE:String = "45";
  65. public static const MSG_SRV_CREATECOLONYOUTPOST:String = "46";
  66. public static const MSG_SRV_PRIORITYMESSAGE:String = "47";
  67. public static const MSG_SRV_LEADERBOARD:String = "48";
  68. public static const MSG_SRV_EVENTAWARD:String = "49";
  69. public static const MSG_SRV_MRKT_OFFERS:String = "50";
  70. public static const MSG_SRV_MRKT_ITEMS:String = "51";
  71. public static const MSG_SRV_GCE_STATUS:String = "52";
  72. public static const MSG_SRV_MRKT_FACTIONS:String = "53";
  73. public static const MSG_SRV_SIGNINGKEY:String = "54";
  74. public static const MSG_SRV_SETTING_EMAIL:String = "55";
  75. public static const MSG_SRV_SETTING_SET:String = "56";
  76. public static const MSG_SRV_NEW_EVENT:String = "57";
  77. public static const MSG_CLIENT_DEBUG:String = "d0";
  78. public static const MSG_CLIENT_DEBUGMAGICMOVE:String = "d1";
  79. public static const MSG_CLIENT_DEBUGTUORIAL:String = "d2";
  80. public static const MSG_CLIENT_PING:String = "ping";
  81. public static const MSG_SRV_PING:String = "ping";
  82. public static const MSG_CLIENT_CHANGECOURSE:String = "c1";
  83. public static const MSG_CLIENT_FIREWEAPON:String = "c2";
  84. public static const MSG_CLIENT_LAUNCH:String = "c3";
  85. public static const MSG_CLIENT_DOCK:String = "c4";
  86. public static const MSG_CLIENT_SHIPLISTDETAIL:String = "c5";
  87. public static const MSG_CLIENT_PLAYERLISTDETAIL:String = "c6";
  88. public static const MSG_CLIENT_GETMYPROFILE:String = "c7";
  89. public static const MSG_CLIENT_CHANGETARGET:String = "c8";
  90. public static const MSG_CLIENT_STOPWEAPON:String = "c9";
  91. public static const MSG_CLIENT_GETSHIPCONFIG:String = "c10";
  92. public static const MSG_CLIENT_ENTERWORMHOLE:String = "c11";
  93. public static const MSG_CLIENT_FOLLOWSHIP:String = "c12";
  94. public static const MSG_CLIENT_CHANGEFLIGHTTYPE:String = "c13";
  95. public static const MSG_CLIENT_EXTRACTRESOURCES:String = "c14";
  96. public static const MSG_CLIENT_TRADELIST:String = "c15";
  97. public static const MSG_CLIENT_TRADERESOURCES:String = "c16";
  98. public static const MSG_CLIENT_STOPEXTRACTION:String = "c17";
  99. public static const MSG_CLIENT_HANGARREQUEST:String = "c18";
  100. public static const MSG_CLIENT_GETSHIPCONFIGDETAIIL:String = "c19";
  101. public static const MSG_CLIENT_ENTERCOLONY:String = "c20";
  102. public static const MSG_CLIENT_BUILDSTRUCTURE:String = "c21";
  103. public static const MSG_CLIENT_LEAVECOLONY:String = "c22";
  104. public static const MSG_CLIENT_GETSTRUCTURESTATUS:String = "c23";
  105. public static const MSG_CLIENT_GETPLAYERSHIPS:String = "c24";
  106. public static const MSG_CLIENT_VAULTTRANSFER:String = "c25";
  107. public static const MSG_CLIENT_WAREHOUSETRANSFER:String = "c26";
  108. public static const MSG_CLIENT_REFINE:String = "c27";
  109. public static const MSG_CLIENT_UPGRADESTRUCTURE:String = "c28";
  110. public static const MSG_CLIENT_DESTROYSTRUCTURE:String = "c29";
  111. public static const MSG_CLIENT_CANCELSTRUCTURE:String = "c30";
  112. public static const MSG_CLIENT_PM_GETLIST:String = "c31";
  113. public static const MSG_CLIENT_PM_COMPOSE:String = "c32";
  114. public static const MSG_CLIENT_PM_REPLY:String = "c33";
  115. public static const MSG_CLIENT_PM_GETTHREAD:String = "c34";
  116. public static const MSG_CLIENT_PM_ARCHIVE:String = "c35";
  117. public static const MSG_CLIENT_PM_DELETE:String = "c36";
  118. public static const MSG_CLIENT_CHAT_SENDMESSAGE:String = "c37";
  119. public static const MSG_CLIENT_CHAT_GETROOMS:String = "c39";
  120. public static const MSG_CLIENT_MRKT_GETSHIPOFFERS:String = "c40";
  121. public static const MSG_CLIENT_MRKT_GETITEMOFFERS:String = "c41";
  122. public static const MSG_CLIENT_MRKT_GETMYITEMOFFERS:String = "c42";
  123. public static const MSG_CLIENT_MRKT_BUY:String = "c43";
  124. public static const MSG_CLIENT_MRKT_SELLITEM:String = "c44";
  125. public static const MSG_CLIENT_MRKT_SELLSHIP:String = "c45";
  126. public static const MSG_CLIENT_MRKT_CANCEL:String = "c46";
  127. public static const MSG_CLIENT_MRKT_GETMYSHIPOFFERS:String = "c47";
  128. public static const MSG_CLIENT_FLEET_HARVEST:String = "c48";
  129. public static const MSG_CLIENT_FLEET_CANCEL:String = "c49";
  130. public static const MSG_CLIENT_BP_PRODUCE:String = "c50";
  131. public static const MSG_CLIENT_EQUIP:String = "c51";
  132. public static const MSG_CLIENT_UNEQUIP:String = "c52";
  133. public static const MSG_CLIENT_BP_REQS:String = "c53";
  134. public static const MSG_CLIENT_BASE_STRUCTURES:String = "c54";
  135. public static const MSG_CLIENT_SCRAP_PREVIEW:String = "c55";
  136. public static const MSG_CLIENT_SCRAP_DO:String = "c56";
  137. public static const MSG_CLIENT_TELEPORT_LIST:String = "c57";
  138. public static const MSG_CLIENT_TELEPORT_GO:String = "c58";
  139. public static const MSG_CLIENT_SALVAGEBOX:String = "c59";
  140. public static const MSG_CLIENT_MISSION_REQUEST:String = "c60";
  141. public static const MSG_CLIENT_MISSION_RESPONSE:String = "c61";
  142. public static const MSG_CLIENT_MISSION_DETAIL:String = "c62";
  143. public static const MSG_CLIENT_MISSION_LIST:String = "c63";
  144. public static const MSG_CLIENT_RELATIONS:String = "c64";
  145. public static const MSG_CLIENT_BASEOPTIONS:String = "c65";
  146. public static const MSG_CLIENT_BUILDBASE:String = "c66";
  147. public static const MSG_CLIENT_REPORT_REQUEST:String = "c67";
  148. public static const MSG_CLIENT_MRKT_GETOFFERS:String = "c68";
  149. public static const MSG_CLIENT_MRKT_TYPEGETOFFERS:String = "c69";
  150. public static const MSG_CLIENT_GCE_STATUS:String = "c70";
  151. public static const MSG_CLIENT_GCE_CANCEL:String = "c71";
  152. public static const MSG_CLIENT_GCE_OFFER:String = "c72";
  153. public static const MSG_CLIENT_GCE_TRANSACTION:String = "c73";
  154. public static const MSG_CLIENT_MRKT_GETFACTIONS:String = "c74";
  155. public static const MSG_CLIENT_SIGNINGKEY:String = "c75";
  156. public static const MSG_CLIENT_GCUPDATE:String = "c76";
  157. public static const MSG_CLIENT_CHAT_SENDCOMMAND:String = "c77";
  158. public static const MSG_CLIENT_SETTING_SETAVATAR:String = "c78";
  159. public static const MSG_CLIENT_SETTING_SETPASSWORD:String = "c79";
  160. public static const MSG_CLIENT_SETTING_SETEMAIL:String = "c80";
  161. public static const MSG_CLIENT_SETTING_GETEMAIL:String = "c81";
  162. public static const MSG_CLIENT_LAUNCH_TO_COLONY:String = "c82";
  163. public static const ALERT_ANNOUNCEMENT:String = "a";
  164. public static const ALERT_DATAERROR:String = "de";
  165. public static const ALERT_SECTORACTIVITY:String = "sa";
  166. public static const ALERT_PLAYERPROMOTION:String = "pp";
  167. public static const ALERT_SHIPDESTROYED:String = "sd";
  168. public static const ALERT_SOW:String = "sow";
  169. private static var _this:CosmicConnector;
  170. private static const xtName:String = "cj";
  171.  
  172. public function CosmicConnector(param1:Sprite)
  173. {
  174. super(param1);
  175. _this = this;
  176. this._savedMessages = new Dictionary();
  177. return;
  178. }// end function
  179.  
  180. public function retryLogin() : void
  181. {
  182. this.login(this._username, this._password);
  183. return;
  184. }// end function
  185.  
  186. public function login(param1:String, param2:String) : void
  187. {
  188. this._username = param1;
  189. this._password = param2;
  190. _server.login(xtName, param1, param2);
  191. Debug.print("CosmicConnector.login() : " + xtName + ", " + param1 + ", " + param2);
  192. return;
  193. }// end function
  194.  
  195. public function createCharacter(param1:String, param2:String, param3:String, param4:String, param5:String, param6:String, param7:String) : void
  196. {
  197. var _loc_8:* = param1 + "|" + param2 + "|" + param3 + "|" + param4 + "|" + param6 + "|" + param7;
  198. _server.login(xtName, _loc_8, param5);
  199. Debug.print("CosmicConnector.createCharacter() : " + xtName + ", " + _loc_8 + ", " + "****");
  200. return;
  201. }// end function
  202.  
  203. public function getLatestMessage(param1:String) : CMD
  204. {
  205. return this._savedMessages[param1] as CMD;
  206. }// end function
  207.  
  208. public function inject(param1:String, param2:String) : void
  209. {
  210. this.processCommand(param1, param2);
  211. return;
  212. }// end function
  213.  
  214. override protected function processCommand(param1:String, param2:String) : void
  215. {
  216. var _loc_3:CMD = null;
  217. if (param1 == MSG_SRV_COCKPITUPDATE)
  218. {
  219. _loc_3 = new CockpitUpdateCommand(param2);
  220. ServerTime.time = (_loc_3 as CockpitUpdateCommand).localShip.time;
  221. CachedData.latestCockpitUpdate = _loc_3 as CockpitUpdateCommand;
  222. }
  223. else if (param1 == MSG_SRV_PING)
  224. {
  225. _loc_3 = new CMD();
  226. ServerTime.time = Number(param2);
  227. }
  228. else if (param1 == MSG_SRV_SHIPFLIGHTCHANGE)
  229. {
  230. _loc_3 = new ShipFlightChangeCommand(param2);
  231. }
  232. else if (param1 == MSG_SRV_SENDSHIPCONFIG)
  233. {
  234. _loc_3 = new ShipConfigCommand(param2);
  235. }
  236. else if (param1 == MSG_SRV_ENTERGAME)
  237. {
  238. _loc_3 = new EnterGame2Command(param2);
  239. }
  240. else if (param1 == MSG_SRV_ENTERCOLONY)
  241. {
  242. _loc_3 = new EnterColonyCommand(param2);
  243. }
  244. else if (param1 == MSG_SRV_ENTERSECTOR)
  245. {
  246. _loc_3 = new EnterSectorCommand(param2);
  247. ServerTime.time = (_loc_3 as EnterSectorCommand).serverTime;
  248. }
  249. else if (param1 == MSG_SRV_SECTORUPDATE)
  250. {
  251. _loc_3 = new SectorUpdateCommand(param2);
  252. }
  253. else if (param1 == MSG_SRV_PLAYERINVENTORY)
  254. {
  255. _loc_3 = new PlayerInventoryCommand(param2);
  256. }
  257. else if (param1 == MSG_SRV_TRADELIST)
  258. {
  259. _loc_3 = new TradeListCommand(param2);
  260. }
  261. else if (param1 == MSG_SRV_SHIPLISTDETAIL)
  262. {
  263. _loc_3 = new ShipDetailsCommand(param2);
  264. }
  265. else if (param1 == MSG_SRV_STOPEXTRACTION)
  266. {
  267. _loc_3 = new StopExtractionCommand(param2);
  268. }
  269. else if (param1 == MSG_SRV_SHIPLANDED)
  270. {
  271. _loc_3 = new ShipLandedCommand(param2);
  272. }
  273. else if (param1 == MSG_SRV_OUTPOSTSHIPLIST)
  274. {
  275. _loc_3 = new OutpostShipListCommand(param2);
  276. }
  277. else if (param1 == MSG_SRV_SHIPDESTROYED)
  278. {
  279. _loc_3 = new ShipDestroyedCommand(param2);
  280. }
  281. else if (param1 == MSG_SRV_SHIPCONFIGDETAIL)
  282. {
  283. _loc_3 = new ShipConfigExtendedCommand(param2);
  284. }
  285. else if (param1 == MSG_SRV_WAREHOUSESTATUS)
  286. {
  287. _loc_3 = new WarehouseCommand(param2);
  288. }
  289. else if (param1 == MSG_SRV_PM_SENDLIST)
  290. {
  291. _loc_3 = new MailListCommand(param2);
  292. }
  293. else if (param1 == MSG_SRV_PM_SENDTHREAD)
  294. {
  295. _loc_3 = new MailContentCommand(param2);
  296. }
  297. else if (param1 == MSG_SRV_CHAT_ROOMLIST)
  298. {
  299. _loc_3 = new ChatRoomListCommand(param2);
  300. }
  301. else if (param1 == MSG_SRV_CHAT_ROOMROSTER)
  302. {
  303. _loc_3 = new ChatParticipantListCommand(param2);
  304. }
  305. else if (param1 == MSG_SRV_CHAT_UPDATE)
  306. {
  307. _loc_3 = new ChatPostCommand(param2);
  308. }
  309. else if (param1 == MSG_SRV_MRKT_ITEMOFFERLIST)
  310. {
  311. _loc_3 = new MarketItemList(param2);
  312. }
  313. else if (param1 == MSG_SRV_SENDPLAYERPROFILE)
  314. {
  315. _loc_3 = new MyProfileCommand(param2);
  316. }
  317. else if (param1 == MSG_SRV_MRKT_SHIPOFFERLIST)
  318. {
  319. _loc_3 = new MarketShipList(param2);
  320. }
  321. else if (param1 == MSG_SRV_REGISTER_SUCCESS)
  322. {
  323. _loc_3 = new RegisterSuccessCommand(param2);
  324. }
  325. else if (param1 == MSG_SRV_BP_REQS)
  326. {
  327. _loc_3 = new BlueprintReqCommand(param2);
  328. }
  329. else if (param1 == MSG_SRV_BASE_STRUCTURES)
  330. {
  331. _loc_3 = new StructuresListCommand(param2);
  332. }
  333. else if (param1 == MSG_SRV_SCRAP_PREVIEW)
  334. {
  335. _loc_3 = new ScrapPreviewCommand(param2);
  336. }
  337. else if (param1 == MSG_SRV_TELEPORT_LIST)
  338. {
  339. _loc_3 = new TeleportListCommand(param2);
  340. }
  341. else if (param1 == MSG_SRV_SALVAGEBOX)
  342. {
  343. _loc_3 = new SalvageBoxCommand(param2);
  344. }
  345. else if (param1 == MSG_SRV_MISSION_OFFER || param1 == MSG_SRV_MISSION_DETAIL || param1 == MSG_SRV_MISSION_COMPLETED)
  346. {
  347. _loc_3 = new MissionDetailCommand(param2);
  348. }
  349. else if (param1 == MSG_SRV_MISSION_LIST)
  350. {
  351. _loc_3 = new MissionListCommand(param2);
  352. }
  353. else if (param1 == MSG_SRV_RELATIONS)
  354. {
  355. _loc_3 = new FactionRelationsCommand(param2);
  356. }
  357. else if (param1 == MSG_SRV_PLAYERLISTDETAIL)
  358. {
  359. _loc_3 = new PlayerListDetailsCommand(param2);
  360. }
  361. else if (param1 == MSG_SRV_BASEOPTIONS)
  362. {
  363. _loc_3 = new BaseOptionsCommand(param2);
  364. }
  365. else if (param1 == MSG_SRV_REPORT_RESPONSE)
  366. {
  367. _loc_3 = new ScoreboardCommand(param2);
  368. }
  369. else if (param1 == MSG_SRV_PROMOTION)
  370. {
  371. _loc_3 = new PromotionCommand(param2);
  372. }
  373. else if (param1 == MSG_SRV_CREATECOLONYEXITGATE)
  374. {
  375. _loc_3 = new CreateWormHoleCommand(param2);
  376. }
  377. else if (param1 == MSG_SRV_CREATECOLONYOUTPOST)
  378. {
  379. _loc_3 = new CreateOutpostCommand(param2);
  380. }
  381. else if (param1 == MSG_SRV_PRIORITYMESSAGE)
  382. {
  383. _loc_3 = new PriorityMessageCommand(param2);
  384. }
  385. else if (param1 == MSG_SRV_LEADERBOARD)
  386. {
  387. _loc_3 = new EventLeaderboardCommand(param2);
  388. }
  389. else if (param1 == MSG_SRV_EVENTAWARD)
  390. {
  391. _loc_3 = new EventAwardCommand(param2);
  392. }
  393. else if (param1 == MSG_SRV_GCE_STATUS)
  394. {
  395. _loc_3 = new GCExchangeStatusCommand(param2);
  396. }
  397. else if (param1 == MSG_SRV_MRKT_OFFERS)
  398. {
  399. _loc_3 = new MarketOverviewCommand(param2);
  400. }
  401. else if (param1 == MSG_SRV_MRKT_ITEMS)
  402. {
  403. _loc_3 = new MarketSubOverviewCommand(param2);
  404. }
  405. else if (param1 == MSG_SRV_MRKT_FACTIONS)
  406. {
  407. _loc_3 = new MarketShipOverviewCommand(param2);
  408. }
  409. else if (param1 == MSG_SRV_SIGNINGKEY)
  410. {
  411. _loc_3 = new SignInKeyCommand(param2);
  412. }
  413. else if (param1 == MSG_SRV_NEW_EVENT)
  414. {
  415. _loc_3 = new ServerNewEventCommand(param2);
  416. }
  417. else
  418. {
  419. _loc_3 = new CMD();
  420. }
  421. _loc_3.cmd = param1;
  422. _loc_3.data = param2;
  423. _loc_3.connector = this;
  424. this._savedMessages[_loc_3.cmd] = _loc_3;
  425. if (artificialLatency == 0)
  426. {
  427. dispatchEventDo(_loc_3);
  428. }
  429. else
  430. {
  431. setTimeout(dispatchEventDo, artificialLatency, _loc_3);
  432. }
  433. return;
  434. }// end function
  435.  
  436. public function requestShipConfigExtended(param1:String) : void
  437. {
  438. sendString(MSG_CLIENT_GETSHIPCONFIGDETAIIL, param1);
  439. Debug.print("CosmicConnector.requestShipConfigExtended() " + param1);
  440. return;
  441. }// end function
  442.  
  443. public function changeFlightType(param1:String, param2:Boolean) : void
  444. {
  445. var _loc_3:* = param2 ? ("ON") : ("OFF");
  446. sendString(MSG_CLIENT_CHANGEFLIGHTTYPE, param1 + "|" + _loc_3);
  447. Debug.print("CosmicConnector.changeFlightType() " + param1 + "|" + _loc_3);
  448. return;
  449. }// end function
  450.  
  451. public function requestTradeList(param1:String) : void
  452. {
  453. sendString(MSG_CLIENT_TRADELIST, param1);
  454. Debug.print("CosmicConnector.requestTradeList() " + param1);
  455. return;
  456. }// end function
  457.  
  458. public function followShip(param1:String) : void
  459. {
  460. sendString(MSG_CLIENT_FOLLOWSHIP, param1);
  461. Debug.print("CosmicConnector.followShip() " + param1);
  462. return;
  463. }// end function
  464.  
  465. public function extractResource(param1:String, param2:String, param3:String = "0") : void
  466. {
  467. sendString(MSG_CLIENT_EXTRACTRESOURCES, param1 + "*" + param2 + "*" + param3);
  468. Debug.print("CosmicConnector.extractResource() " + param1 + "*" + param2 + "*" + param3);
  469. return;
  470. }// end function
  471.  
  472. public function stopExtraction() : void
  473. {
  474. sendString(MSG_CLIENT_STOPEXTRACTION, "0");
  475. Debug.print("CosmicConnector.stopExtraction() " + "0");
  476. return;
  477. }// end function
  478.  
  479. public function jettisonResources(param1:Array, param2:Array) : void
  480. {
  481. this.tradeResources("0", param1, param2, false);
  482. return;
  483. }// end function
  484.  
  485. public function tradeResources(param1:String, param2:Array, param3:Array, param4:Boolean) : void
  486. {
  487. var _loc_7:int = 0;
  488. var _loc_5:* = param1 + "*" + param2.length;
  489. var _loc_6:int = 0;
  490. while (_loc_6 < param2.length)
  491. {
  492.  
  493. _loc_7 = param4 ? (param3[_loc_6]) : (-param3[_loc_6]);
  494. _loc_5 = _loc_5 + ("|" + param2[_loc_6] + "|" + _loc_7);
  495. _loc_6++;
  496. }
  497. sendString(MSG_CLIENT_TRADERESOURCES, _loc_5);
  498. Debug.print("CosmicConnector.tradeResources() " + _loc_5);
  499. return;
  500. }// end function
  501.  
  502. public function fireWeapon(param1:int, param2:String, param3:String, param4:String = "S", param5:Boolean = true) : void
  503. {
  504. var _loc_6:* = param1 + "|" + param4 + "|" + param2 + "|" + param3 + "|" + (param5 ? ("1") : ("0"));
  505. sendString(MSG_CLIENT_FIREWEAPON, _loc_6);
  506. Debug.print("CosmicConnector.fireWeapon() " + _loc_6);
  507. return;
  508. }// end function
  509.  
  510. public function stopAutoFire(param1:int) : void
  511. {
  512. sendString(MSG_CLIENT_STOPWEAPON, "" + param1);
  513. Debug.print("CosmicConnector.stopAutoFire() " + param1);
  514. return;
  515. }// end function
  516.  
  517. public function setTarget(param1:String, param2:String) : void
  518. {
  519. sendString(MSG_CLIENT_CHANGETARGET, param2 + "|" + param1);
  520. Debug.print("CosmicConnector.setTarget() " + param2 + "|" + param1);
  521. return;
  522. }// end function
  523.  
  524. public function enterWormhole(param1:String) : void
  525. {
  526. sendString(MSG_CLIENT_ENTERWORMHOLE, param1);
  527. Debug.print("CosmicConnector.enterWormhole() " + param1);
  528. return;
  529. }// end function
  530.  
  531. public function enterColony(param1:String) : void
  532. {
  533. sendString(MSG_CLIENT_ENTERCOLONY, param1);
  534. Debug.print("CosmicConnector.enterColony() " + param1);
  535. return;
  536. }// end function
  537.  
  538. public function setFollow(param1:String) : void
  539. {
  540. sendString(MSG_CLIENT_FOLLOWSHIP, param1);
  541. Debug.print("CosmicConnector.setFollow() " + param1);
  542. return;
  543. }// end function
  544.  
  545. public function setDestination(param1:Vector2D) : void
  546. {
  547. sendString(MSG_CLIENT_CHANGECOURSE, int(param1.x) + "|" + int(param1.y));
  548. Debug.print("CosmicConnector.setDestination() " + int(param1.x) + "|" + int(param1.y));
  549. return;
  550. }// end function
  551.  
  552. public function requestShipDetails(param1:Array) : void
  553. {
  554. sendString(MSG_CLIENT_SHIPLISTDETAIL, param1.join("|"));
  555. return;
  556. }// end function
  557.  
  558. public function requestPlayerInfo(param1:Array) : void
  559. {
  560. sendString(MSG_CLIENT_PLAYERLISTDETAIL, param1.join("|"));
  561. Debug.print("CosmicConnector.requestPlayerInfo() " + param1.join("|"));
  562. return;
  563. }// end function
  564.  
  565. public function requestOwnProfile() : void
  566. {
  567. sendString(MSG_CLIENT_GETMYPROFILE, "0");
  568. Debug.print("CosmicConnector.requestProfile() ");
  569. return;
  570. }// end function
  571.  
  572. public function requestShipConfig(param1:Array) : void
  573. {
  574. sendString(MSG_CLIENT_GETSHIPCONFIG, param1.join("|"));
  575. Debug.print("CosmicConnector.requestShipConfig() " + param1.join("|"));
  576. return;
  577. }// end function
  578.  
  579. public function requestShipInHangar() : void
  580. {
  581. sendString(MSG_CLIENT_HANGARREQUEST, "list");
  582. Debug.print("CosmicConnector.requestShipInHangar() " + "list");
  583. return;
  584. }// end function
  585.  
  586. public function repairShipInHangar(param1:String) : void
  587. {
  588. sendString(MSG_CLIENT_HANGARREQUEST, "repair:" + param1);
  589. Debug.print("CosmicConnector.repairShipInHangar() " + "repair:" + param1);
  590. return;
  591. }// end function
  592.  
  593. public function dock(param1:String) : void
  594. {
  595. sendString(MSG_CLIENT_DOCK, param1);
  596. Debug.print("CosmicConnector.dock() " + param1);
  597. return;
  598. }// end function
  599.  
  600. public function leaveColony(param1:String) : void
  601. {
  602. sendString(MSG_CLIENT_LEAVECOLONY, param1);
  603. Debug.print("CosmicConnector.leaveColony() " + param1);
  604. return;
  605. }// end function
  606.  
  607. public function leaveDock(param1:String) : void
  608. {
  609. sendString(MSG_CLIENT_LAUNCH, param1);
  610. Debug.print("CosmicConnector.leaveDock() " + param1);
  611. return;
  612. }// end function
  613.  
  614. public function getHostAndIP() : String
  615. {
  616. return _ip + ":" + _port;
  617. }// end function
  618.  
  619. public function teleportTo(param1:Vector2D) : void
  620. {
  621. sendString(MSG_CLIENT_DEBUGMAGICMOVE, int(param1.x) + "|" + int(param1.y) + "|0");
  622. Debug.print("CosmicConnector.teleportTo() ");
  623. return;
  624. }// end function
  625.  
  626. public function buildStructure(param1:String, param2:Vector2D) : void
  627. {
  628. sendString(MSG_CLIENT_BUILDSTRUCTURE, int(param2.x) + "|" + int(param2.y) + "|" + param1);
  629. Debug.print("CosmicConnector.buildStructure() " + int(param2.x) + "|" + int(param2.y) + "|" + param1);
  630. return;
  631. }// end function
  632.  
  633. public function upgradeStructure(param1:String) : void
  634. {
  635. sendString(MSG_CLIENT_UPGRADESTRUCTURE, param1);
  636. Debug.print("CosmicConnector.upgradeStructure() " + param1);
  637. return;
  638. }// end function
  639.  
  640. public function destroyStructure(param1:String) : void
  641. {
  642. sendString(MSG_CLIENT_DESTROYSTRUCTURE, param1);
  643. Debug.print("CosmicConnector.destroyStructure() " + param1);
  644. return;
  645. }// end function
  646.  
  647. public function cancelStructure(param1:String) : void
  648. {
  649. sendString(MSG_CLIENT_CANCELSTRUCTURE, param1);
  650. Debug.print("CosmicConnector.cancelStructure() " + param1);
  651. return;
  652. }// end function
  653.  
  654. public function getStructureStatus(param1:String) : void
  655. {
  656. sendString(MSG_CLIENT_GETSTRUCTURESTATUS, param1);
  657. Debug.print("CosmicConnector.getStructureStatus() " + param1);
  658. return;
  659. }// end function
  660.  
  661. public function itemTransfer(param1:String, param2:String, param3:String, param4:String, param5:Array, param6:Array) : void
  662. {
  663. var _loc_8:int = 0;
  664. var _loc_7:* = param3 + "|" + param2 + "|" + param4;
  665. if (param5 == null || param6 == null)
  666. {
  667. _loc_7 = _loc_7 + "|ALL";
  668. }
  669. else
  670. {
  671. _loc_8 = 0;
  672. while (_loc_8 < param5.length)
  673. {
  674.  
  675. _loc_7 = _loc_7 + ("|" + param5[_loc_8] + "|" + param6[_loc_8]);
  676. _loc_8++;
  677. }
  678. }
  679. sendString(param1, _loc_7);
  680. Debug.print("CosmicConnector.itemTransfer() " + _loc_7);
  681. return;
  682. }// end function
  683.  
  684. public function warehouseTransfer(param1:String, param2:String, param3:String, param4:Array, param5:Array) : void
  685. {
  686. this.itemTransfer(MSG_CLIENT_WAREHOUSETRANSFER, param1, param2, param3, param4, param5);
  687. return;
  688. }// end function
  689.  
  690. public function refine(param1:String, param2:int) : void
  691. {
  692. sendString(MSG_CLIENT_REFINE, param1 + "|" + param2);
  693. Debug.print("CosmicConnector.refine() " + param1 + "|" + param2);
  694. return;
  695. }// end function
  696.  
  697. public function deleteMail(param1:String, param2:String = "1") : void
  698. {
  699. sendString(MSG_CLIENT_PM_DELETE, param1 + "|" + param2);
  700. Debug.print("CosmicConnector.deleteMail() " + param1 + "|" + param2);
  701. return;
  702. }// end function
  703.  
  704. public function getMailContent(param1:String) : void
  705. {
  706. sendString(MSG_CLIENT_PM_GETTHREAD, param1);
  707. Debug.print("CosmicConnector.getMailContent() " + param1);
  708. return;
  709. }// end function
  710.  
  711. public function getMails(param1:String = "inbox") : void
  712. {
  713. sendString(MSG_CLIENT_PM_GETLIST, param1);
  714. Debug.print("CosmicConnector.getMails() " + param1);
  715. return;
  716. }// end function
  717.  
  718. public function sendMail(param1:Array, param2:String, param3:String) : void
  719. {
  720. var _loc_4:* = param1.join(",");
  721. _loc_4 = param1.join(",") + ("|" + this.sanitizeString(param2));
  722. _loc_4 = _loc_4 + ("|" + this.sanitizeString(param3));
  723. sendString(MSG_CLIENT_PM_COMPOSE, _loc_4);
  724. Debug.print("CosmicConnector.sendMail() " + _loc_4);
  725. return;
  726. }// end function
  727.  
  728. public function replyToMail(param1:String, param2:String) : void
  729. {
  730. var _loc_3:* = param1 + "|" + this.sanitizeString(param2);
  731. sendString(MSG_CLIENT_PM_REPLY, _loc_3);
  732. Debug.print("CosmicConnector.replyToMail() " + _loc_3);
  733. return;
  734. }// end function
  735.  
  736. public function requestRoomList() : void
  737. {
  738. sendString(MSG_CLIENT_CHAT_GETROOMS, "0");
  739. Debug.print("CosmicConnector.requestRoomList() ");
  740. return;
  741. }// end function
  742.  
  743. public function sendChatMessage(param1:String, param2:String) : void
  744. {
  745. var _loc_3:* = param1 + "|" + this.sanitizeString(param2);
  746. sendString(MSG_CLIENT_CHAT_SENDMESSAGE, _loc_3);
  747. Debug.print("CosmicConnector.sendChatMessage() " + _loc_3);
  748. return;
  749. }// end function
  750.  
  751. public function requestMyItemOffers() : void
  752. {
  753. sendString(MSG_CLIENT_MRKT_GETMYITEMOFFERS, "0");
  754. Debug.print("CosmicConnector.requestMyItemOffers() ");
  755. return;
  756. }// end function
  757.  
  758. public function requestMyShipOffers() : void
  759. {
  760. sendString(MSG_CLIENT_MRKT_GETMYSHIPOFFERS, "0");
  761. Debug.print("CosmicConnector.requestMyShipOffers() ");
  762. return;
  763. }// end function
  764.  
  765. public function requestShipOffers(param1:String, param2:String) : void
  766. {
  767. sendString(MSG_CLIENT_MRKT_GETSHIPOFFERS, param1 + "|" + param2);
  768. Debug.print("CosmicConnector.requestShipOffers() " + param1 + "|" + param2);
  769. return;
  770. }// end function
  771.  
  772. public function requestItemOffers(param1:String) : void
  773. {
  774. sendString(MSG_CLIENT_MRKT_GETITEMOFFERS, param1);
  775. Debug.print("CosmicConnector.requestItemOffers() " + param1);
  776. return;
  777. }// end function
  778.  
  779. public function addMarketOffer(param1:String, param2:int, param3:Number) : void
  780. {
  781. sendString(MSG_CLIENT_MRKT_SELLITEM, param1 + "|" + param2 + "|" + Math.round(param3));
  782. Debug.print("CosmicConnector.addMarketOffer() " + param1 + "|" + param2 + "|" + Math.round(param3));
  783. return;
  784. }// end function
  785.  
  786. public function buyMarketOffer(param1:String, param2:Boolean, param3:String, param4:int) : void
  787. {
  788. sendString(MSG_CLIENT_MRKT_BUY, param1 + "|" + (param2 ? ("Y") : ("N")) + "|" + param3 + "|" + param4);
  789. Debug.print("CosmicConnector.buyMarketOffer() " + param1 + "|" + (param2 ? ("Y") : ("N")) + "|" + param3 + "|" + param4);
  790. return;
  791. }// end function
  792.  
  793. public function addMarketOfferShip(param1:String, param2:Number) : void
  794. {
  795. sendString(MSG_CLIENT_MRKT_SELLSHIP, param1 + "|" + Math.round(param2));
  796. Debug.print("CosmicConnector.addMarketOfferShip() " + param1 + "|" + Math.round(param2));
  797. return;
  798. }// end function
  799.  
  800. override protected function sendRoundTripBench(event:Event) : void
  801. {
  802. if (_server.isConnected)
  803. {
  804. sendString(MSG_CLIENT_PING, "0");
  805. if (_measuredLatencyNum < 8)
  806. {
  807. super.sendRoundTripBench(event);
  808. }
  809. }
  810. else
  811. {
  812. super.sendRoundTripBench(event);
  813. }
  814. return;
  815. }// end function
  816.  
  817. private function sanitizeString(param1:String) : String
  818. {
  819. var _loc_2:Array = ["*", "|", "%"];
  820. var _loc_3:int = 0;
  821. while (_loc_3 < _loc_2.length)
  822. {
  823.  
  824. param1 = param1.split(_loc_2[_loc_3]).join("_");
  825. _loc_3++;
  826. }
  827. return param1;
  828. }// end function
  829.  
  830. public function cancelOffer(param1:String) : void
  831. {
  832. sendString(MSG_CLIENT_MRKT_CANCEL, param1);
  833. Debug.print("CosmicConnector.cancelOffer() " + param1);
  834. return;
  835. }// end function
  836.  
  837. public function sendCancelOrder(param1:String) : void
  838. {
  839. sendString(MSG_CLIENT_FLEET_CANCEL, param1);
  840. Debug.print("CosmicConnector.sendCancelOrder() " + param1);
  841. return;
  842. }// end function
  843.  
  844. public function sendHarvesterOrder(param1:String, param2:String, param3:String) : void
  845. {
  846. sendString(MSG_CLIENT_FLEET_HARVEST, param1 + "|" + param2 + "|" + param3);
  847. Debug.print("CosmicConnector.sendHarvesterOrder() " + param1 + "|" + param2 + "|" + param3);
  848. return;
  849. }// end function
  850.  
  851. public function equipShipModule(param1:String, param2:String) : void
  852. {
  853. sendString(MSG_CLIENT_EQUIP, param1 + "|" + param2);
  854. Debug.print("CosmicConnector.equipShipModule() " + param1 + "|" + param2);
  855. return;
  856. }// end function
  857.  
  858. public function unequipShipModule(param1:String, param2:String) : void
  859. {
  860. sendString(MSG_CLIENT_UNEQUIP, param1 + "|" + param2);
  861. Debug.print("CosmicConnector.unequipShipModule() " + param1 + "|" + param2);
  862. return;
  863. }// end function
  864.  
  865. public function produceBlueprint(param1:String) : void
  866. {
  867. sendString(MSG_CLIENT_BP_PRODUCE, param1);
  868. Debug.print("CosmicConnector.produceBlueprint() " + param1);
  869. return;
  870. }// end function
  871.  
  872. public function requestStructures() : void
  873. {
  874. sendString(MSG_CLIENT_BASE_STRUCTURES, "0");
  875. Debug.print("CosmicConnector.requestStructures() ");
  876. return;
  877. }// end function
  878.  
  879. public function requestRequirementForBlueprint(param1:String) : void
  880. {
  881. sendString(MSG_CLIENT_BP_REQS, param1);
  882. Debug.print("CosmicConnector.requestRequirementForBlueprint() " + param1);
  883. return;
  884. }// end function
  885.  
  886. public function requestScrapItemPreview(param1:Boolean, param2:String) : void
  887. {
  888. var _loc_3:* = (param1 ? ("S") : ("I")) + "|" + param2;
  889. sendString(MSG_CLIENT_SCRAP_PREVIEW, _loc_3);
  890. Debug.print("CosmicConnector.requestScrapPreview() " + _loc_3);
  891. return;
  892. }// end function
  893.  
  894. public function scrapItem(param1:Boolean, param2:String) : void
  895. {
  896. var _loc_3:* = (param1 ? ("S") : ("I")) + "|" + param2;
  897. sendString(MSG_CLIENT_SCRAP_DO, _loc_3);
  898. Debug.print("CosmicConnector.scrapItem() " + _loc_3);
  899. return;
  900. }// end function
  901.  
  902. public function requestTeleportList() : void
  903. {
  904. sendString(MSG_CLIENT_TELEPORT_LIST, "0");
  905. Debug.print("CosmicConnector.requestTeleportList() ");
  906. return;
  907. }// end function
  908.  
  909. public function teleportToBase(param1:String, param2:String) : void
  910. {
  911. sendString(MSG_CLIENT_TELEPORT_GO, param1 + "|" + param2);
  912. Debug.print("CosmicConnector.requestTeleportList() " + param1 + "|" + param2);
  913. return;
  914. }// end function
  915.  
  916. public function openSalvageBox(param1:String) : void
  917. {
  918. sendString(MSG_CLIENT_SALVAGEBOX, param1);
  919. Debug.print("CosmicConnector.openSalvageBox() " + param1);
  920. return;
  921. }// end function
  922.  
  923. public function requestMission(param1:String) : void
  924. {
  925. sendString(MSG_CLIENT_MISSION_REQUEST, param1);
  926. Debug.print("CosmicConnector.requestMission() " + param1);
  927. return;
  928. }// end function
  929.  
  930. public function acceptMission(param1:String, param2:Boolean) : void
  931. {
  932. var _loc_3:* = param2 ? ("1") : ("0");
  933. sendString(MSG_CLIENT_MISSION_RESPONSE, param1 + "|" + _loc_3);
  934. Debug.print("CosmicConnector.acceptMission() " + param1 + "|" + _loc_3);
  935. return;
  936. }// end function
  937.  
  938. public function requestMissionDetails(param1:String) : void
  939. {
  940. sendString(MSG_CLIENT_MISSION_DETAIL, param1);
  941. Debug.print("CosmicConnector.requestMissionDetails() " + param1);
  942. return;
  943. }// end function
  944.  
  945. public function requestMissionList() : void
  946. {
  947. sendString(MSG_CLIENT_MISSION_LIST, "0");
  948. Debug.print("CosmicConnector.requestMissionList() " + "0");
  949. return;
  950. }// end function
  951.  
  952. public function requestFactionRelations() : void
  953. {
  954. sendString(MSG_CLIENT_RELATIONS, "0");
  955. Debug.print("CosmicConnector.requestFactionRelations() " + "0");
  956. return;
  957. }// end function
  958.  
  959. public function requestAvailableColonies() : void
  960. {
  961. sendString(MSG_CLIENT_BASEOPTIONS, "0");
  962. Debug.print("CosmicConnector.requestAvailableColonies() " + "0");
  963. return;
  964. }// end function
  965.  
  966. public function joinColony(param1:String) : void
  967. {
  968. sendString(MSG_CLIENT_BUILDBASE, param1);
  969. Debug.print("CosmicConnector.joinColony() " + param1);
  970. return;
  971. }// end function
  972.  
  973. public function requestScoreBoard(param1:String, param2:String, param3:int) : void
  974. {
  975. sendString(MSG_CLIENT_REPORT_REQUEST, param1 + "|" + param2 + "|" + param3);
  976. Debug.print("CosmicConnector.requestScoreBoard() " + param1 + "|" + param2 + "|" + param3);
  977. return;
  978. }// end function
  979.  
  980. public function requestGCEchangeStatus() : void
  981. {
  982. sendString(MSG_CLIENT_GCE_STATUS, "0");
  983. Debug.print("CosmicConnector.requestGCEchangeStatus() 0");
  984. return;
  985. }// end function
  986.  
  987. public function requestMarketOverview(param1:String) : void
  988. {
  989. sendString(MSG_CLIENT_MRKT_GETOFFERS, param1);
  990. Debug.print("CosmicConnector.requestMarketOverview() " + param1);
  991. return;
  992. }// end function
  993.  
  994. public function requestMarketSubOverview(param1:String, param2:String) : void
  995. {
  996. sendString(MSG_CLIENT_MRKT_TYPEGETOFFERS, param2 + "|" + param1);
  997. Debug.print("CosmicConnector.requestMarketSubOverview() " + param2 + "|" + param1);
  998. return;
  999. }// end function
  1000.  
  1001. public function requestMarketShipOverview(param1:String) : void
  1002. {
  1003. sendString(MSG_CLIENT_MRKT_GETFACTIONS, param1);
  1004. Debug.print("CosmicConnector.requestMarketShipOverview() " + param1);
  1005. return;
  1006. }// end function
  1007.  
  1008. public function cancelGCExchangeOffer(param1:String) : void
  1009. {
  1010. sendString(MSG_CLIENT_GCE_CANCEL, param1);
  1011. Debug.print("CosmicConnector.cancelGCExchangeOffer() " + param1);
  1012. return;
  1013. }// end function
  1014.  
  1015. public function performGCTransaction(param1:String, param2:int) : void
  1016. {
  1017. sendString(MSG_CLIENT_GCE_TRANSACTION, param1 + "|" + param2);
  1018. Debug.print("CosmicConnector.performGCExchange() " + param1 + "|" + param2);
  1019. return;
  1020. }// end function
  1021.  
  1022. public function createGCExchangeOffer(param1:int, param2:int, param3:String) : void
  1023. {
  1024. sendString(MSG_CLIENT_GCE_OFFER, param3 + "|" + param1 + "|" + param2);
  1025. Debug.print("CosmicConnector.createGCExchangeOffer() " + param3 + "|" + param1 + "|" + param2);
  1026. return;
  1027. }// end function
  1028.  
  1029. public function requestSigninKey() : void
  1030. {
  1031. sendString(MSG_CLIENT_SIGNINGKEY, "0");
  1032. Debug.print("CosmicConnector.requestSigninKey()");
  1033. return;
  1034. }// end function
  1035.  
  1036. public function sendChatCommand(param1:String, param2:String, param3:String) : void
  1037. {
  1038. sendString(MSG_CLIENT_CHAT_SENDCOMMAND, param1 + "|" + param2 + "|" + param3);
  1039. Debug.print("CosmicConnector.sendChatCommand() " + param1 + "|" + param2 + "|" + param3);
  1040. return;
  1041. }// end function
  1042.  
  1043. public function changePassword(param1:String, param2:String) : void
  1044. {
  1045. sendString(MSG_CLIENT_SETTING_SETPASSWORD, param1 + "|" + param2);
  1046. Debug.print("CosmicConnector.changePassoword() " + "****");
  1047. return;
  1048. }// end function
  1049.  
  1050. public function requestEmail() : void
  1051. {
  1052. sendString(MSG_CLIENT_SETTING_GETEMAIL, "0");
  1053. Debug.print("CosmicConnector.requestEmail() ");
  1054. return;
  1055. }// end function
  1056.  
  1057. public function changeEmail(param1:String) : void
  1058. {
  1059. sendString(MSG_CLIENT_SETTING_SETEMAIL, param1);
  1060. Debug.print("CosmicConnector.changeEmail() ");
  1061. return;
  1062. }// end function
  1063.  
  1064. public function changeAvatar(param1:String) : void
  1065. {
  1066. sendString(MSG_CLIENT_SETTING_SETAVATAR, param1);
  1067. Debug.print("CosmicConnector.changeAvatar() ");
  1068. return;
  1069. }// end function
  1070.  
  1071. public function requestGCUpdate() : void
  1072. {
  1073. sendString(MSG_CLIENT_GCUPDATE, "0");
  1074. Debug.print("CosmicConnector.requestGCUpdate() ");
  1075. return;
  1076. }// end function
  1077.  
  1078. public function launchToColony(param1:String) : void
  1079. {
  1080. sendString(MSG_CLIENT_LAUNCH_TO_COLONY, param1);
  1081. Debug.print("CosmicConnector.launchToColony() ");
  1082. return;
  1083. }// end function
  1084.  
  1085. public static function getInstance() : CosmicConnector
  1086. {
  1087. return _this;
  1088. }// end function
  1089.  
  1090. }
  1091. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement