Advertisement
Guest User

Untitled

a guest
Mar 28th, 2013
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 56.52 KB | None | 0 0
  1. // Generated by FOnline Intellisense Creator for MSVC.
  2. // Manual changes in this file will be lost if the program is run again.
  3.  
  4. // Used file:
  5. // ASCompiler.exe
  6.  
  7. #define in
  8. #define inout
  9. #define out
  10.  
  11. // Type definitions
  12. typedef unsigned long long uint64;
  13. typedef unsigned int uint;
  14. typedef unsigned short uint16;
  15. typedef unsigned char uint8;
  16. typedef long long int64;
  17. typedef short int int16;
  18. typedef signed char int8;
  19. typedef void* unknown; // for anonymous types
  20.  
  21. // Forward declarations of global types
  22. template <typename T> class array;
  23. class string;
  24. class any;
  25. class dictionary;
  26. class file;
  27. class DataRef;
  28. class DataVal;
  29. class ProtoItem;
  30. class GameVar;
  31. class NpcPlane;
  32. class Item;
  33. class Scenery;
  34. class Critter;
  35. class Map;
  36. class Location;
  37. class Synchronizer;
  38. class CraftItem;
  39.  
  40. // Global properties
  41. uint16 __Year;
  42. uint16 __Month;
  43. uint16 __Day;
  44. uint16 __Hour;
  45. uint16 __Minute;
  46. uint16 __Second;
  47. uint16 __TimeMultiplier;
  48. uint __FullSecond;
  49. bool __DisableTcpNagle;
  50. bool __DisableZlibCompression;
  51. uint __FloodSize;
  52. bool __NoAnswerShuffle;
  53. bool __DialogDemandRecheck;
  54. uint __FixBoyDefaultExperience;
  55. uint __SneakDivider;
  56. uint __LevelCap;
  57. bool __LevelCapAddExperience;
  58. uint __LookNormal;
  59. uint __LookMinimum;
  60. uint __GlobalMapMaxGroupCount;
  61. uint __CritterIdleTick;
  62. uint __TurnBasedTick;
  63. int __DeadHitPoints;
  64. uint __Breaktime;
  65. uint __TimeoutTransfer;
  66. uint __TimeoutBattle;
  67. uint __ApRegeneration;
  68. uint __RtApCostCritterWalk;
  69. uint __RtApCostCritterRun;
  70. uint __RtApCostMoveItemContainer;
  71. uint __RtApCostMoveItemInventory;
  72. uint __RtApCostPickItem;
  73. uint __RtApCostDropItem;
  74. uint __RtApCostReloadWeapon;
  75. uint __RtApCostPickCritter;
  76. uint __RtApCostUseItem;
  77. uint __RtApCostUseSkill;
  78. bool __RtAlwaysRun;
  79. uint __TbApCostCritterMove;
  80. uint __TbApCostMoveItemContainer;
  81. uint __TbApCostMoveItemInventory;
  82. uint __TbApCostPickItem;
  83. uint __TbApCostDropItem;
  84. uint __TbApCostReloadWeapon;
  85. uint __TbApCostPickCritter;
  86. uint __TbApCostUseItem;
  87. uint __TbApCostUseSkill;
  88. uint __ApCostAimEyes;
  89. uint __ApCostAimHead;
  90. uint __ApCostAimGroin;
  91. uint __ApCostAimTorso;
  92. uint __ApCostAimArms;
  93. uint __ApCostAimLegs;
  94. bool __TbAlwaysRun;
  95. bool __RunOnCombat;
  96. bool __RunOnTransfer;
  97. uint __GlobalMapWidth;
  98. uint __GlobalMapHeight;
  99. uint __GlobalMapZoneLength;
  100. uint __GlobalMapMoveTime;
  101. uint __BagRefreshTime;
  102. uint __AttackAnimationsMinDist;
  103. uint __WisperDist;
  104. uint __ShoutDist;
  105. int __LookChecks;
  106. uint __LookDir0;
  107. uint __LookDir1;
  108. uint __LookDir2;
  109. uint __LookDir3;
  110. uint __LookDir4;
  111. uint __LookSneakDir0;
  112. uint __LookSneakDir1;
  113. uint __LookSneakDir2;
  114. uint __LookSneakDir3;
  115. uint __LookSneakDir4;
  116. uint __LookWeight;
  117. bool __CustomItemCost;
  118. uint __RegistrationTimeout;
  119. uint __AccountPlayTime;
  120. bool __LoggingVars;
  121. uint __ScriptRunSuspendTimeout;
  122. uint __ScriptRunMessageTimeout;
  123. uint __TalkDistance;
  124. uint __NpcMaxTalkers;
  125. uint __MinNameLength;
  126. uint __MaxNameLength;
  127. uint __DlgTalkMinTime;
  128. uint __DlgBarterMinTime;
  129. uint __MinimumOfflineTime;
  130. int __StartSpecialPoints;
  131. int __StartTagSkillPoints;
  132. int __SkillMaxValue;
  133. int __SkillModAdd2;
  134. int __SkillModAdd3;
  135. int __SkillModAdd4;
  136. int __SkillModAdd5;
  137. int __SkillModAdd6;
  138. bool __AbsoluteOffsets;
  139. uint __SkillBegin;
  140. uint __SkillEnd;
  141. uint __TimeoutBegin;
  142. uint __TimeoutEnd;
  143. uint __KillBegin;
  144. uint __KillEnd;
  145. uint __PerkBegin;
  146. uint __PerkEnd;
  147. uint __AddictionBegin;
  148. uint __AddictionEnd;
  149. uint __KarmaBegin;
  150. uint __KarmaEnd;
  151. uint __DamageBegin;
  152. uint __DamageEnd;
  153. uint __TraitBegin;
  154. uint __TraitEnd;
  155. uint __ReputationBegin;
  156. uint __ReputationEnd;
  157. int __ReputationLoved;
  158. int __ReputationLiked;
  159. int __ReputationAccepted;
  160. int __ReputationNeutral;
  161. int __ReputationAntipathy;
  162. int __ReputationHated;
  163. bool __MapHexagonal;
  164. int __MapHexWidth;
  165. int __MapHexHeight;
  166. int __MapHexLineHeight;
  167. int __MapTileOffsX;
  168. int __MapTileOffsY;
  169. int __MapRoofOffsX;
  170. int __MapRoofOffsY;
  171. int __MapRoofSkipSize;
  172. float __MapCameraAngle;
  173. bool __MapSmoothPath;
  174. string __MapDataPrefix;
  175. int __GeometryType;
  176. uint __HitAimEyes;
  177. uint __HitAimHead;
  178. uint __HitAimGroin;
  179. uint __HitAimTorso;
  180. uint __HitAimArms;
  181. uint __HitAimLegs;
  182. uint __EncounterTime;
  183.  
  184. // Registered types declarations
  185. template <typename T> class array
  186. {
  187. T& opIndex(uint);
  188. T& operator [](uint); // created from the previous
  189. const T& opIndex(uint) const;
  190. const T& operator [](uint) const; // created from the previous
  191. array<T> & opAssign(const array<T> &in);
  192. array<T> & operator =(const array<T> &in); // created from the previous
  193. void insertAt(uint, const T&in);
  194. void removeAt(uint);
  195. void insertFirst(const T&in);
  196. void removeFirst();
  197. void insertLast(const T&in);
  198. void removeLast();
  199. uint length() const;
  200. void reserve(uint);
  201. void resize(uint);
  202. void grow(uint);
  203. void reduce(uint);
  204. void sortAsc();
  205. void sortAsc(uint, uint);
  206. void sortDesc();
  207. void sortDesc(uint, uint);
  208. void reverse();
  209. int find(const T&in) const;
  210. int find(uint, const T&in) const;
  211. bool opEquals(const array<T> &in) const;
  212. bool operator ==(const array<T> &in) const; // created from the previous
  213. bool isEmpty() const;
  214. T& first();
  215. const T& first() const;
  216. T& last();
  217. const T& last() const;
  218. uint get_length() const;
  219. void set_length(uint);
  220. };
  221.  
  222. class string
  223. {
  224. string& opAssign(const string&in);
  225. string& operator =(const string&in); // created from the previous
  226. string& opAddAssign(const string&in);
  227. string& operator +=(const string&in); // created from the previous
  228. bool opEquals(const string&in) const;
  229. bool operator ==(const string&in) const; // created from the previous
  230. int opCmp(const string&in) const;
  231. int operator <(const string&in) const; // created from the previous
  232. string@ opAdd(const string&in) const;
  233. string@ operator +(const string&in) const; // created from the previous
  234. uint8& opIndex(uint);
  235. uint8& operator [](uint); // created from the previous
  236. const uint8& opIndex(uint) const;
  237. const uint8& operator [](uint) const; // created from the previous
  238. uint length() const;
  239. void resize(uint);
  240. string& opAssign(double);
  241. string& operator =(double); // created from the previous
  242. string& opAddAssign(double);
  243. string& operator +=(double); // created from the previous
  244. string@ opAdd(double) const;
  245. string@ operator +(double) const; // created from the previous
  246. string@ opAdd_r(double) const;
  247. string& opAssign(float);
  248. string& operator =(float); // created from the previous
  249. string& opAddAssign(float);
  250. string& operator +=(float); // created from the previous
  251. string@ opAdd(float) const;
  252. string@ operator +(float) const; // created from the previous
  253. string@ opAdd_r(float) const;
  254. string& opAssign(int);
  255. string& operator =(int); // created from the previous
  256. string& opAddAssign(int);
  257. string& operator +=(int); // created from the previous
  258. string@ opAdd(int) const;
  259. string@ operator +(int) const; // created from the previous
  260. string@ opAdd_r(int) const;
  261. string& opAssign(uint);
  262. string& operator =(uint); // created from the previous
  263. string& opAddAssign(uint);
  264. string& operator +=(uint); // created from the previous
  265. string@ opAdd(uint) const;
  266. string@ operator +(uint) const; // created from the previous
  267. string@ opAdd_r(uint) const;
  268. string& opAssign(bool);
  269. string& operator =(bool); // created from the previous
  270. string& opAddAssign(bool);
  271. string& operator +=(bool); // created from the previous
  272. string@ opAdd(bool) const;
  273. string@ operator +(bool) const; // created from the previous
  274. string@ opAdd_r(bool) const;
  275. };
  276.  
  277. class any
  278. {
  279. any& opAssign(any&in);
  280. any& operator =(any&in); // created from the previous
  281. void store(unknown&in);
  282. void store(int64&in);
  283. void store(double&in);
  284. bool retrieve(unknown&out);
  285. bool retrieve(int64&out);
  286. bool retrieve(double&out);
  287. };
  288.  
  289. class dictionary
  290. {
  291. dictionary& opAssign(const dictionary&in);
  292. dictionary& operator =(const dictionary&in); // created from the previous
  293. void set(const string&in, unknown&in);
  294. bool get(const string&in, unknown&out) const;
  295. void set(const string&in, int64&in);
  296. bool get(const string&in, int64&out) const;
  297. void set(const string&in, double&in);
  298. bool get(const string&in, double&out) const;
  299. bool exists(const string&in) const;
  300. bool isEmpty() const;
  301. uint getSize() const;
  302. void delete(const string&in);
  303. void deleteAll();
  304. uint keys(array<string@> @) const;
  305. };
  306.  
  307. class file
  308. {
  309. bool mostSignificantByteFirst;
  310. int open(const string&in, const string&in);
  311. int close();
  312. int getSize() const;
  313. bool isEndOfFile() const;
  314. int readString(uint, string&out);
  315. int readLine(string&out);
  316. int64 readInt(uint);
  317. uint64 readUInt(uint);
  318. float readFloat();
  319. double readDouble();
  320. int writeString(const string&in);
  321. int writeInt(int64, uint);
  322. int writeUInt(uint64, uint);
  323. int writeFloat(float);
  324. int writeDouble(double);
  325. int getPos() const;
  326. int setPos(int);
  327. int movePos(int);
  328. string@ readWord();
  329. int readNumber();
  330. uint8 readUint8();
  331. uint16 readUint16();
  332. uint readUint32();
  333. uint64 readUint64();
  334. uint readData(uint count, array<uint8> &inout data); // Arguments for this function have been guessed
  335. bool writeUint8(uint8 data); // Arguments for this function have been guessed
  336. bool writeUint16(uint16 data); // Arguments for this function have been guessed
  337. bool writeUint32(uint);
  338. bool writeUint64(uint64 data); // Arguments for this function have been guessed
  339. bool writeData(array<uint8> &inout data, uint count); // Arguments for this function have been guessed
  340. };
  341.  
  342. class DataRef
  343. {
  344. const int& opIndex(uint) const;
  345. const int& operator [](uint) const; // created from the previous
  346. int& opIndex(uint);
  347. int& operator [](uint); // created from the previous
  348. };
  349.  
  350. class DataVal
  351. {
  352. const int opIndex(uint) const;
  353. const int operator [](uint) const; // created from the previous
  354. };
  355.  
  356. class ProtoItem
  357. {
  358. const uint16 ProtoId;
  359. const int Type;
  360. const uint PicMap;
  361. const uint PicInv;
  362. const uint Flags;
  363. const bool Stackable;
  364. const bool Deteriorable;
  365. const bool GroundLevel;
  366. const int Corner;
  367. const int Dir;
  368. const uint8 Slot;
  369. const uint Weight;
  370. const uint Volume;
  371. const uint Cost;
  372. const uint StartCount;
  373. const uint8 SoundId;
  374. const uint8 Material;
  375. const uint8 LightFlags;
  376. const uint8 LightDistance;
  377. const int8 LightIntensity;
  378. const uint LightColor;
  379. const bool DisableEgg;
  380. const uint16 AnimWaitBase;
  381. const uint16 AnimWaitRndMin;
  382. const uint16 AnimWaitRndMax;
  383. const uint8 AnimStay_0;
  384. const uint8 AnimStay_1;
  385. const uint8 AnimShow_0;
  386. const uint8 AnimShow_1;
  387. const uint8 AnimHide_0;
  388. const uint8 AnimHide_1;
  389. const int16 OffsetX;
  390. const int16 OffsetY;
  391. const uint8 SpriteCut;
  392. const int8 DrawOrderOffsetHexY;
  393. const uint16 RadioChannel;
  394. const uint16 RadioFlags;
  395. const uint8 RadioBroadcastSend;
  396. const uint8 RadioBroadcastRecv;
  397. const uint8 IndicatorStart;
  398. const uint8 IndicatorMax;
  399. const uint HolodiskNum;
  400. const int StartValue_0;
  401. const int StartValue_1;
  402. const int StartValue_2;
  403. const int StartValue_3;
  404. const int StartValue_4;
  405. const int StartValue_5;
  406. const int StartValue_6;
  407. const int StartValue_7;
  408. const int StartValue_8;
  409. const int StartValue_9;
  410. const uint8 BlockLines;
  411. const uint16 ChildPid_0;
  412. const uint16 ChildPid_1;
  413. const uint16 ChildPid_2;
  414. const uint16 ChildPid_3;
  415. const uint16 ChildPid_4;
  416. const uint8 ChildLines_0;
  417. const uint8 ChildLines_1;
  418. const uint8 ChildLines_2;
  419. const uint8 ChildLines_3;
  420. const uint8 ChildLines_4;
  421. const bool Weapon_IsUnarmed;
  422. const int Weapon_UnarmedTree;
  423. const int Weapon_UnarmedPriority;
  424. const int Weapon_UnarmedMinAgility;
  425. const int Weapon_UnarmedMinUnarmed;
  426. const int Weapon_UnarmedMinLevel;
  427. const uint Weapon_Anim1;
  428. const uint Weapon_MaxAmmoCount;
  429. const int Weapon_Caliber;
  430. const uint16 Weapon_DefaultAmmoPid;
  431. const int Weapon_MinStrength;
  432. const int Weapon_Perk;
  433. const uint Weapon_ActiveUses;
  434. const int Weapon_Skill_0;
  435. const int Weapon_Skill_1;
  436. const int Weapon_Skill_2;
  437. const uint Weapon_PicUse_0;
  438. const uint Weapon_PicUse_1;
  439. const uint Weapon_PicUse_2;
  440. const uint Weapon_MaxDist_0;
  441. const uint Weapon_MaxDist_1;
  442. const uint Weapon_MaxDist_2;
  443. const uint Weapon_Round_0;
  444. const uint Weapon_Round_1;
  445. const uint Weapon_Round_2;
  446. const uint Weapon_ApCost_0;
  447. const uint Weapon_ApCost_1;
  448. const uint Weapon_ApCost_2;
  449. const bool Weapon_Aim_0;
  450. const bool Weapon_Aim_1;
  451. const bool Weapon_Aim_2;
  452. const uint8 Weapon_SoundId_0;
  453. const uint8 Weapon_SoundId_1;
  454. const uint8 Weapon_SoundId_2;
  455. const int Ammo_Caliber;
  456. const bool Door_NoBlockMove;
  457. const bool Door_NoBlockShoot;
  458. const bool Door_NoBlockLight;
  459. const uint Container_Volume;
  460. const bool Container_Changeble;
  461. const bool Container_CannotPickUp;
  462. const bool Container_MagicHandsGrnd;
  463. const uint16 Locker_Condition;
  464. const int Grid_Type;
  465. const uint Car_Speed;
  466. const uint Car_Passability;
  467. const uint Car_DeteriorationRate;
  468. const uint Car_CrittersCapacity;
  469. const uint Car_TankVolume;
  470. const uint Car_MaxDeterioration;
  471. const uint Car_FuelConsumption;
  472. const uint Car_Entrance;
  473. const uint Car_MovementType;
  474. const int RevealSneakers;
  475. const int NeedBlueprint;
  476. const int8 CraftLevel;
  477. const uint16 Misc_ChargeStart;
  478. const uint16 Misc_ChargeMax;
  479. const uint16 Misc_ToolSkillNum;
  480. const int Misc_ToolSkillBonus;
  481. const uint Armor_CrTypeMale;
  482. const uint Armor_CrTypeFemale;
  483. const int Armor_AC;
  484. const uint Armor_Perk;
  485. const int Armor_DRNormal;
  486. const int Armor_DRLaser;
  487. const int Armor_DRFire;
  488. const int Armor_DRPlasma;
  489. const int Armor_DRElectr;
  490. const int Armor_DREmp;
  491. const int Armor_DRExplode;
  492. const int Armor_DTNormal;
  493. const int Armor_DTLaser;
  494. const int Armor_DTFire;
  495. const int Armor_DTPlasma;
  496. const int Armor_DTElectr;
  497. const int Armor_DTEmp;
  498. const int Armor_DTExplode;
  499. const uint Armor_CrTypeMale2;
  500. const uint Armor_CrTypeMale3;
  501. const uint Armor_CrTypeMale4;
  502. const uint Armor_CrTypeFemale2;
  503. const uint Armor_CrTypeFemale3;
  504. const uint Armor_CrTypeFemale4;
  505. const int8 Armor_CMCritChance;
  506. const int8 Armor_CMCritPower;
  507. const int Weapon_DmgType_0;
  508. const int Weapon_DmgType_1;
  509. const int Weapon_DmgType_2;
  510. const uint Weapon_Anim2_0;
  511. const uint Weapon_Anim2_1;
  512. const uint Weapon_Anim2_2;
  513. const int Weapon_DmgMin_0;
  514. const int Weapon_DmgMin_1;
  515. const int Weapon_DmgMin_2;
  516. const int Weapon_DmgMax_0;
  517. const int Weapon_DmgMax_1;
  518. const int Weapon_DmgMax_2;
  519. const uint16 Weapon_Effect_0;
  520. const uint16 Weapon_Effect_1;
  521. const uint16 Weapon_Effect_2;
  522. const bool Weapon_Remove_0;
  523. const bool Weapon_Remove_1;
  524. const bool Weapon_Remove_2;
  525. const uint Weapon_ReloadAp;
  526. const int Weapon_UnarmedCriticalBonus;
  527. const uint Weapon_CriticalFailture;
  528. const bool Weapon_UnarmedArmorPiercing;
  529. const bool Weapon_NoRunning;
  530. const int Ammo_AcMod;
  531. const int Ammo_DrMod;
  532. const uint Ammo_DmgMult;
  533. const uint Ammo_DmgDiv;
  534. const uint8 Ammo_DTDiv;
  535. const int16 Blueprint_Param;
  536. const uint8 Blueprint_Id;
  537. const uint8 Blueprint_Level;
  538. const int8 Blueprint_Type;
  539. const uint8 Ingredient_Type_1;
  540. const uint16 Ingredient_Returns_1;
  541. const uint8 Ingredient_Type_2;
  542. const uint16 Ingredient_Returns_2;
  543. const uint8 Ingredient_Type_3;
  544. const uint16 Ingredient_Returns_3;
  545. string@ GetScriptName() const;
  546. };
  547.  
  548. class GameVar
  549. {
  550. int GetValue() const;
  551. int GetMin() const;
  552. int GetMax() const;
  553. bool IsQuest() const;
  554. uint GetQuestStr() const;
  555. GameVar& opAddAssign(const int);
  556. GameVar& operator +=(const int); // created from the previous
  557. GameVar& opSubAssign(const int);
  558. GameVar& operator -=(const int); // created from the previous
  559. GameVar& opMulAssign(const int);
  560. GameVar& operator *=(const int); // created from the previous
  561. GameVar& opDivAssign(const int);
  562. GameVar& operator /=(const int); // created from the previous
  563. GameVar& opAssign(const int);
  564. GameVar& operator =(const int); // created from the previous
  565. GameVar& opAddAssign(const GameVar&inout);
  566. GameVar& operator +=(const GameVar&inout); // created from the previous
  567. GameVar& opSubAssign(const GameVar&inout);
  568. GameVar& operator -=(const GameVar&inout); // created from the previous
  569. GameVar& opMulAssign(const GameVar&inout);
  570. GameVar& operator *=(const GameVar&inout); // created from the previous
  571. GameVar& opDivAssign(const GameVar&inout);
  572. GameVar& operator /=(const GameVar&inout); // created from the previous
  573. GameVar& opAssign(const GameVar&inout);
  574. GameVar& operator =(const GameVar&inout); // created from the previous
  575. int opAdd(const int);
  576. int operator +(const int); // created from the previous
  577. int opSub(const int);
  578. int operator -(const int); // created from the previous
  579. int opMul(const int);
  580. int operator *(const int); // created from the previous
  581. int opDiv(const int);
  582. int operator /(const int); // created from the previous
  583. int opAdd(const GameVar&inout);
  584. int operator +(const GameVar&inout); // created from the previous
  585. int opSub(const GameVar&inout);
  586. int operator -(const GameVar&inout); // created from the previous
  587. int opMul(const GameVar&inout);
  588. int operator *(const GameVar&inout); // created from the previous
  589. int opDiv(const GameVar&inout);
  590. int operator /(const GameVar&inout); // created from the previous
  591. bool opEquals(const int);
  592. bool operator ==(const int); // created from the previous
  593. int opCmp(const int);
  594. int operator <(const int); // created from the previous
  595. bool opEquals(const GameVar&inout);
  596. bool operator ==(const GameVar&inout); // created from the previous
  597. int opCmp(const GameVar&inout);
  598. int operator <(const GameVar&inout); // created from the previous
  599. };
  600.  
  601. class NpcPlane
  602. {
  603. int Type;
  604. uint Priority;
  605. int Identifier;
  606. uint IdentifierExt;
  607. bool Run;
  608. uint Misc_WaitSecond;
  609. int Misc_ScriptId;
  610. uint Attack_TargId;
  611. int Attack_MinHp;
  612. bool Attack_IsGag;
  613. uint16 Attack_GagHexX;
  614. uint16 Attack_GagHexY;
  615. uint16 Attack_LastHexX;
  616. uint16 Attack_LastHexY;
  617. uint16 Walk_HexX;
  618. uint16 Walk_HexY;
  619. uint8 Walk_Dir;
  620. uint Walk_Cut;
  621. uint16 Pick_HexX;
  622. uint16 Pick_HexY;
  623. uint16 Pick_Pid;
  624. uint Pick_UseItemId;
  625. bool Pick_ToOpen;
  626. NpcPlane@ GetCopy() const;
  627. NpcPlane@ SetChild(NpcPlane&inout child); // Arguments for this function have been guessed
  628. NpcPlane@ GetChild(uint index) const; // Arguments for this function have been guessed
  629. bool Misc_SetScript(string&inout funcName); // Arguments for this function have been guessed
  630. };
  631.  
  632. class Item
  633. {
  634. const uint Id;
  635. const ProtoItem@ Proto;
  636. const uint8 Accessory;
  637. const uint MapId;
  638. const uint16 HexX;
  639. const uint16 HexY;
  640. const uint CritId;
  641. const uint8 CritSlot;
  642. const uint ContainerId;
  643. const uint StackId;
  644. const bool IsNotValid;
  645. const uint8 Mode;
  646. uint16 SortValue;
  647. uint8 Info;
  648. uint PicMap;
  649. uint PicInv;
  650. uint16 AnimWaitBase;
  651. uint8 AnimStayBegin;
  652. uint8 AnimStayEnd;
  653. uint8 AnimShowBegin;
  654. uint8 AnimShowEnd;
  655. uint8 AnimHideBegin;
  656. uint8 AnimHideEnd;
  657. uint Cost;
  658. int Val0;
  659. int Val1;
  660. int Val2;
  661. int Val3;
  662. int Val4;
  663. int Val5;
  664. int Val6;
  665. int Val7;
  666. int Val8;
  667. int Val9;
  668. int8 LightIntensity;
  669. uint8 LightDistance;
  670. uint8 LightFlags;
  671. uint LightColor;
  672. uint8 Indicator;
  673. uint8 BrokenFlags;
  674. uint8 BrokenCount;
  675. uint16 Deterioration;
  676. uint16 AmmoPid;
  677. uint16 AmmoCount;
  678. uint LockerId;
  679. uint16 LockerCondition;
  680. uint16 LockerComplexity;
  681. uint16 Charge;
  682. uint16 RadioChannel;
  683. uint16 RadioFlags;
  684. uint8 RadioBroadcastSend;
  685. uint8 RadioBroadcastRecv;
  686. uint HolodiskNumber;
  687. int16 OffsetX;
  688. int16 OffsetY;
  689. int16 Dir;
  690. bool IsStackable() const;
  691. bool IsDeteriorable() const;
  692. bool SetScript(string@ script); // Arguments for this function have been guessed
  693. uint GetScriptId() const;
  694. bool SetEvent(int eventType, string@ funcName); // Arguments for this function have been guessed
  695. uint8 GetType() const;
  696. uint16 GetProtoId() const;
  697. uint GetCount() const;
  698. void SetCount(uint count); // Arguments for this function have been guessed
  699. uint GetCost() const;
  700. Item@ AddItem(uint16 protoId, uint count, uint specialId); // Arguments for this function have been guessed
  701. Item@ GetItem(uint16 protoId, uint specialId) const; // Arguments for this function have been guessed
  702. uint GetItems(uint specialId, array<Item@> @ items) const; // Arguments for this function have been guessed
  703. Map@ GetMapPosition(uint16&inout hexX, uint16&inout hexY) const; // Arguments for this function have been guessed
  704. bool ChangeProto(uint16 protoId) const; // Arguments for this function have been guessed
  705. void Update() const;
  706. void Animate(uint8 fromFrame, uint8 toFrame); // Arguments for this function have been guessed
  707. void SetLexems(string@ lexems); // Arguments for this function have been guessed
  708. Item@ GetChild(uint childIndex) const; // Arguments for this function have been guessed
  709. void EventFinish(bool deleted); // Arguments for this function have been guessed
  710. bool EventAttack(Critter&inout attacker, Critter&inout target); // Arguments for this function have been guessed
  711. bool EventUse(Critter&inout cr, Critter@ onCritter, Item@ onItem, Scenery@ onScenery); // Arguments for this function have been guessed
  712. bool EventUseOnMe(Critter&inout cr, Item@ usedItem); // Arguments for this function have been guessed
  713. bool EventSkill(Critter&inout cr, int skill); // Arguments for this function have been guessed
  714. void EventDrop(Critter&inout cr); // Arguments for this function have been guessed
  715. void EventMove(Critter&inout cr, uint8 fromSlot); // Arguments for this function have been guessed
  716. void EventWalk(Critter&inout cr, bool entered, uint8 dir); // Arguments for this function have been guessed
  717. void set_Flags(uint value); // Arguments for this function have been guessed
  718. uint get_Flags() const;
  719. void set_TrapValue(int16 val); // Arguments for this function have been guessed
  720. int16 get_TrapValue() const;
  721. bool LockerOpen();
  722. bool LockerClose();
  723. bool Weapon_IsHtHAttack(uint8);
  724. bool Weapon_IsGunAttack(uint8);
  725. bool Weapon_IsRangedAttack(uint8);
  726. };
  727.  
  728. class Scenery
  729. {
  730. const uint16 ProtoId;
  731. const uint16 HexX;
  732. const uint16 HexY;
  733. bool CallSceneryFunction(Critter&inout cr, int skill, Item@ item); // Arguments for this function have been guessed
  734. };
  735.  
  736. class Critter
  737. {
  738. const uint Id;
  739. const uint CrType;
  740. const uint16 HexX;
  741. const uint16 HexY;
  742. const uint16 WorldX;
  743. const uint16 WorldY;
  744. const uint8 Dir;
  745. const uint8 Cond;
  746. const uint Anim1Life;
  747. const uint Anim1Knockout;
  748. const uint Anim1Dead;
  749. const uint Anim2Life;
  750. const uint Anim2Knockout;
  751. const uint Anim2Dead;
  752. const uint Flags;
  753. const string Name;
  754. uint ShowCritterDist1;
  755. uint ShowCritterDist2;
  756. uint ShowCritterDist3;
  757. bool IsRuning;
  758. const bool IsNotValid;
  759. const int Ref;
  760. DataVal Param;
  761. DataRef ParamBase;
  762. DataVal Stat;
  763. DataRef StatBase;
  764. DataVal Skill;
  765. DataRef SkillBase;
  766. DataVal TagSkill;
  767. DataRef TagSkillBase;
  768. DataVal Timeout;
  769. DataRef TimeoutBase;
  770. DataVal Kill;
  771. DataRef KillBase;
  772. DataVal Perk;
  773. DataRef PerkBase;
  774. DataVal Addiction;
  775. DataRef AddictionBase;
  776. DataVal Karma;
  777. DataRef KarmaBase;
  778. DataVal Damage;
  779. DataRef DamageBase;
  780. DataVal Mode;
  781. DataRef ModeBase;
  782. DataVal Trait;
  783. DataRef TraitBase;
  784. DataVal Profession;
  785. DataRef ProfessionBase;
  786. DataVal Achievement;
  787. DataRef AchievementBase;
  788. DataVal Reputation;
  789. DataRef ReputationBase;
  790. DataVal GoodEvilList;
  791. DataRef GoodEvilListBase;
  792. DataVal Followers;
  793. DataRef FollowersBase;
  794. DataVal FollowerVar;
  795. DataRef FollowerVarBase;
  796. uint GlobalMapMoveCounter;
  797. uint UsedToolItemId;
  798. const uint EventExtReservedMapIn;
  799. const uint EventExtReservedMapOut;
  800. const uint EventExtReservedId2;
  801. const uint EventExtReservedId3;
  802. const uint EventExtReservedId4;
  803. const uint EventExtReservedId5;
  804. const uint EventExtReservedId6;
  805. uint SpawnedBy;
  806. uint DisguisedBy;
  807. uint LastSpawnedItem;
  808. uint LastSpawnedCritter;
  809. uint LastSpawnedLocation;
  810. uint Reserved;
  811. bool IsPlayer() const;
  812. bool IsNpc() const;
  813. bool IsCanWalk() const;
  814. bool IsCanRun() const;
  815. bool IsCanRotate() const;
  816. bool IsCanAim() const;
  817. bool IsAnim1(uint index) const; // Arguments for this function have been guessed
  818. int GetAccess() const;
  819. bool SetEvent(int, string@);
  820. void SetLexems(string@);
  821. Map@ GetMap() const;
  822. uint GetMapId() const;
  823. uint16 GetMapProtoId() const;
  824. void SetHomePos(uint16 hexX, uint16 hexY, uint8 dir); // Arguments for this function have been guessed
  825. void GetHomePos(uint&inout mapId, uint16&inout hexX, uint16&inout hexY, uint8&inout dir); // Arguments for this function have been guessed
  826. bool ChangeCrType(uint newType); // Arguments for this function have been guessed
  827. void DropTimers();
  828. bool MoveRandom();
  829. bool MoveToDir(uint8 dir); // Arguments for this function have been guessed
  830. bool TransitToHex(uint16 hexX, uint16 hexY, uint8 dir); // Arguments for this function have been guessed
  831. bool TransitToMap(uint, uint16, uint16, uint8, bool arg4 = false);
  832. bool TransitToMap(uint, int, bool arg2 = false);
  833. bool TransitToGlobal(bool requestGroup); // Arguments for this function have been guessed
  834. bool TransitToGlobal(array<Critter@> &inout group); // Arguments for this function have been guessed
  835. bool TransitToGlobalGroup(uint critterId); // Arguments for this function have been guessed
  836. void AddScore(uint score, int val); // Arguments for this function have been guessed
  837. int GetScore(uint score); // Arguments for this function have been guessed
  838. void AddHolodiskInfo(uint holodiskNum); // Arguments for this function have been guessed
  839. void EraseHolodiskInfo(uint holodiskNum); // Arguments for this function have been guessed
  840. bool IsHolodiskInfo(uint holodiskNum) const; // Arguments for this function have been guessed
  841. bool IsLife() const;
  842. bool IsKnockout() const;
  843. bool IsDead() const;
  844. bool IsFree() const;
  845. bool IsBusy() const;
  846. void Wait(uint ms); // Arguments for this function have been guessed
  847. void ToDead(uint anim2, Critter@ killer); // Arguments for this function have been guessed
  848. bool ToLife();
  849. bool ToKnockout(uint anim2begin, uint anim2idle, uint anim2end, uint lostAp, uint16 knockHx, uint16 knockHy); // Arguments for this function have been guessed
  850. void RefreshVisible();
  851. void ViewMap(Map&inout map, uint look, uint16 hx, uint16 hy, uint8 dir); // Arguments for this function have been guessed
  852. Item@ AddItem(uint16 protoId, uint count); // Arguments for this function have been guessed
  853. bool DeleteItem(uint16 protoId, uint count); // Arguments for this function have been guessed
  854. uint ItemsCount() const;
  855. uint ItemsWeight() const;
  856. uint ItemsVolume() const;
  857. uint CountItem(uint16 protoId) const; // Arguments for this function have been guessed
  858. Item@ GetItem(uint16 protoId, int slot) const; // Arguments for this function have been guessed
  859. Item@ GetItemById(uint itemId) const; // Arguments for this function have been guessed
  860. uint GetItems(int slot, array<Item@> @ items) const; // Arguments for this function have been guessed
  861. uint GetItemsByType(int type, array<Item@> @ items) const; // Arguments for this function have been guessed
  862. ProtoItem@ GetSlotProto(int slot, uint8&inout mode) const; // Arguments for this function have been guessed
  863. bool MoveItem(uint itemId, uint count, uint8 toSlot); // Arguments for this function have been guessed
  864. bool PickItem(uint16 hexX, uint16 hexY, uint16 protoId); // Arguments for this function have been guessed
  865. void SetFavoriteItem(int slot, uint16 pid); // Arguments for this function have been guessed
  866. uint16 GetFavoriteItem(int slot); // Arguments for this function have been guessed
  867. uint GetCritters(bool lookOnMe, int findType, array<Critter@> @ critters) const; // Arguments for this function have been guessed
  868. uint GetFollowGroup(int findType, array<Critter@> @ critters) const; // Arguments for this function have been guessed
  869. Critter@ GetFollowLeader() const;
  870. array<Critter@> @ GetGlobalGroup() const;
  871. bool IsGlobalGroupLeader();
  872. void LeaveGlobalGroup();
  873. void GiveGlobalGroupLead(Critter&inout toCr); // Arguments for this function have been guessed
  874. uint GetTalkedPlayers(array<Critter@> @ players) const; // Arguments for this function have been guessed
  875. bool IsSee(Critter&inout cr) const; // Arguments for this function have been guessed
  876. bool IsSeenBy(Critter&inout cr) const; // Arguments for this function have been guessed
  877. bool IsSee(Item&inout item) const; // Arguments for this function have been guessed
  878. void Say(uint8 howSay, string&inout text); // Arguments for this function have been guessed
  879. void SayMsg(uint8 howSay, uint16 textMsg, uint strNum); // Arguments for this function have been guessed
  880. void SayMsg(uint8 howSay, uint16 textMsg, uint strNum, string&inout lexems); // Arguments for this function have been guessed
  881. void SetDir(uint8 dir); // Arguments for this function have been guessed
  882. uint ErasePlane(int planeType, bool all); // Arguments for this function have been guessed
  883. bool ErasePlane(uint index); // Arguments for this function have been guessed
  884. void DropPlanes();
  885. bool IsNoPlanes() const;
  886. bool IsCurPlane(int planeType) const; // Arguments for this function have been guessed
  887. NpcPlane@ GetCurPlane() const;
  888. uint GetPlanes(array<NpcPlane@> @ planes) const; // Arguments for this function have been guessed
  889. uint GetPlanes(int identifier, array<NpcPlane@> @ planes) const; // Arguments for this function have been guessed
  890. uint GetPlanes(int identifier, uint identifierExt, array<NpcPlane@> @ planes) const; // Arguments for this function have been guessed
  891. bool AddPlane(NpcPlane&inout plane); // Arguments for this function have been guessed
  892. void SendMessage(int num, int val, int to); // Arguments for this function have been guessed
  893. void Action(int action, int actionExt, Item@ item); // Arguments for this function have been guessed
  894. void Animate(uint anim1, uint anim2, Item@ item, bool clearSequence, bool delayPlay); // Arguments for this function have been guessed
  895. void SetAnims(int cond, uint anim1, uint anim2); // Arguments for this function have been guessed
  896. void PlaySound(string&inout soundName, bool sendSelf); // Arguments for this function have been guessed
  897. void PlaySound(uint8 soundType, uint8 soundTypeExt, uint8 soundId, uint8 soundIdExt, bool sendSelf); // Arguments for this function have been guessed
  898. void SendCombatResult(array<uint> &inout combatResult); // Arguments for this function have been guessed
  899. bool IsKnownLoc(bool byId, uint locNum) const; // Arguments for this function have been guessed
  900. bool SetKnownLoc(bool byId, uint locNum); // Arguments for this function have been guessed
  901. bool UnsetKnownLoc(bool byId, uint locNum); // Arguments for this function have been guessed
  902. void SetFog(uint16 zoneX, uint16 zoneY, int fog); // Arguments for this function have been guessed
  903. int GetFog(uint16 zoneX, uint16 zoneY); // Arguments for this function have been guessed
  904. void ShowContainer(Critter@ contCr, Item@ contItem, uint8 transferType); // Arguments for this function have been guessed
  905. void ShowScreen(int screenType, uint param, string@ funcName); // Arguments for this function have been guessed
  906. void RunClientScript(string&inout funcName, int p0, int p1, int p2, string@ p3, array<int> @ p4); // Arguments for this function have been guessed
  907. void Disconnect();
  908. bool SetScript(string@);
  909. uint GetScriptId() const;
  910. void SetBagRefreshTime(uint realMinutes); // Arguments for this function have been guessed
  911. uint GetBagRefreshTime() const;
  912. void SetInternalBag(array<uint16> &inout pids, array<uint> @ minCounts, array<uint> @ maxCounts, array<int> @ slots); // Arguments for this function have been guessed
  913. uint GetInternalBag(array<uint16> @ pids, array<uint> @ minCounts, array<uint> @ maxCounts, array<int> @ slots) const; // Arguments for this function have been guessed
  914. uint16 GetProtoId() const;
  915. uint GetMultihex() const;
  916. void SetMultihex(int value); // Arguments for this function have been guessed
  917. void AddEnemyInStack(uint critterId); // Arguments for this function have been guessed
  918. bool CheckEnemyInStack(uint critterId) const; // Arguments for this function have been guessed
  919. void EraseEnemyFromStack(uint critterId); // Arguments for this function have been guessed
  920. void ChangeEnemyStackSize(uint newSize); // Arguments for this function have been guessed
  921. void GetEnemyStack(array<uint> &inout enemyStack) const; // Arguments for this function have been guessed
  922. void ClearEnemyStack();
  923. void ClearEnemyStackNpc();
  924. bool AddTimeEvent(string&inout funcName, uint duration, int identifier); // Arguments for this function have been guessed
  925. bool AddTimeEvent(string&inout funcName, uint duration, int identifier, uint rate); // Arguments for this function have been guessed
  926. uint GetTimeEvents(int identifier, array<uint> @ indexes, array<uint> @ durations, array<uint> @ rates) const; // Arguments for this function have been guessed
  927. uint GetTimeEvents(array<int> &inout findIdentifiers, array<int> @ identifiers, array<uint> @ indexes, array<uint> @ durations, array<uint> @ rates) const; // Arguments for this function have been guessed
  928. void ChangeTimeEvent(uint index, uint newDuration, uint newRate); // Arguments for this function have been guessed
  929. void EraseTimeEvent(uint index); // Arguments for this function have been guessed
  930. uint EraseTimeEvents(int identifier); // Arguments for this function have been guessed
  931. uint EraseTimeEvents(array<int> &inout identifiers); // Arguments for this function have been guessed
  932. void EventIdle();
  933. void EventFinish(bool);
  934. void EventDead(Critter@ killer); // Arguments for this function have been guessed
  935. void EventRespawn();
  936. void EventShowCritter(Critter&inout cr); // Arguments for this function have been guessed
  937. void EventShowCritter1(Critter&inout cr); // Arguments for this function have been guessed
  938. void EventShowCritter2(Critter&inout cr); // Arguments for this function have been guessed
  939. void EventShowCritter3(Critter&inout cr); // Arguments for this function have been guessed
  940. void EventHideCritter(Critter&inout cr); // Arguments for this function have been guessed
  941. void EventHideCritter1(Critter&inout cr); // Arguments for this function have been guessed
  942. void EventHideCritter2(Critter&inout cr); // Arguments for this function have been guessed
  943. void EventHideCritter3(Critter&inout cr); // Arguments for this function have been guessed
  944. void EventShowItemOnMap(Item&inout showItem, bool added, Critter@ dropper); // Arguments for this function have been guessed
  945. void EventChangeItemOnMap(Item&inout item); // Arguments for this function have been guessed
  946. void EventHideItemOnMap(Item&inout hideItem, bool removed, Critter@ picker); // Arguments for this function have been guessed
  947. bool EventAttack(Critter&inout target); // Arguments for this function have been guessed
  948. bool EventAttacked(Critter@ attacker); // Arguments for this function have been guessed
  949. bool EventStealing(Critter&inout thief, Item&inout item, uint count); // Arguments for this function have been guessed
  950. void EventMessage(Critter&inout fromCr, int message, int value); // Arguments for this function have been guessed
  951. bool EventUseItem(Item&inout item, Critter@ onCritter, Item@ onItem, Scenery@ onScenery); // Arguments for this function have been guessed
  952. bool EventUseItemOnMe(Critter&inout whoUse, Item&inout item); // Arguments for this function have been guessed
  953. bool EventUseSkill(int skill, Critter@ onCritter, Item@ onItem, Scenery@ onScenery); // Arguments for this function have been guessed
  954. bool EventUseSkillOnMe(Critter&inout whoUse, int skill); // Arguments for this function have been guessed
  955. void EventDropItem(Item&inout item); // Arguments for this function have been guessed
  956. void EventMoveItem(Item&inout item, uint8 fromSlot); // Arguments for this function have been guessed
  957. void EventKnockout(uint anim2begin, uint anim2idle, uint anim2end, uint lostAp, uint knockDist); // Arguments for this function have been guessed
  958. void EventSmthDead(Critter&inout fromCr, Critter@ killer); // Arguments for this function have been guessed
  959. void EventSmthStealing(Critter&inout fromCr, Critter&inout thief, bool success, Item&inout item, uint count); // Arguments for this function have been guessed
  960. void EventSmthAttack(Critter&inout fromCr, Critter&inout target); // Arguments for this function have been guessed
  961. void EventSmthAttacked(Critter&inout fromCr, Critter@ attacker); // Arguments for this function have been guessed
  962. void EventSmthUseItem(Critter&inout fromCr, Item&inout item, Critter@ onCritter, Item@ onItem, Scenery@ onScenery); // Arguments for this function have been guessed
  963. void EventSmthUseSkill(Critter&inout fromCr, int skill, Critter@ onCritter, Item@ onItem, Scenery@ onScenery); // Arguments for this function have been guessed
  964. void EventSmthDropItem(Critter&inout fromCr, Item&inout item); // Arguments for this function have been guessed
  965. void EventSmthMoveItem(Critter&inout fromCr, Item&inout item, uint8 fromSlot); // Arguments for this function have been guessed
  966. void EventSmthKnockout(Critter&inout fromCr, uint anim2begin, uint anim2idle, uint anim2end, uint lostAp, uint knockDist); // Arguments for this function have been guessed
  967. int EventPlaneBegin(NpcPlane&inout plane, int reason, Critter@ someCr, Item@ someItem); // Arguments for this function have been guessed
  968. int EventPlaneEnd(NpcPlane&inout plane, int reason, Critter@ someCr, Item@ someItem); // Arguments for this function have been guessed
  969. int EventPlaneRun(NpcPlane&inout plane, int reason, uint&inout p0, uint&inout p1, uint&inout p2); // Arguments for this function have been guessed
  970. bool EventBarter(Critter&inout barterCr, bool attach, uint barterCount); // Arguments for this function have been guessed
  971. bool EventTalk(Critter&inout talkCr, bool attach, uint talkCount); // Arguments for this function have been guessed
  972. bool EventGlobalProcess(int type, Item@ car, float&inout x, float&inout y, float&inout toX, float&inout toY, float&inout speed, uint&inout encounterDescriptor, bool&inout waitForAnswer); // Arguments for this function have been guessed
  973. bool EventGlobalInvite(Item@ car, uint encounterDescriptor, int combatMode, uint&inout mapId, uint16&inout hexX, uint16&inout hexY, uint8&inout dir); // Arguments for this function have been guessed
  974. void EventTurnBasedProcess(Map&inout map, bool beginTurn); // Arguments for this function have been guessed
  975. void EventSmthTurnBasedProcess(Critter&inout fromCr, Map&inout map, bool beginTurn); // Arguments for this function have been guessed
  976. bool IsInjured();
  977. bool IsDmgEye();
  978. bool IsDmgLeg();
  979. bool IsDmgTwoLeg();
  980. bool IsDmgArm();
  981. bool IsDmgTwoArm();
  982. bool IsAddicted();
  983. bool IsOverweight();
  984. int GetAC(bool);
  985. int GetDR(uint, bool);
  986. int GetDT(uint, bool);
  987. int GetArmorDR(uint, bool);
  988. int GetArmorDT(uint, bool);
  989. };
  990.  
  991. class Map
  992. {
  993. const bool IsNotValid;
  994. const uint Id;
  995. const uint TurnBasedRound;
  996. const uint TurnBasedTurn;
  997. const uint TurnBasedWholeTurn;
  998. uint16 GetProtoId() const;
  999. Location@ GetLocation() const;
  1000. bool SetScript(string@);
  1001. uint GetScriptId() const;
  1002. bool SetEvent(int, string@);
  1003. void SetLoopTime(uint numLoop, uint ms); // Arguments for this function have been guessed
  1004. uint8 GetRain() const;
  1005. void SetRain(uint8 capacity); // Arguments for this function have been guessed
  1006. int GetTime() const;
  1007. void SetTime(int time); // Arguments for this function have been guessed
  1008. uint GetDayTime(uint dayPart) const; // Arguments for this function have been guessed
  1009. void SetDayTime(uint dayPart, uint time); // Arguments for this function have been guessed
  1010. void GetDayColor(uint dayPart, uint8&inout r, uint8&inout g, uint8&inout b) const; // Arguments for this function have been guessed
  1011. void SetDayColor(uint dayPart, uint8 r, uint8 g, uint8 b); // Arguments for this function have been guessed
  1012. void SetTurnBasedAvailability(bool value); // Arguments for this function have been guessed
  1013. bool IsTurnBasedAvailability() const;
  1014. void BeginTurnBased(Critter@ firstTurnCrit); // Arguments for this function have been guessed
  1015. bool IsTurnBased() const;
  1016. void EndTurnBased();
  1017. int GetTurnBasedSequence(array<uint> &inout crittersIds) const; // Arguments for this function have been guessed
  1018. void SetData(uint index, int value); // Arguments for this function have been guessed
  1019. int GetData(uint index) const; // Arguments for this function have been guessed
  1020. Item@ AddItem(uint16 hexX, uint16 hexY, uint16 protoId, uint count); // Arguments for this function have been guessed
  1021. Item@ GetItem(uint) const;
  1022. Item@ GetItem(uint16 hexX, uint16 hexY, uint16 protoId) const; // Arguments for this function have been guessed
  1023. uint GetItems(uint16 hexX, uint16 hexY, array<Item@> @ items) const; // Arguments for this function have been guessed
  1024. uint GetItems(uint16 hexX, uint16 hexY, uint radius, uint16 protoId, array<Item@> @ items) const; // Arguments for this function have been guessed
  1025. uint GetItems(uint16 protoId, array<Item@> @ items) const; // Arguments for this function have been guessed
  1026. uint GetItemsByType(int, array<Item@> @) const;
  1027. Item@ GetDoor(uint16 hexX, uint16 hexY) const; // Arguments for this function have been guessed
  1028. Item@ GetCar(uint16 hexX, uint16 hexY) const; // Arguments for this function have been guessed
  1029. Scenery@ GetScenery(uint16 hexX, uint16 hexY, uint16 protoId) const; // Arguments for this function have been guessed
  1030. uint GetSceneries(uint16 hexX, uint16 hexY, array<Scenery@> @ sceneries) const; // Arguments for this function have been guessed
  1031. uint GetSceneries(uint16 hexX, uint16 hexY, uint radius, uint16 protoId, array<Scenery@> @ sceneries) const; // Arguments for this function have been guessed
  1032. uint GetSceneries(uint16 protoId, array<Scenery@> @ sceneries) const; // Arguments for this function have been guessed
  1033. Critter@ GetCritter(uint16 hexX, uint16 hexY) const; // Arguments for this function have been guessed
  1034. Critter@ GetCritter(uint) const;
  1035. uint GetCrittersHex(uint16 hexX, uint16 hexY, uint radius, int findType, array<Critter@> @ critters) const; // Arguments for this function have been guessed
  1036. uint GetCritters(uint16 pid, int findType, array<Critter@> @ critters) const; // Arguments for this function have been guessed
  1037. uint GetCrittersPath(uint16 fromHx, uint16 fromHy, uint16 toHx, uint16 toHy, float angle, uint dist, int findType, array<Critter@> @ critters) const; // Arguments for this function have been guessed
  1038. uint GetCrittersPath(uint16 fromHx, uint16 fromHy, uint16 toHx, uint16 toHy, float angle, uint dist, int findType, array<Critter@> @ critters, uint16&inout preBlockHx, uint16&inout preBlockHy, uint16&inout blockHx, uint16&inout blockHy) const; // Arguments for this function have been guessed
  1039. uint GetCrittersWhoViewPath(uint16 fromHx, uint16 fromHy, uint16 toHx, uint16 toHy, int findType, array<Critter@> @ critters) const; // Arguments for this function have been guessed
  1040. uint GetCrittersSeeing(array<Critter@> &inout critters, bool lookOnThem, int find_type, array<Critter@> @ crittersResult) const; // Arguments for this function have been guessed
  1041. void GetHexCoord(uint16 fromHx, uint16 fromHy, uint16&inout toHx, uint16&inout toHy, float angle, uint dist) const; // Arguments for this function have been guessed
  1042. void GetHexCoordWall(uint16 fromHx, uint16 fromHy, uint16&inout toHx, uint16&inout toHy, float angle, uint dist) const; // Arguments for this function have been guessed
  1043. uint GetPathLength(uint16 fromHx, uint16 fromHy, uint16 toHx, uint16 toHy, uint cut) const; // Arguments for this function have been guessed
  1044. uint GetPathLength(Critter&inout cr, uint16 toHx, uint16 toHy, uint cut) const; // Arguments for this function have been guessed
  1045. bool VerifyTrigger(Critter&inout cr, uint16 hexX, uint16 hexY, uint8 dir); // Arguments for this function have been guessed
  1046. Critter@ AddNpc(uint16 protoId, uint16 hexX, uint16 hexY, uint8 dir, array<int> @ params, array<int> @ items, string@ script); // Arguments for this function have been guessed
  1047. uint GetNpcCount(int npcRole, int findType) const; // Arguments for this function have been guessed
  1048. Critter@ GetNpc(int npcRole, int findType, uint skipCount) const; // Arguments for this function have been guessed
  1049. uint CountEntire(int entire) const; // Arguments for this function have been guessed
  1050. uint GetEntires(int entire, array<uint> @ entires, array<uint16> @ hexX, array<uint16> @ hexY) const; // Arguments for this function have been guessed
  1051. bool GetEntireCoords(int entire, uint skip, uint16&inout hexX, uint16&inout hexY) const; // Arguments for this function have been guessed
  1052. bool GetEntireCoords(int entire, uint skip, uint16&inout hexX, uint16&inout hexY, uint8&inout dir) const; // Arguments for this function have been guessed
  1053. bool GetNearEntireCoords(int&inout entire, uint16&inout hexX, uint16&inout hexY) const; // Arguments for this function have been guessed
  1054. bool GetNearEntireCoords(int&inout entire, uint16&inout hexX, uint16&inout hexY, uint8&inout dir) const; // Arguments for this function have been guessed
  1055. bool IsHexPassed(uint16 hexX, uint16 hexY) const; // Arguments for this function have been guessed
  1056. bool IsHexRaked(uint16 hexX, uint16 hexY) const; // Arguments for this function have been guessed
  1057. void SetText(uint16 hexX, uint16 hexY, uint color, string&inout text) const; // Arguments for this function have been guessed
  1058. void SetTextMsg(uint16 hexX, uint16 hexY, uint color, uint16 textMsg, uint strNum) const; // Arguments for this function have been guessed
  1059. void SetTextMsg(uint16 hexX, uint16 hexY, uint color, uint16 textMsg, uint strNum, string&inout lexems) const; // Arguments for this function have been guessed
  1060. void RunEffect(uint16 effectPid, uint16 hexX, uint16 hexY, uint16 radius) const; // Arguments for this function have been guessed
  1061. void RunFlyEffect(uint16 effectPid, Critter@ fromCr, Critter@ toCr, uint16 fromX, uint16 fromY, uint16 toX, uint16 toY) const; // Arguments for this function have been guessed
  1062. bool CheckPlaceForItem(uint16 hexX, uint16 hexY, uint16 pid) const; // Arguments for this function have been guessed
  1063. void BlockHex(uint16 hexX, uint16 hexY, bool full); // Arguments for this function have been guessed
  1064. void UnblockHex(uint16 hexX, uint16 hexY); // Arguments for this function have been guessed
  1065. void PlaySound(string&inout soundName) const; // Arguments for this function have been guessed
  1066. void PlaySound(string&inout soundName, uint16 hexX, uint16 hexY, uint radius) const; // Arguments for this function have been guessed
  1067. bool Reload();
  1068. uint16 GetWidth() const;
  1069. uint16 GetHeight() const;
  1070. void MoveHexByDir(uint16&inout hexX, uint16&inout hexY, uint8 dir, uint steps) const; // Arguments for this function have been guessed
  1071. void EventFinish(bool);
  1072. void EventLoop0();
  1073. void EventLoop1();
  1074. void EventLoop2();
  1075. void EventLoop3();
  1076. void EventLoop4();
  1077. void EventInCritter(Critter&inout cr); // Arguments for this function have been guessed
  1078. void EventOutCritter(Critter&inout cr); // Arguments for this function have been guessed
  1079. void EventCritterDead(Critter&inout cr, Critter@ killer); // Arguments for this function have been guessed
  1080. void EventTurnBasedBegin();
  1081. void EventTurnBasedEnd();
  1082. void EventTurnBasedProcess(Critter&inout cr, bool beginTurn); // Arguments for this function have been guessed
  1083. };
  1084.  
  1085. class Location
  1086. {
  1087. const uint Id;
  1088. uint16 WorldX;
  1089. uint16 WorldY;
  1090. bool Visible;
  1091. bool GeckVisible;
  1092. bool AutoGarbage;
  1093. int GeckCount;
  1094. uint16 Radius;
  1095. uint Color;
  1096. const bool IsNotValid;
  1097. uint16 GetProtoId() const;
  1098. uint GetMapCount() const;
  1099. Map@ GetMap(uint16 mapPid) const; // Arguments for this function have been guessed
  1100. Map@ GetMapByIndex(uint index) const; // Arguments for this function have been guessed
  1101. uint GetMaps(array<Map@> @ maps) const; // Arguments for this function have been guessed
  1102. bool Reload();
  1103. void Update();
  1104. };
  1105.  
  1106. class Synchronizer
  1107. {
  1108. void Lock();
  1109. };
  1110.  
  1111. class CraftItem
  1112. {
  1113. const uint Num;
  1114. const string Name;
  1115. const string Info;
  1116. const uint Experience;
  1117. const string Script;
  1118. uint GetShowParams(array<uint> @, array<int> @, array<bool> @);
  1119. uint GetNeedParams(array<uint> @, array<int> @, array<bool> @);
  1120. uint GetNeedTools(array<uint16> @, array<uint> @, array<bool> @);
  1121. uint GetNeedItems(array<uint16> @, array<uint> @, array<bool> @);
  1122. uint GetOutItems(array<uint16> @, array<uint> @);
  1123. };
  1124.  
  1125.  
  1126. // Global functions
  1127. string@ substring(const string&in, int, int);
  1128. int findFirst(const string&in, const string&in, int arg2 = 0);
  1129. int findLast(const string&in, const string&in, int arg2 = 0);
  1130. int findFirstOf(const string&in, const string&in, int arg2 = 0);
  1131. int findFirstNotOf(const string&in, const string&in, int arg2 = 0);
  1132. int findLastOf(const string&in, const string&in, int arg2 = 0);
  1133. int findLastNotOf(const string&in, const string&in, int arg2 = 0);
  1134. array<string@> @ split(const string&in, const string&in);
  1135. array<string@> @ splitEx(const string&in, const string&in);
  1136. string@ join(const array<string@> &in, const string&in);
  1137. string@ strlwr(const string&in);
  1138. string@ strupr(const string&in);
  1139. float cos(float);
  1140. float sin(float);
  1141. float tan(float);
  1142. float acos(float);
  1143. float asin(float);
  1144. float atan(float);
  1145. float atan2(float, float);
  1146. float cosh(float);
  1147. float sinh(float);
  1148. float tanh(float);
  1149. float log(float);
  1150. float log10(float);
  1151. float pow(float, float);
  1152. float sqrt(float);
  1153. float ceil(float);
  1154. float abs(float);
  1155. float floor(float);
  1156. float fraction(float);
  1157. void __CompilerLog(string&inout text);
  1158. GameVar@ GetGlobalVar(uint16 varId);
  1159. GameVar@ GetLocalVar(uint16 varId, uint masterId);
  1160. GameVar@ GetUnicumVar(uint16 varId, uint masterId, uint slaveId);
  1161. Item@ GetItem(uint itemId);
  1162. void MoveItem(Item&inout item, uint count, Critter&inout toCr);
  1163. void MoveItem(Item&inout item, uint count, Item&inout toCont, uint stackId);
  1164. void MoveItem(Item&inout item, uint count, Map&inout toMap, uint16 toHx, uint16 toHy);
  1165. void MoveItems(array<Item@> &inout items, Critter&inout toCr);
  1166. void MoveItems(array<Item@> &inout items, Item&inout toCont, uint stackId);
  1167. void MoveItems(array<Item@> &inout items, Map&inout toMap, uint16 toHx, uint16 toHy);
  1168. void DeleteItem(Item&inout item);
  1169. void DeleteItems(array<Item@> &inout items);
  1170. void DeleteNpc(Critter&inout npc);
  1171. uint GetCrittersDistantion(Critter&inout cr1, Critter&inout cr2);
  1172. void RadioMessage(uint16 channel, string&inout text);
  1173. void RadioMessageMsg(uint16 channel, uint16 textMsg, uint strNum);
  1174. void RadioMessageMsg(uint16 channel, uint16 textMsg, uint strNum, string@ lexems);
  1175. uint CreateLocation(uint16 locPid, uint16 worldX, uint16 worldY, array<Critter@> @ critters);
  1176. void DeleteLocation(uint locId);
  1177. void GetProtoCritter(uint16 protoId, array<int> &inout data);
  1178. Critter@ GetCritter(uint critterId);
  1179. Critter@ GetPlayer(string&inout name);
  1180. uint GetPlayerId(string&inout name);
  1181. string@ GetPlayerName(uint playerId);
  1182. uint GetGlobalMapCritters(uint16 worldX, uint16 worldY, uint radius, int findType, array<Critter@> @ critters);
  1183. uint CreateTimeEvent(uint beginSecond, string&inout funcName, bool save);
  1184. uint CreateTimeEvent(uint beginSecond, string&inout funcName, uint value, bool save);
  1185. uint CreateTimeEvent(uint beginSecond, string&inout funcName, int value, bool save);
  1186. uint CreateTimeEvent(uint beginSecond, string&inout funcName, array<uint> &inout values, bool save);
  1187. uint CreateTimeEvent(uint beginSecond, string&inout funcName, array<int> &inout values, bool save);
  1188. bool EraseTimeEvent(uint num);
  1189. bool GetTimeEvent(uint num, uint&inout duration, array<uint> @ values);
  1190. bool GetTimeEvent(uint num, uint&inout duration, array<int> @ values);
  1191. bool SetTimeEvent(uint num, uint duration, array<uint> @ values);
  1192. bool SetTimeEvent(uint num, uint duration, array<int> @ values);
  1193. bool SetAnyData(string&inout name, array<int64> &inout data);
  1194. bool SetAnyData(string&inout, array<int> &inout);
  1195. bool SetAnyData(string&inout name, array<int16> &inout data);
  1196. bool SetAnyData(string&inout name, array<int8> &inout data);
  1197. bool SetAnyData(string&inout name, array<uint64> &inout data);
  1198. bool SetAnyData(string&inout, array<uint> &inout);
  1199. bool SetAnyData(string&inout name, array<uint16> &inout data);
  1200. bool SetAnyData(string&inout name, array<uint8> &inout data);
  1201. bool SetAnyData(string&inout name, array<int64> &inout data, uint dataSize);
  1202. bool SetAnyData(string&inout, array<int> &inout, uint);
  1203. bool SetAnyData(string&inout name, array<int16> &inout data, uint dataSize);
  1204. bool SetAnyData(string&inout name, array<int8> &inout data, uint dataSize);
  1205. bool SetAnyData(string&inout name, array<uint64> &inout data, uint dataSize);
  1206. bool SetAnyData(string&inout, array<uint> &inout, uint);
  1207. bool SetAnyData(string&inout name, array<uint16> &inout data, uint dataSize);
  1208. bool SetAnyData(string&inout name, array<uint8> &inout data, uint dataSize);
  1209. bool GetAnyData(string&inout name, array<int64> &inout data);
  1210. bool GetAnyData(string&inout, array<int> &inout);
  1211. bool GetAnyData(string&inout name, array<int16> &inout data);
  1212. bool GetAnyData(string&inout name, array<int8> &inout data);
  1213. bool GetAnyData(string&inout name, array<uint64> &inout data);
  1214. bool GetAnyData(string&inout, array<uint> &inout);
  1215. bool GetAnyData(string&inout name, array<uint16> &inout data);
  1216. bool GetAnyData(string&inout name, array<uint8> &inout data);
  1217. bool IsAnyData(string&inout name);
  1218. void EraseAnyData(string&inout name);
  1219. Map@ GetMap(uint mapId);
  1220. Map@ GetMapByPid(uint16 mapPid, uint skipCount);
  1221. Location@ GetLocation(uint locId);
  1222. Location@ GetLocationByPid(uint16 locPid, uint skipCount);
  1223. uint GetLocations(uint16 worldX, uint16 worldY, uint radius, array<Location@> @ locations);
  1224. uint GetVisibleLocations(uint16 worldX, uint16 worldY, uint radius, Critter@ visibleBy, array<Location@> @ locations);
  1225. uint GetZoneLocationIds(uint16 zoneX, uint16 zoneY, uint zoneRadius, array<uint> @ locationIds);
  1226. bool RunDialog(Critter&inout player, Critter&inout npc, bool ignoreDistance);
  1227. bool RunDialog(Critter&inout player, Critter&inout npc, uint dialogPack, bool ignoreDistance);
  1228. bool RunDialog(Critter&inout player, uint dialogPack, uint16 hexX, uint16 hexY, bool ignoreDistance);
  1229. int64 WorldItemCount(uint16 protoId);
  1230. void SetBestScore(int score, Critter@ player, string&inout name);
  1231. bool AddTextListener(int sayType, string&inout firstStr, uint16 parameter, string&inout scriptName);
  1232. void EraseTextListener(int sayType, string&inout firstStr, uint16 parameter);
  1233. NpcPlane@ CreatePlane();
  1234. uint GetBagItems(uint bagId, array<uint16> @ pids, array<uint> @ minCounts, array<uint> @ maxCounts, array<int> @ slots);
  1235. void SetChosenSendParameter(int index, bool enabled);
  1236. void SetSendParameter(int index, bool enabled);
  1237. void SetSendParameter(int index, bool enabled, string@ allowFunc);
  1238. bool SwapCritters(Critter&inout cr1, Critter&inout cr2, bool withInventory, bool withVars);
  1239. uint GetAllItems(uint16 pid, array<Item@> @ items);
  1240. uint GetAllPlayers(array<Critter@> @ players);
  1241. uint GetAllNpc(uint16 pid, array<Critter@> @ npc);
  1242. uint GetAllMaps(uint16 pid, array<Map@> @ maps);
  1243. uint GetAllLocations(uint16 pid, array<Location@> @ locations);
  1244. uint GetScriptId(string&inout scriptName, string&inout funcDeclaration);
  1245. string@ GetScriptName(uint scriptId);
  1246. array<int8> @ GetItemDataMask(int maskType);
  1247. bool SetItemDataMask(int maskType, array<int8> &inout mask);
  1248. bool LoadImage(uint index, string@ imageName, uint imageDepth, int pathType);
  1249. uint GetImageColor(uint index, uint x, uint y);
  1250. void Synchronize();
  1251. void Resynchronize();
  1252. bool SetParameterDialogGetBehaviour(uint index, string&inout funcName);
  1253. CraftItem@ GetCraftItem(uint num);
  1254. uint GetFullSecond(uint16 year, uint16 month, uint16 day, uint16 hour, uint16 minute, uint16 second);
  1255. void GetTime(uint16&inout year, uint16&inout month, uint16&inout day, uint16&inout dayOfWeek, uint16&inout hour, uint16&inout minute, uint16&inout second, uint16&inout milliseconds);
  1256. void GetGameTime(uint fullSecond, uint16&inout year, uint16&inout month, uint16&inout day, uint16&inout dayOfWeek, uint16&inout hour, uint16&inout minute, uint16&inout second);
  1257. bool SetParameterGetBehaviour(uint index, string&inout funcName);
  1258. bool SetParameterChangeBehaviour(uint index, string&inout funcName);
  1259. void SetRegistrationParameter(uint index, bool enabled);
  1260. bool IsCritterCanWalk(uint crType);
  1261. bool IsCritterCanRun(uint crType);
  1262. bool IsCritterCanRotate(uint crType);
  1263. bool IsCritterCanAim(uint crType);
  1264. bool IsCritterCanArmor(uint crType);
  1265. bool IsCritterAnim1(uint crType, uint anim1);
  1266. int GetCritterAnimType(uint crType);
  1267. uint GetCritterAlias(uint crType);
  1268. string@ GetCritterTypeName(uint crType);
  1269. string@ GetCritterSoundName(uint crType);
  1270. void Log(string&inout text);
  1271. string@ GetLastError();
  1272. int Random(int minimum, int maximum);
  1273. ProtoItem@ GetProtoItem(uint16 protoId);
  1274. bool StrToInt(string@ text, int&inout result);
  1275. bool StrToFloat(string@ text, float&inout result);
  1276. uint GetDistantion(uint16 hexX1, uint16 hexY1, uint16 hexX2, uint16 hexY2);
  1277. uint8 GetDirection(uint16 fromHexX, uint16 fromHexY, uint16 toHexX, uint16 toHexY);
  1278. uint8 GetOffsetDir(uint16 fromHexX, uint16 fromHexY, uint16 toHexX, uint16 toHexY, float offset);
  1279. uint GetTick();
  1280. uint GetAngelScriptProperty(int property);
  1281. void SetAngelScriptProperty(int property, uint value);
  1282. uint GetStrHash(string@ str);
  1283. bool LoadDataFile(string&inout dataFileName);
  1284. int GetConstantValue(int constCollection, string@ name);
  1285. string@ GetConstantName(int constCollection, int value);
  1286. void AddConstant(int constCollection, string@ name, int value);
  1287. bool LoadConstants(int constCollection, string@ fileName, int pathType);
  1288. void AllowSlot(uint8 index, string&inout slotName);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement