bc-stubs 96.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (312) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +2 -0
  3. package/bc/Assets/Female3DCG/Female3DCG.d.ts +41 -0
  4. package/bc/Assets/Female3DCG/Female3DCGExtended.d.ts +29 -0
  5. package/bc/Backgrounds/Backgrounds.d.ts +37 -0
  6. package/bc/Female3DCG_Types.d.ts +875 -0
  7. package/bc/Screens/Character/Appearance/Appearance.d.ts +392 -0
  8. package/bc/Screens/Character/BackgroundSelection/BackgroundSelection.d.ts +98 -0
  9. package/bc/Screens/Character/Cheat/Cheat.d.ts +54 -0
  10. package/bc/Screens/Character/Creation/Creation.d.ts +40 -0
  11. package/bc/Screens/Character/Disclaimer/Disclaimer.d.ts +21 -0
  12. package/bc/Screens/Character/FriendList/FriendList.d.ts +102 -0
  13. package/bc/Screens/Character/InformationSheet/InformationSheet.d.ts +46 -0
  14. package/bc/Screens/Character/ItemColor/ItemColor.d.ts +232 -0
  15. package/bc/Screens/Character/Login/Login.d.ts +194 -0
  16. package/bc/Screens/Character/OnlineProfile/OnlineProfile.d.ts +27 -0
  17. package/bc/Screens/Character/PasswordReset/PasswordReset.d.ts +28 -0
  18. package/bc/Screens/Character/Preference/Preference.d.ts +658 -0
  19. package/bc/Screens/Character/Relog/Relog.d.ts +36 -0
  20. package/bc/Screens/Character/Title/Title.d.ts +68 -0
  21. package/bc/Screens/Character/Wardrobe/Wardrobe.d.ts +93 -0
  22. package/bc/Screens/Cutscene/NPCCollaring/NPCCollaring.d.ts +26 -0
  23. package/bc/Screens/Cutscene/NPCSlaveAuction/NPCSlaveAuction.d.ts +27 -0
  24. package/bc/Screens/Cutscene/NPCWedding/NPCWedding.d.ts +35 -0
  25. package/bc/Screens/Cutscene/PlayerCollaring/PlayerCollaring.d.ts +26 -0
  26. package/bc/Screens/Cutscene/PlayerMistress/PlayerMistress.d.ts +24 -0
  27. package/bc/Screens/Cutscene/SarahIntro/SarahIntro.d.ts +22 -0
  28. package/bc/Screens/Inventory/Cloth/CheerleaderTop/CheerleaderTop.d.ts +33 -0
  29. package/bc/Screens/Inventory/Cloth/FrilledShirt/FrilledShirt.d.ts +10 -0
  30. package/bc/Screens/Inventory/ClothAccessory/Bib/Bib.d.ts +2 -0
  31. package/bc/Screens/Inventory/EyeShadow/EyeShadow.d.ts +60 -0
  32. package/bc/Screens/Inventory/Futuristic/Futuristic.d.ts +60 -0
  33. package/bc/Screens/Inventory/ItemArms/FullLatexSuit/FullLatexSuit.d.ts +6 -0
  34. package/bc/Screens/Inventory/ItemArms/HempRope/HempRope.d.ts +2 -0
  35. package/bc/Screens/Inventory/ItemArms/NylonRope/NylonRope.d.ts +2 -0
  36. package/bc/Screens/Inventory/ItemArms/PrisonLockdownSuit/PrisonLockdownSuit.d.ts +4 -0
  37. package/bc/Screens/Inventory/ItemArms/TransportJacket/TransportJacket.d.ts +10 -0
  38. package/bc/Screens/Inventory/ItemBreast/ForbiddenChastityBra/ForbiddenChastityBra.d.ts +32 -0
  39. package/bc/Screens/Inventory/ItemBreast/FuturisticBra/FuturisticBra.d.ts +24 -0
  40. package/bc/Screens/Inventory/ItemButt/AnalBeads2/AnalBeads2.d.ts +2 -0
  41. package/bc/Screens/Inventory/ItemButt/InflVibeButtPlug/InflVibeButtPlug.d.ts +2 -0
  42. package/bc/Screens/Inventory/ItemDevices/DollBox/DollBox.d.ts +2 -0
  43. package/bc/Screens/Inventory/ItemDevices/FuckMachine/FuckMachine.d.ts +16 -0
  44. package/bc/Screens/Inventory/ItemDevices/FuturisticCrate/FuturisticCrate.d.ts +8 -0
  45. package/bc/Screens/Inventory/ItemDevices/KabeshiriWall/KabeshiriWall.d.ts +13 -0
  46. package/bc/Screens/Inventory/ItemDevices/Kennel/Kennel.d.ts +18 -0
  47. package/bc/Screens/Inventory/ItemDevices/LuckyWheel/LuckyWheel.d.ts +48 -0
  48. package/bc/Screens/Inventory/ItemDevices/PetBowl/PetBowl.d.ts +6 -0
  49. package/bc/Screens/Inventory/ItemDevices/VacBedDeluxe/VacBedDeluxe.d.ts +2 -0
  50. package/bc/Screens/Inventory/ItemDevices/WheelFortune/WheelFortune.d.ts +10 -0
  51. package/bc/Screens/Inventory/ItemDevices/WoodenBox/WoodenBox.d.ts +13 -0
  52. package/bc/Screens/Inventory/ItemFeet/HempRope/HempRope.d.ts +2 -0
  53. package/bc/Screens/Inventory/ItemFeet/NylonRope/NylonRope.d.ts +2 -0
  54. package/bc/Screens/Inventory/ItemHandhelds/PortalTablet/PortalTablet.d.ts +10 -0
  55. package/bc/Screens/Inventory/ItemHead/DroneMask/DroneMask.d.ts +2 -0
  56. package/bc/Screens/Inventory/ItemHood/CanvasHood/CanvasHood.d.ts +6 -0
  57. package/bc/Screens/Inventory/ItemMisc/CombinationPadlock/CombinationPadlock.d.ts +16 -0
  58. package/bc/Screens/Inventory/ItemMisc/ExclusivePadlock/ExclusivePadlock.d.ts +6 -0
  59. package/bc/Screens/Inventory/ItemMisc/FamilyPadlock/FamilyPadlock.d.ts +6 -0
  60. package/bc/Screens/Inventory/ItemMisc/HighSecurityPadlock/HighSecurityPadlock.d.ts +15 -0
  61. package/bc/Screens/Inventory/ItemMisc/IntricatePadlock/IntricatePadlock.d.ts +6 -0
  62. package/bc/Screens/Inventory/ItemMisc/LoversPadlock/LoversPadlock.d.ts +6 -0
  63. package/bc/Screens/Inventory/ItemMisc/LoversTimerPadlock/LoversTimerPadlock.d.ts +17 -0
  64. package/bc/Screens/Inventory/ItemMisc/MetalPadlock/MetalPadlock.d.ts +6 -0
  65. package/bc/Screens/Inventory/ItemMisc/MistressPadlock/MistressPadlock.d.ts +6 -0
  66. package/bc/Screens/Inventory/ItemMisc/MistressTimerPadlock/MistressTimerPadlock.d.ts +13 -0
  67. package/bc/Screens/Inventory/ItemMisc/OwnerPadlock/OwnerPadlock.d.ts +6 -0
  68. package/bc/Screens/Inventory/ItemMisc/OwnerTimerPadlock/OwnerTimerPadlock.d.ts +22 -0
  69. package/bc/Screens/Inventory/ItemMisc/PandoraPadlock/PandoraPadlock.d.ts +6 -0
  70. package/bc/Screens/Inventory/ItemMisc/PasswordPadlock/PasswordPadlock.d.ts +17 -0
  71. package/bc/Screens/Inventory/ItemMisc/PortalLinkPadlock/PortalLinkPadlock.d.ts +6 -0
  72. package/bc/Screens/Inventory/ItemMisc/SafewordPadlock/SafewordPadlock.d.ts +12 -0
  73. package/bc/Screens/Inventory/ItemMisc/TimerPadlock/TimerPadlock.d.ts +13 -0
  74. package/bc/Screens/Inventory/ItemMisc/TimerPasswordPadlock/TimerPasswordPadlock.d.ts +13 -0
  75. package/bc/Screens/Inventory/ItemMisc/WoodenSign/WoodenSign.d.ts +2 -0
  76. package/bc/Screens/Inventory/ItemMouth/FuturisticPanelGag/FuturisticPanelGag.d.ts +49 -0
  77. package/bc/Screens/Inventory/ItemNeck/AutoShockCollar/AutoShockCollar.d.ts +4 -0
  78. package/bc/Screens/Inventory/ItemNeck/FuturisticCollar/FuturisticCollar.d.ts +59 -0
  79. package/bc/Screens/Inventory/ItemNeck/PetSuitShockCollar/PetSuitShockCollar.d.ts +4 -0
  80. package/bc/Screens/Inventory/ItemNeck/ShockCollar/ShockCollar.d.ts +4 -0
  81. package/bc/Screens/Inventory/ItemNeck/SlaveCollar/SlaveCollar.d.ts +25 -0
  82. package/bc/Screens/Inventory/ItemNeckAccessories/CollarAutoShockUnit/CollarAutoShockUnit.d.ts +15 -0
  83. package/bc/Screens/Inventory/ItemNeckAccessories/CollarNameTag/CollarNameTag.d.ts +8 -0
  84. package/bc/Screens/Inventory/ItemNeckAccessories/CollarShockUnit/CollarShockUnit.d.ts +17 -0
  85. package/bc/Screens/Inventory/ItemNeckAccessories/CustomCollarTag/CustomCollarTag.d.ts +2 -0
  86. package/bc/Screens/Inventory/ItemNeckAccessories/ElectronicTag/ElectronicTag.d.ts +2 -0
  87. package/bc/Screens/Inventory/ItemNeckRestraints/CollarLeash/CollarLeash.d.ts +4 -0
  88. package/bc/Screens/Inventory/ItemNeckRestraints/PetPost/PetPost.d.ts +2 -0
  89. package/bc/Screens/Inventory/ItemNipples/LactationPump/LactationPump.d.ts +2 -0
  90. package/bc/Screens/Inventory/ItemPelvis/ForbiddenChastityBelt/ForbiddenChastityBelt.d.ts +32 -0
  91. package/bc/Screens/Inventory/ItemPelvis/FuturisticChastityBelt/FuturisticChastityBelt.d.ts +28 -0
  92. package/bc/Screens/Inventory/ItemPelvis/FuturisticTrainingBelt/FuturisticTrainingBelt.d.ts +103 -0
  93. package/bc/Screens/Inventory/ItemPelvis/LoveChastityBelt/LoveChastityBelt.d.ts +8 -0
  94. package/bc/Screens/Inventory/ItemPelvis/ObedienceBelt/ObedienceBelt.d.ts +29 -0
  95. package/bc/Screens/Inventory/ItemPelvis/PortalPanties/PortalPanties.d.ts +10 -0
  96. package/bc/Screens/Inventory/ItemPelvis/SciFiPleasurePanties/SciFiPleasurePanties.d.ts +6 -0
  97. package/bc/Screens/Inventory/ItemTorso/FuturisticHarness/FuturisticHarness.d.ts +8 -0
  98. package/bc/Screens/Inventory/ItemVulva/ClitAndDildoVibratorbelt/ClitAndDildoVibratorbelt.d.ts +4 -0
  99. package/bc/Screens/Inventory/ItemVulva/FuturisticVibrator/FuturisticVibrator.d.ts +65 -0
  100. package/bc/Screens/Inventory/ItemVulva/LoversVibrator/LoversVibrator.d.ts +2 -0
  101. package/bc/Screens/Inventory/Wings/SteampunkWings/SteampunkWings.d.ts +16 -0
  102. package/bc/Screens/MiniGame/Chess/BondageChess.d.ts +30 -0
  103. package/bc/Screens/MiniGame/Chess/chess.d.ts +7 -0
  104. package/bc/Screens/MiniGame/ChestLockpick/ChestLockpick.d.ts +27 -0
  105. package/bc/Screens/MiniGame/ClubCard/ClubCard.d.ts +373 -0
  106. package/bc/Screens/MiniGame/ClubCardBuilder/ClubCardBuilder.d.ts +66 -0
  107. package/bc/Screens/MiniGame/DojoStruggle/DojoStruggle.d.ts +25 -0
  108. package/bc/Screens/MiniGame/GetUp/GetUp.d.ts +31 -0
  109. package/bc/Screens/MiniGame/HorseWalk/HorseWalk.d.ts +85 -0
  110. package/bc/Screens/MiniGame/Kidnap/Kidnap.d.ts +165 -0
  111. package/bc/Screens/MiniGame/KinkyDungeon/KDAutoStruggle.d.ts +99 -0
  112. package/bc/Screens/MiniGame/KinkyDungeon/KDClasses.d.ts +11 -0
  113. package/bc/Screens/MiniGame/KinkyDungeon/KDDelayedActions.d.ts +17 -0
  114. package/bc/Screens/MiniGame/KinkyDungeon/KDFixForBC.d.ts +11 -0
  115. package/bc/Screens/MiniGame/KinkyDungeon/KDModUtils.d.ts +93 -0
  116. package/bc/Screens/MiniGame/KinkyDungeon/KDParticles.d.ts +37 -0
  117. package/bc/Screens/MiniGame/KinkyDungeon/KDTypeDefs.d.ts +2161 -0
  118. package/bc/Screens/MiniGame/KinkyDungeon/KDWardrobe.d.ts +84 -0
  119. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeon.d.ts +653 -0
  120. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonAlt.d.ts +481 -0
  121. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonBones.d.ts +16 -0
  122. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonBoss.d.ts +119 -0
  123. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonBuffs.d.ts +33 -0
  124. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonBuffsList.d.ts +865 -0
  125. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonConsumables.d.ts +36 -0
  126. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonConsumablesList.d.ts +66 -0
  127. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonCurse.d.ts +44 -0
  128. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonDialogue.d.ts +171 -0
  129. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonDialogueList.d.ts +45 -0
  130. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonDialogueTriggers.d.ts +48 -0
  131. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonDraw.d.ts +738 -0
  132. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonDress.d.ts +62 -0
  133. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonDressList.d.ts +33 -0
  134. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonEditor.d.ts +1124 -0
  135. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonEditorGen.d.ts +113 -0
  136. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonEditorTiles.d.ts +4 -0
  137. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonEffectTiles.d.ts +6 -0
  138. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonEnemies.d.ts +544 -0
  139. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonEnemiesList.d.ts +22 -0
  140. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonEnemyEventList.d.ts +18 -0
  141. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonErrors.d.ts +59 -0
  142. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonEvents.d.ts +151 -0
  143. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonFactions.d.ts +53 -0
  144. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonFactionsList.d.ts +650 -0
  145. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonFight.d.ts +453 -0
  146. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonFurniture.d.ts +28 -0
  147. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonGame.d.ts +429 -0
  148. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonHUD.d.ts +134 -0
  149. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonInput.d.ts +23 -0
  150. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonInventory.d.ts +178 -0
  151. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonItem.d.ts +33 -0
  152. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonJail.d.ts +142 -0
  153. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonJailList.d.ts +105 -0
  154. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonLoot.d.ts +66 -0
  155. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonLootList.d.ts +866 -0
  156. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonLore.d.ts +37 -0
  157. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonMagic.d.ts +113 -0
  158. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonMagicCode.d.ts +23 -0
  159. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonMagicList.d.ts +62 -0
  160. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonMapMods.d.ts +5 -0
  161. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonMistress.d.ts +10 -0
  162. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonMultiplayer.d.ts +26 -0
  163. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonMusic.d.ts +28 -0
  164. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonObject.d.ts +42 -0
  165. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonParams.d.ts +4 -0
  166. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonPathfinding.d.ts +36 -0
  167. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonPerks.d.ts +147 -0
  168. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonPersonality.d.ts +83 -0
  169. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonPlayerEffects.d.ts +35 -0
  170. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonQuest.d.ts +10 -0
  171. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonReputation.d.ts +229 -0
  172. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonRestraints.d.ts +766 -0
  173. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonRestraintsList.d.ts +55 -0
  174. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonSetpiece.d.ts +91 -0
  175. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonShrine.d.ts +89 -0
  176. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonSpawns.d.ts +49 -0
  177. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonStats.d.ts +282 -0
  178. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonTests.d.ts +5 -0
  179. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonTiles.d.ts +160 -0
  180. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonTilesList.d.ts +72 -0
  181. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonTraps.d.ts +34 -0
  182. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonVibe.d.ts +98 -0
  183. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonVision.d.ts +24 -0
  184. package/bc/Screens/MiniGame/KinkyDungeon/KinkyDungeonWeaponList.d.ts +5 -0
  185. package/bc/Screens/MiniGame/MagicBattle/MagicBattle.d.ts +73 -0
  186. package/bc/Screens/MiniGame/MagicPuzzle/MagicPuzzle.d.ts +75 -0
  187. package/bc/Screens/MiniGame/MaidCleaning/MaidCleaning.d.ts +51 -0
  188. package/bc/Screens/MiniGame/MaidDrinks/MaidDrinks.d.ts +82 -0
  189. package/bc/Screens/MiniGame/PlayerAuction/PlayerAuction.d.ts +36 -0
  190. package/bc/Screens/MiniGame/PuppyWalker/PuppyWalker.d.ts +39 -0
  191. package/bc/Screens/MiniGame/RhythmGame/RhythmGame.d.ts +76 -0
  192. package/bc/Screens/MiniGame/SlaveAuction/SlaveAuction.d.ts +39 -0
  193. package/bc/Screens/MiniGame/Tennis/Tennis.d.ts +52 -0
  194. package/bc/Screens/MiniGame/Therapy/Therapy.d.ts +39 -0
  195. package/bc/Screens/MiniGame/WheelFortune/WheelFortune.d.ts +105 -0
  196. package/bc/Screens/Online/AdvancedRule/AdvancedRule.d.ts +32 -0
  197. package/bc/Screens/Online/ChatAdmin/ChatAdmin.d.ts +59 -0
  198. package/bc/Screens/Online/ChatBlockItem/ChatBlockItem.d.ts +30 -0
  199. package/bc/Screens/Online/ChatCreate/ChatCreate.d.ts +66 -0
  200. package/bc/Screens/Online/ChatRoom/ChatRoom.d.ts +1342 -0
  201. package/bc/Screens/Online/ChatRoom/Commands.d.ts +66 -0
  202. package/bc/Screens/Online/ChatSearch/ChatSearch.d.ts +241 -0
  203. package/bc/Screens/Online/ChatSelect/ChatSelect.d.ts +33 -0
  204. package/bc/Screens/Online/ForbiddenWords/ForbiddenWords.d.ts +33 -0
  205. package/bc/Screens/Online/Game/OnlineGame.d.ts +69 -0
  206. package/bc/Screens/Online/GameClubCard/GameClubCard.d.ts +131 -0
  207. package/bc/Screens/Online/GameLARP/GameLARP.d.ts +279 -0
  208. package/bc/Screens/Online/GameMagicBattle/GameMagicBattle.d.ts +159 -0
  209. package/bc/Screens/Online/WheelFortuneCustomize/WheelFortuneCustomize.d.ts +24 -0
  210. package/bc/Screens/Room/Arcade/Arcade.d.ts +94 -0
  211. package/bc/Screens/Room/AsylumBedroom/AsylumBedroom.d.ts +16 -0
  212. package/bc/Screens/Room/AsylumEntrance/AsylumEntrance.d.ts +265 -0
  213. package/bc/Screens/Room/AsylumGGTS/AsylumGGTS.d.ts +330 -0
  214. package/bc/Screens/Room/AsylumMeeting/AsylumMeeting.d.ts +110 -0
  215. package/bc/Screens/Room/AsylumTherapy/AsylumTherapy.d.ts +117 -0
  216. package/bc/Screens/Room/Cafe/Cafe.d.ts +144 -0
  217. package/bc/Screens/Room/Cell/Cell.d.ts +32 -0
  218. package/bc/Screens/Room/ClubCardLounge/ClubCardLounge.d.ts +28 -0
  219. package/bc/Screens/Room/CollegeCafeteria/CollegeCafeteria.d.ts +57 -0
  220. package/bc/Screens/Room/CollegeChess/CollegeChess.d.ts +75 -0
  221. package/bc/Screens/Room/CollegeDetention/CollegeDetention.d.ts +98 -0
  222. package/bc/Screens/Room/CollegeEntrance/CollegeEntrance.d.ts +54 -0
  223. package/bc/Screens/Room/CollegeTeacher/CollegeTeacher.d.ts +71 -0
  224. package/bc/Screens/Room/CollegeTennis/CollegeTennis.d.ts +47 -0
  225. package/bc/Screens/Room/CollegeTheater/CollegeTheater.d.ts +100 -0
  226. package/bc/Screens/Room/Crafting/Crafting.d.ts +213 -0
  227. package/bc/Screens/Room/DailyJob/DailyJob.d.ts +111 -0
  228. package/bc/Screens/Room/Empty/Empty.d.ts +84 -0
  229. package/bc/Screens/Room/Gambling/Gambling.d.ts +269 -0
  230. package/bc/Screens/Room/Infiltration/Infiltration.d.ts +223 -0
  231. package/bc/Screens/Room/InfiltrationPerks/InfiltrationPerks.d.ts +42 -0
  232. package/bc/Screens/Room/Introduction/Introduction.d.ts +195 -0
  233. package/bc/Screens/Room/KidnapLeague/KidnapLeague.d.ts +253 -0
  234. package/bc/Screens/Room/LARP/LARP.d.ts +39 -0
  235. package/bc/Screens/Room/Magic/Magic.d.ts +199 -0
  236. package/bc/Screens/Room/MagicSchoolEscape/MagicSchoolEscape.d.ts +36 -0
  237. package/bc/Screens/Room/MagicSchoolLaboratory/MagicSchoolLaboratory.d.ts +170 -0
  238. package/bc/Screens/Room/MaidQuarters/MaidQuarters.d.ts +305 -0
  239. package/bc/Screens/Room/MainHall/MainHall.d.ts +255 -0
  240. package/bc/Screens/Room/Management/Management.d.ts +544 -0
  241. package/bc/Screens/Room/MovieStudio/MovieStudio.d.ts +178 -0
  242. package/bc/Screens/Room/Nursery/Nursery.d.ts +85 -0
  243. package/bc/Screens/Room/Pandora/Pandora.d.ts +348 -0
  244. package/bc/Screens/Room/PandoraPrison/PandoraPrison.d.ts +180 -0
  245. package/bc/Screens/Room/Photographic/Photographic.d.ts +53 -0
  246. package/bc/Screens/Room/Platform/Platform.d.ts +1730 -0
  247. package/bc/Screens/Room/PlatformDialog/PlatformDialog.d.ts +3966 -0
  248. package/bc/Screens/Room/PlatformIntro/PlatformIntro.d.ts +21 -0
  249. package/bc/Screens/Room/PlatformProfile/PlatformProfile.d.ts +62 -0
  250. package/bc/Screens/Room/Poker/Poker.d.ts +141 -0
  251. package/bc/Screens/Room/Poker/PokerHandValue.d.ts +65 -0
  252. package/bc/Screens/Room/Prison/Prison.d.ts +118 -0
  253. package/bc/Screens/Room/Private/Private.d.ts +781 -0
  254. package/bc/Screens/Room/PrivateBed/PrivateBed.d.ts +78 -0
  255. package/bc/Screens/Room/PrivateRansom/PrivateRansom.d.ts +28 -0
  256. package/bc/Screens/Room/Sarah/Sarah.d.ts +162 -0
  257. package/bc/Screens/Room/Shibari/Shibari.d.ts +162 -0
  258. package/bc/Screens/Room/Shop/Shop.d.ts +162 -0
  259. package/bc/Screens/Room/SlaveMarket/SlaveMarket.d.ts +90 -0
  260. package/bc/Screens/Room/Stable/Stable.d.ts +236 -0
  261. package/bc/Scripts/Activity.d.ts +270 -0
  262. package/bc/Scripts/AfkTimer.d.ts +43 -0
  263. package/bc/Scripts/Animation.d.ts +81 -0
  264. package/bc/Scripts/Asset.d.ts +216 -0
  265. package/bc/Scripts/Audio.d.ts +105 -0
  266. package/bc/Scripts/Character.d.ts +495 -0
  267. package/bc/Scripts/CharacterName.d.ts +1 -0
  268. package/bc/Scripts/ColorPicker.d.ts +155 -0
  269. package/bc/Scripts/Common.d.ts +499 -0
  270. package/bc/Scripts/CommonDraw.d.ts +34 -0
  271. package/bc/Scripts/ControllerSupport.d.ts +107 -0
  272. package/bc/Scripts/Dialog.d.ts +970 -0
  273. package/bc/Scripts/DictionaryBuilder.d.ts +210 -0
  274. package/bc/Scripts/Drawing.d.ts +581 -0
  275. package/bc/Scripts/Drawing3D.d.ts +21 -0
  276. package/bc/Scripts/DynamicDraw.d.ts +310 -0
  277. package/bc/Scripts/Element.d.ts +154 -0
  278. package/bc/Scripts/ExtendedItem.d.ts +339 -0
  279. package/bc/Scripts/GLDraw.d.ts +223 -0
  280. package/bc/Scripts/Game.d.ts +61 -0
  281. package/bc/Scripts/GameLog.d.ts +87 -0
  282. package/bc/Scripts/Graph.d.ts +46 -0
  283. package/bc/Scripts/Import.d.ts +7 -0
  284. package/bc/Scripts/Inventory.d.ts +509 -0
  285. package/bc/Scripts/MiniGame.d.ts +30 -0
  286. package/bc/Scripts/ModularItem.d.ts +286 -0
  287. package/bc/Scripts/Mouse.d.ts +34 -0
  288. package/bc/Scripts/NPC.d.ts +105 -0
  289. package/bc/Scripts/Notification.d.ts +120 -0
  290. package/bc/Scripts/PortalLink.d.ts +159 -0
  291. package/bc/Scripts/Property.d.ts +98 -0
  292. package/bc/Scripts/Reputation.d.ts +36 -0
  293. package/bc/Scripts/Server.d.ts +239 -0
  294. package/bc/Scripts/Skill.d.ts +107 -0
  295. package/bc/Scripts/Speech.d.ts +145 -0
  296. package/bc/Scripts/Struggle.d.ts +357 -0
  297. package/bc/Scripts/Testing.d.ts +30 -0
  298. package/bc/Scripts/Text.d.ts +92 -0
  299. package/bc/Scripts/TextItem.d.ts +65 -0
  300. package/bc/Scripts/TightenLoosenItem.d.ts +31 -0
  301. package/bc/Scripts/Timer.d.ts +62 -0
  302. package/bc/Scripts/Translation.d.ts +101 -0
  303. package/bc/Scripts/TypedItem.d.ts +242 -0
  304. package/bc/Scripts/Validation.d.ts +324 -0
  305. package/bc/Scripts/VariableHeight.d.ts +108 -0
  306. package/bc/Scripts/VibratorMode.d.ts +209 -0
  307. package/bc/Scripts/lib/LZString.d.ts +12 -0
  308. package/bc/Scripts/lib/three/FBXLoader.d.ts +0 -0
  309. package/bc/Scripts/lib/three/GLTFLoader.d.ts +0 -0
  310. package/bc/Scripts/lib/webgl/resources/m4.d.ts +0 -0
  311. package/bc/Typedef.d.ts +3933 -0
  312. package/package.json +19 -0
@@ -0,0 +1,499 @@
1
+ /**
2
+ * Checks if a variable is a number
3
+ * @param {any} n - Variable to check for
4
+ * @returns {n is number} - Returns TRUE if the variable is a finite number
5
+ */
6
+ declare function CommonIsNumeric(n: any): n is number;
7
+ /**
8
+ * Gets the current time as a string
9
+ * @returns {string} - Returns the current date and time in a yyyy-mm-dd hh:mm:ss format
10
+ */
11
+ declare function CommonGetFormatDate(): string;
12
+ /**
13
+ * Detects if the user is on a mobile browser
14
+ * @returns {boolean} - Returns TRUE if the user is on a mobile browser
15
+ */
16
+ declare function CommonDetectMobile(): boolean;
17
+ /**
18
+ * Gets the current browser name and version
19
+ * @returns {{Name: string, Version: string}} - Browser info
20
+ */
21
+ declare function CommonGetBrowser(): {
22
+ Name: string;
23
+ Version: string;
24
+ };
25
+ /**
26
+ * Parse a CSV file content into an array
27
+ * @param {string} str - Content of the CSV
28
+ * @returns {string[][]} Array representing each line of the parsed content, each line itself is split by commands and stored within an array.
29
+ */
30
+ declare function CommonParseCSV(str: string): string[][];
31
+ /**
32
+ * Read a CSV file from cache, or fetch it from the server
33
+ * @param {string} Array - Name of where the cached text is stored
34
+ * @param {string} Path - Path/Group in which the screen is located
35
+ * @param {string} Screen - Screen for which the file is for
36
+ * @param {string} File - Name of the file to get
37
+ * @returns {void} - Nothing
38
+ */
39
+ declare function CommonReadCSV(Array: string, Path: string, Screen: string, File: string): void;
40
+ /**
41
+ * AJAX utility to get a file and return its content. By default will retry requests 10 times
42
+ * @param {string} Path - Path of the resource to request
43
+ * @param {(this: XMLHttpRequest, xhr: XMLHttpRequest) => void} Callback - Callback to execute once the resource is received
44
+ * @param {number} [RetriesLeft] - How many more times to retry if the request fails - after this hits zero, an error will be logged
45
+ * @returns {void} - Nothing
46
+ */
47
+ declare function CommonGet(Path: string, Callback: (this: XMLHttpRequest, xhr: XMLHttpRequest) => void, RetriesLeft?: number): void;
48
+ /**
49
+ * Retry handler for CommonGet requests. Exponentially backs off retry attempts up to a limit of 1 minute. By default,
50
+ * retries up to a maximum of 10 times.
51
+ * @param {string} Path - The path of the resource to request
52
+ * @param {(this: XMLHttpRequest, xhr: XMLHttpRequest) => void} Callback - Callback to execute once the resource is received
53
+ * @param {number} [RetriesLeft] - How many more times to retry - after this hits zero, an error will be logged
54
+ * @returns {void} - Nothing
55
+ */
56
+ declare function CommonGetRetry(Path: string, Callback: (this: XMLHttpRequest, xhr: XMLHttpRequest) => void, RetriesLeft?: number): void;
57
+ /**
58
+ * Catches the clicks on the main screen and forwards it to the current screen click function if it exists, otherwise it sends it to the dialog click function
59
+ * @param {MouseEvent | TouchEvent} event - The event that triggered this
60
+ * @returns {void} - Nothing
61
+ */
62
+ declare function CommonClick(event: MouseEvent | TouchEvent): void;
63
+ /**
64
+ * Returns TRUE if a section of the screen is currently touched on a mobile device
65
+ * @param {number} X - The X position
66
+ * @param {number} Y - The Y position
67
+ * @param {number} W - The width of the square
68
+ * @param {number} H - The height of the square
69
+ * @param {TouchList} [TL] - Can give a specific touch event instead of the default one
70
+ * @returns {boolean}
71
+ */
72
+ declare function CommonTouchActive(X: number, Y: number, W: number, H: number, TL?: TouchList): boolean;
73
+ /**
74
+ * Catches key presses on the main screen and forwards it to the current screen key down function if it exists, otherwise it sends it to the dialog key down function
75
+ * @param {KeyboardEvent} event - The event that triggered this
76
+ * @returns {void} - Nothing
77
+ */
78
+ declare function CommonKeyDown(event: KeyboardEvent): void;
79
+ /**
80
+ * Calls a basic dynamic function if it exists, for complex functions, use: CommonDynamicFunctionParams
81
+ * @param {string} FunctionName - Name of the function to call
82
+ * @returns {void} - Nothing
83
+ */
84
+ declare function CommonDynamicFunction(FunctionName: string): void;
85
+ /**
86
+ * Calls a dynamic function with parameters (if it exists), also allow ! in front to reverse the result. The dynamic function is the provided function name in the dialog option object and it is prefixed by the current screen.
87
+ * @param {string} FunctionName - Function name to call dynamically
88
+ * @returns {*} - Returns what the dynamic function returns or FALSE if the function does not exist
89
+ */
90
+ declare function CommonDynamicFunctionParams(FunctionName: string): any;
91
+ /**
92
+ * Calls a named global function with the passed in arguments, if the named function exists. Differs from
93
+ * CommonDynamicFunctionParams in that arguments are not parsed from the passed in FunctionName string, but
94
+ * passed directly into the function call, allowing for more complex JS objects to be passed in. This
95
+ * function will not log to console if the provided function name does not exist as a global function.
96
+ * @param {string} FunctionName - The name of the global function to call
97
+ * @param {readonly any[]} [args] - zero or more arguments to be passed to the function (optional)
98
+ * @returns {any} - returns the result of the function call, or undefined if the function name isn't valid
99
+ */
100
+ declare function CommonCallFunctionByName(FunctionName: string, ...args: any[]): any;
101
+ /**
102
+ * Behaves exactly like CommonCallFunctionByName, but logs a warning if the function name is invalid.
103
+ * @param {string} FunctionName - The name of the global function to call
104
+ * @param {readonly any[]} [args] - zero or more arguments to be passed to the function (optional)
105
+ * @returns {any} - returns the result of the function call, or undefined if the function name isn't valid
106
+ */
107
+ declare function CommonCallFunctionByNameWarn(FunctionName: string, ...args: any[]): any;
108
+ /**
109
+ * Sets the current screen and calls the loading script if needed
110
+ * @param {ModuleType} NewModule - Module of the screen to display
111
+ * @param {string} NewScreen - Screen to display
112
+ * @returns {void} - Nothing
113
+ */
114
+ declare function CommonSetScreen(NewModule: ModuleType, NewScreen: string): void;
115
+ /**
116
+ * Gets the current time in ms
117
+ * @returns {number} - Date in ms
118
+ */
119
+ declare function CommonTime(): number;
120
+ /**
121
+ * Checks if a given value is a valid HEX color code
122
+ * @param {string} Value - Potential HEX color code
123
+ * @returns {boolean} - Returns TRUE if the string is a valid HEX color
124
+ */
125
+ declare function CommonIsColor(Value: string): boolean;
126
+ /**
127
+ * Checks whether an item's color has a valid value that can be interpreted by the drawing
128
+ * functions. Valid values are null, undefined, strings, and an array containing any of the
129
+ * aforementioned types.
130
+ * @param {null | string | readonly (null | string)[]} [Color] - The Color value to check
131
+ * @returns {boolean} - Returns TRUE if the color is a valid item color
132
+ */
133
+ declare function CommonColorIsValid(Color?: null | string | readonly (null | string)[]): boolean;
134
+ /**
135
+ * Check that the passed string looks like an acceptable email address.
136
+ *
137
+ * @param {string} Email
138
+ * @returns {boolean}
139
+ */
140
+ declare function CommonEmailIsValid(Email: string): boolean;
141
+ /**
142
+ * Remove item from list on given index and returns it
143
+ * @template T
144
+ * @param {T[]} list
145
+ * @param {number} index
146
+ * @returns {undefined|T}
147
+ */
148
+ declare function CommonRemoveItemFromList<T>(list: T[], index: number): T;
149
+ /**
150
+ * Removes random item from list and returns it
151
+ * @template T
152
+ * @param {T[]} list
153
+ * @returns {T}
154
+ */
155
+ declare function CommonRemoveRandomItemFromList<T>(list: T[]): T;
156
+ /**
157
+ * Get a random item from a list while making sure not to pick the previous one.
158
+ * Function expects unique values in the list. If there are multiple instances of ItemPrevious, it may still return it.
159
+ * @template T
160
+ * @param {T} ItemPrevious - Previously selected item from the given list
161
+ * @param {readonly T[]} ItemList - List for which to pick a random item from
162
+ * @returns {T} - The randomly selected item from the list
163
+ */
164
+ declare function CommonRandomItemFromList<T>(ItemPrevious: T, ItemList: readonly T[]): T;
165
+ /**
166
+ * Converts a string of numbers split by commas to an array, sanitizes the array by removing all NaN or undefined elements.
167
+ * @param {string} s - String of numbers split by commas
168
+ * @returns {number[]} - Array of valid numbers from the given string
169
+ */
170
+ declare function CommonConvertStringToArray(s: string): number[];
171
+ /**
172
+ * Shuffles all characters in a string
173
+ * @param {string} string - The string to shuffle
174
+ * @returns {string} - The shuffled string
175
+ */
176
+ declare function CommonStringShuffle(string: string): string;
177
+ /**
178
+ * Converts an array to a string separated by commas (equivalent of .join(","))
179
+ * @param {readonly unknown[]} Arr - Array to convert to a joined string
180
+ * @returns {string} - String of all the array items joined together
181
+ */
182
+ declare function CommonConvertArrayToString(Arr: readonly unknown[]): string;
183
+ /**
184
+ * Checks whether two item colors are equal. An item color may either be a string or an array of strings.
185
+ * @param {string | readonly string[]} C1 - The first color to check
186
+ * @param {string | readonly string[]} C2 - The second color to check
187
+ * @returns {boolean} - TRUE if C1 and C2 represent the same item color, FALSE otherwise
188
+ */
189
+ declare function CommonColorsEqual(C1: string | readonly string[], C2: string | readonly string[]): boolean;
190
+ /**
191
+ * Checks whether two arrays are equal. The arrays are considered equal if they have the same length and contain the same items in the same
192
+ * order, as determined by === comparison
193
+ * @param {readonly *[]} a1 - The first array to compare
194
+ * @param {readonly *[]} a2 - The second array to compare
195
+ * @param {boolean} [ignoreOrder] - Whether to ignore item order when considering equality
196
+ * @returns {boolean} - TRUE if both arrays have the same length and contain the same items in the same order, FALSE otherwise
197
+ */
198
+ declare function CommonArraysEqual(a1: readonly any[], a2: readonly any[], ignoreOrder?: boolean): boolean;
199
+ /**
200
+ * Creates a debounced wrapper for the provided function with the provided wait time. The wrapped function will not be called as long as
201
+ * the debounced function continues to be called. If the debounced function is called, and then not called again within the wait time, the
202
+ * wrapped function will be called.
203
+ * @param {function} func - The function to debounce
204
+ * @returns {function} - A debounced version of the provided function
205
+ */
206
+ declare function CommonDebounce(func: Function): Function;
207
+ /**
208
+ * Creates a throttling wrapper for the provided function with the provided wait time. If the wrapped function has been successfully called
209
+ * within the wait time, further call attempts will be delayed until the wait time has passed.
210
+ * @param {function} func - The function to throttle
211
+ * @returns {function} - A throttled version of the provided function
212
+ */
213
+ declare function CommonThrottle(func: Function): Function;
214
+ /**
215
+ * Creates a wrapper for a function to limit how often it can be called. The player-defined wait interval setting determines the
216
+ * allowed frequency. Below 100 ms the function will be throttled and above will be debounced.
217
+ * @template {(...args: any) => any} FunctionType
218
+ * @param {FunctionType} func - The function to limit calls of
219
+ * @param {number} [minWait=0] - A lower bound for how long the wait interval can be, 0 by default
220
+ * @param {number} [maxWait=1000] - An upper bound for how long the wait interval can be, 1 second by default
221
+ * @returns {FunctionType} - A debounced or throttled version of the function
222
+ */
223
+ declare function CommonLimitFunction<FunctionType extends (...args: any) => any>(func: FunctionType, minWait?: number, maxWait?: number): FunctionType;
224
+ /**
225
+ * Creates a simple memoizer.
226
+ * The memoized function does calculate its result exactly once and from that point on, uses
227
+ * the result stored in a local cache to speed up things.
228
+ * @template {(...args: any) => any} T
229
+ * @param {T} func - The function to memoize
230
+ * @param {((arg: any) => string)[]} argConvertors - A list of stringification functions for creating a memo, one for each function argument
231
+ * @returns {MemoizedFunction<T>} - The result of the memoized function
232
+ */
233
+ declare function CommonMemoize<T extends (...args: any) => any>(func: T, argConvertors?: ((arg: any) => string)[]): MemoizedFunction<T>;
234
+ /**
235
+ * Take a screenshot of specified area in "photo mode" and open the image in a new tab
236
+ * @param {number} Left - Position of the area to capture from the left of the canvas
237
+ * @param {number} Top - Position of the area to capture from the top of the canvas
238
+ * @param {number} Width - Width of the area to capture
239
+ * @param {number} Height - Height of the area to capture
240
+ * @returns {void} - Nothing
241
+ */
242
+ declare function CommonTakePhoto(Left: number, Top: number, Width: number, Height: number): void;
243
+ /**
244
+ * Takes an array of items and converts it to record format
245
+ * @param { { Group: string; Name: string; Type?: string|null }[] } arr The array of items
246
+ * @returns { { [group: string]: { [name: string]: string[] } } } Output in object foramat
247
+ */
248
+ declare function CommonPackItemArray(arr: {
249
+ Group: string;
250
+ Name: string;
251
+ Type?: string | null;
252
+ }[]): {
253
+ [group: string]: {
254
+ [name: string]: string[];
255
+ };
256
+ };
257
+ /**
258
+ * Takes an record format of items and converts it to array
259
+ * @param { { [group: string]: { [name: string]: string[] } } } arr Object defining items
260
+ * @return { { Group: string; Name: string; Type?: string }[] } The array of items
261
+ */
262
+ declare function CommonUnpackItemArray(arr: {
263
+ [group: string]: {
264
+ [name: string]: string[];
265
+ };
266
+ }): {
267
+ Group: string;
268
+ Name: string;
269
+ Type?: string;
270
+ }[];
271
+ /**
272
+ * Compares two version numbers and returns -1/0/1 if Other number is smaller/same/larger than Current one
273
+ * @param {string} Current Current version number
274
+ * @param {string} Other Other version number
275
+ * @returns {-1|0|1} Comparison result
276
+ */
277
+ declare function CommonCompareVersion(Current: string, Other: string): -1 | 0 | 1;
278
+ /**
279
+ * A simple deep equality check function which checks whether two objects are equal. The function traverses recursively
280
+ * into objects and arrays to check for equality. Primitives and simple types are considered equal as defined by `===`.
281
+ * @param {*} obj1 - The first object to compare
282
+ * @param {*} obj2 - The second object to compare
283
+ * @returns {boolean} - TRUE if both objects are equal, up to arbitrarily deeply nested property values, FALSE
284
+ * otherwise.
285
+ */
286
+ declare function CommonDeepEqual(obj1: any, obj2: any): boolean;
287
+ /**
288
+ * Adds all items from the source array to the destination array if they aren't already included
289
+ * @template T
290
+ * @param {T[]} dest - The destination array
291
+ * @param {readonly T[]} src - The source array
292
+ * @returns {T[]} - The destination array
293
+ */
294
+ declare function CommonArrayConcatDedupe<T>(dest: T[], src: readonly T[]): T[];
295
+ /**
296
+ * Common function for removing a padlock from an item and publishing a corresponding chat message (must be called with
297
+ * the item's group focused)
298
+ * @param {Character} C - The character on whom the item is equipped
299
+ * @param {Item} Item - The item to unlock
300
+ * @returns {void} - Nothing
301
+ */
302
+ declare function CommonPadlockUnlock(C: Character, Item: Item): void;
303
+ /**
304
+ * Common noop function
305
+ * @returns {void} - Nothing
306
+ */
307
+ declare function CommonNoop(): void;
308
+ /**
309
+ * Redirects the address to HTTPS for all production environments, returns the proper heroku server
310
+ * @returns {String} - Returns the proper server to use in production or test
311
+ */
312
+ declare function CommonGetServer(): string;
313
+ /**
314
+ * Performs the required substitutions on the given message
315
+ *
316
+ * @param {string} msg - The string to perform the substitutions on.
317
+ * @param {CommonSubtituteSubstitution[]} substitutions - An array of [string, replacement, replacer?] subtitutions.
318
+ */
319
+ declare function CommonStringSubstitute(msg: string, substitutions: CommonSubtituteSubstitution[]): string;
320
+ /**
321
+ * Returns a nice version of the passed strings
322
+ *
323
+ * This turns ["this", "this", "that"] into "this, this, and that" using appropriate localization
324
+ *
325
+ * @param {string[]} strings The strings to join
326
+ */
327
+ declare function CommonArrayJoinPretty(strings: string[]): string;
328
+ /**
329
+ * Returns a titlecased version of the given string.
330
+ * @param {string} str
331
+ * @returns {string}
332
+ */
333
+ declare function CommonStringTitlecase(str: string): string;
334
+ /**
335
+ * Censors a string or words in that string based on the player preferences
336
+ * @param {string} S - The string to censor
337
+ * @returns {String} - The censored string
338
+ */
339
+ declare function CommonCensor(S: string): string;
340
+ /**
341
+ * Type guard which checks that a value is a simple object (i.e. a non-null object which is not an array)
342
+ * @param {unknown} value - The value to test
343
+ * @returns {value is Record<string, unknown>}
344
+ */
345
+ declare function CommonIsObject(value: unknown): value is Record<string, unknown>;
346
+ /**
347
+ * Deep-clones an object
348
+ * @todo JSON serialization will break things like functions, Sets and Maps.
349
+ * @template T
350
+ * @param {T} obj
351
+ * @returns {T}
352
+ */
353
+ declare function CommonCloneDeep<T>(obj: T): T;
354
+ /**
355
+ * Type guard which checks that a value is a non-negative (i.e. positive or zero) integer
356
+ * @param {unknown} value - The value to test
357
+ * @returns {value is number}
358
+ */
359
+ declare function CommonIsNonNegativeInteger(value: unknown): value is number;
360
+ /**
361
+ * Return whether BC is running in a browser environment (as opposed to Node.js as used for the test suite).
362
+ * @returns {boolean}
363
+ */
364
+ declare function IsBrowser(): boolean;
365
+ /**
366
+ * A version of {@link Array.isArray} more friendly towards readonly arrays.
367
+ * @param {unknown} arg - The to-be validated object
368
+ * @returns {arg is readonly unknown[]} Whether the passed object is a (potentially readonly) array
369
+ */
370
+ declare function CommonIsArray(arg: unknown): arg is readonly unknown[];
371
+ /**
372
+ * A {@link Object.keys} variant annotated to return respect literal key types
373
+ * @template {string} T
374
+ * @param {Partial<Record<T, unknown>>} record A record with string-based keys
375
+ * @returns {T[]} The keys in the passed record
376
+ */
377
+ declare function CommonKeys<T extends string>(record: Partial<Record<T, unknown>>): T[];
378
+ /**
379
+ * A {@link Object.entries} variant annotated to return respect literal key types
380
+ * @template {string} KT
381
+ * @template VT
382
+ * @param {Partial<Record<KT, VT>>} record A record with string-based keys
383
+ * @returns {[KT, VT][]} The key/value pairs in the passed record
384
+ */
385
+ declare function CommonEntries<KT extends string, VT>(record: Partial<Record<KT, VT>>): [KT, VT][];
386
+ /**
387
+ * A {@link Array.includes} version annotated to return a type guard.
388
+ * @template T
389
+ * @param {readonly T[]} array The array in question
390
+ * @param {unknown} searchElement The value to search for
391
+ * @param {number} [fromIndex] Zero-based index at which to start searching
392
+ * @returns {searchElement is T} Whether the array contains the passed element
393
+ */
394
+ declare function CommonIncludes<T>(array: readonly T[], searchElement: unknown, fromIndex?: number): searchElement is T;
395
+ /**
396
+ * Automatically generate a grid based on parameters.
397
+ *
398
+ * This function takes a list of items, grid parameters, and a callback to manage
399
+ * creating a grid of them. It'll find the best value for margins between each cell,
400
+ * then will call the callback passing each item with its calculated coordinates in turn.
401
+ *
402
+ * Returning true from the callback to stop the iteration, useful for click handlers
403
+ * so you don't keep checking items after handling one.
404
+ *
405
+ * @template T
406
+ * @param {T[]} items
407
+ * @param {number} offset
408
+ * @param {CommonGenerateGridParameters} grid
409
+ * @param {CommonGenerateGridCallback<T>} callback
410
+ * @returns {number}
411
+ */
412
+ declare function CommonGenerateGrid<T>(items: T[], offset: number, grid: CommonGenerateGridParameters, callback: CommonGenerateGridCallback<T>): number;
413
+ /**
414
+ * Create a copy of the passed record with all specified keys removed
415
+ * @template {keyof RecordType} KeyType
416
+ * @template {{}} RecordType
417
+ * @param {RecordType} object - The to-be copied record
418
+ * @param {KeyType[]} keys - The to-be removed keys from the record
419
+ * @returns {Omit<RecordType, KeyType>}
420
+ */
421
+ declare function CommonOmit<KeyType_1 extends keyof RecordType, RecordType extends {}>(object: RecordType, keys: KeyType_1[]): Omit<RecordType, KeyType_1>;
422
+ /**
423
+ * Iterate through the passed iterable and yield index/value pairs.
424
+ * @template T
425
+ * @param {Iterable<T>} iterable - The to-be iterated iterable
426
+ * @param {number} start - The starting index
427
+ * @param {number} step - The step size in which the index is incremented
428
+ * @returns {Generator<[index: number, value: T], void>}
429
+ */
430
+ declare function CommonEnumerate<T>(iterable: Iterable<T>, start?: number, step?: number): Generator<[index: number, value: T], void, any>;
431
+ /**
432
+ * Return a value clamped to a minimum and maximum
433
+ * @param {number} value
434
+ * @param {number} min
435
+ * @param {number} max
436
+ */
437
+ declare function CommonClamp(value: number, min: number, max: number): number;
438
+ /** @type {PlayerCharacter} */
439
+ declare var Player: PlayerCharacter;
440
+ /** @type {number|string} */
441
+ declare var KeyPress: number | string;
442
+ /** @type {ModuleType} */
443
+ declare var CurrentModule: ModuleType;
444
+ /** @type {string} */
445
+ declare var CurrentScreen: string;
446
+ /** @type {ScreenFunctions} */
447
+ declare var CurrentScreenFunctions: ScreenFunctions;
448
+ /** @type {Character|NPCCharacter|null} */
449
+ declare var CurrentCharacter: Character | NPCCharacter | null;
450
+ declare var CurrentOnlinePlayers: number;
451
+ declare var CurrentDarkFactor: number;
452
+ declare var CommonIsMobile: boolean;
453
+ /** @type {Record<string, string[][]>} */
454
+ declare var CommonCSVCache: Record<string, string[][]>;
455
+ declare var CutsceneStage: number;
456
+ declare var CommonPhotoMode: boolean;
457
+ /**
458
+ * An enum encapsulating possible chatroom message substitution tags. Character name substitution tags are interpreted
459
+ * in chatrooms as follows (assuming the character name is Ben987):
460
+ * SOURCE_CHAR: "Ben987"
461
+ * DEST_CHAR: "Ben987's" (if character is not self), "her" (if character is self)
462
+ * DEST_CHAR_NAME: "Ben987's"
463
+ * TARGET_CHAR: "Ben987" (if character is not self), "herself" (if character is self)
464
+ * TARGET_CHAR_NAME: "Ben987"
465
+ * Additionally, sending the following tags will ensure that asset names in messages are correctly translated by
466
+ * recipients:
467
+ * ASSET_NAME: (substituted with the localized name of the asset, if available)
468
+ * @type {Record<"SOURCE_CHAR"|"DEST_CHAR"|"DEST_CHAR_NAME"|"TARGET_CHAR"|"TARGET_CHAR_NAME"|"ASSET_NAME"|"AUTOMATIC", CommonChatTags>}
469
+ */
470
+ declare const CommonChatTags: Record<"SOURCE_CHAR" | "DEST_CHAR" | "DEST_CHAR_NAME" | "TARGET_CHAR" | "TARGET_CHAR_NAME" | "ASSET_NAME" | "AUTOMATIC", CommonChatTags>;
471
+ /**
472
+ * A map of keys to common font stack definitions. Each stack definition is a
473
+ * two-item array whose first item is an ordered list of fonts, and whose
474
+ * second item is the generic fallback font family (e.g. sans-serif, serif,
475
+ * etc.)
476
+ * @constant
477
+ * @type {Object.<String, [String[], String]>}
478
+ */
479
+ declare const CommonFontStacks: any;
480
+ /**
481
+ * Memoized getter function. Returns a font string specifying the player's
482
+ * preferred font and the provided size. This is memoized as it is called on
483
+ * every frame in many cases.
484
+ * @param {number} size - The font size that should be specified in the
485
+ * returned font string
486
+ * @returns {string} - A font string specifying the requested font size and
487
+ * the player's preferred font stack. For example:
488
+ * 12px "Courier New", "Courier", monospace
489
+ */
490
+ declare const CommonGetFont: MemoizedFunction<(size: any) => string>;
491
+ /**
492
+ * Memoized getter function. Returns a font string specifying the player's
493
+ * preferred font stack. This is memoized as it is called on every frame in
494
+ * many cases.
495
+ * @returns {string} - A font string specifying the player's preferred font
496
+ * stack. For example:
497
+ * "Courier New", "Courier", monospace
498
+ */
499
+ declare const CommonGetFontName: MemoizedFunction<() => string>;
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Prepares the character's drawing canvases before drawing the character's appearance.
3
+ * @param {Character} C - The character to prepare
4
+ * @returns {void} - Nothing
5
+ */
6
+ declare function CommonDrawCanvasPrepare(C: Character): void;
7
+ /**
8
+ * Draws the given character's appearance using the provided drawing callbacks
9
+ * @param {Character} C - The character whose appearance to draw
10
+ * @param {CommonDrawCallbacks} callbacks - The drawing callbacks to be used
11
+ */
12
+ declare function CommonDrawAppearanceBuild(C: Character, { clearRect, clearRectBlink, drawCanvas, drawCanvasBlink, drawImage, drawImageBlink, drawImageColorize, drawImageColorizeBlink, }: CommonDrawCallbacks): void;
13
+ /**
14
+ * Determines whether the provided color is valid
15
+ * @param {string} Color - The color
16
+ * @param {AssetGroup} AssetGroup - The asset group the color is being used fo
17
+ * @returns {boolean} - Whether the color is valid
18
+ */
19
+ declare function CommonDrawColorValid(Color: string, AssetGroup: AssetGroup): boolean;
20
+ /**
21
+ * Finds the correct pose to draw for drawable layer for the provided character from the provided list of allowed poses
22
+ * @param {Character} C - The character to check for poses against
23
+ * @param {readonly AssetPoseName[]} AllowedPoses - The list of permitted poses for the current layer
24
+ * @return {null | AssetPoseName} - The name of the pose to draw for the layer, or an empty string if no pose should be drawn
25
+ */
26
+ declare function CommonDrawFindPose(C: Character, AllowedPoses: readonly AssetPoseName[]): null | AssetPoseName;
27
+ /**
28
+ * Finds the pose that should be used when a given asset (and optionally layer) is drawn.
29
+ * @param {Character} C - The character whose poses to check
30
+ * @param {Asset} A - The asset to check
31
+ * @param {AssetLayer} [Layer] - The layer to check (optional)
32
+ * @returns {null | AssetPoseName} - The pose to use when drawing the given asset (or layer)
33
+ */
34
+ declare function CommonDrawResolveAssetPose(C: Character, A: Asset, Layer?: AssetLayer): null | AssetPoseName;
@@ -0,0 +1,107 @@
1
+ /**
2
+ * Register the gamepad connection/disconnection events.
3
+ */
4
+ declare function ControllerStart(): void;
5
+ /**
6
+ * Check whether controller support is enabled.
7
+ *
8
+ * Uses the Player's configuration, with a workaround to allow
9
+ * the controller to activate on login.
10
+ */
11
+ declare function ControllerIsEnabled(): boolean;
12
+ /**
13
+ * Check whether we have detected a gamepad.
14
+ */
15
+ declare function ControllerIsActive(): boolean;
16
+ /**
17
+ * Main gamepad processing.
18
+ *
19
+ * This functions goes over gamepads and collects their inputs.
20
+ */
21
+ declare function ControllerProcess(): void;
22
+ /**
23
+ * Adds a point to the active points list.
24
+ *
25
+ * @param {number} X - The X coordinate of the point
26
+ * @param {number} Y - The Y coordinate of the point
27
+ */
28
+ declare function ControllerAddActiveArea(X: number, Y: number): void;
29
+ /**
30
+ * Removes all active points.
31
+ */
32
+ declare function ControllerClearAreas(): void;
33
+ /**
34
+ * handles the sitck input
35
+ * @param {readonly number[]} axes the raw data of all axes of the controller
36
+ */
37
+ declare function ControllerAxis(axes: readonly number[]): void;
38
+ /**
39
+ * Returns TRUE if current screen is a game that handles the controller, sends the input to that screen
40
+ * @param {readonly { pressed: boolean }[]} Buttons - The raw button data
41
+ * @return {boolean}
42
+ */
43
+ declare function ControllerManagedByGame(Buttons: readonly {
44
+ pressed: boolean;
45
+ }[]): boolean;
46
+ /**
47
+ * handles button input
48
+ * @param {readonly GamepadButton[]} buttons raw buttons data
49
+ */
50
+ declare function ControllerButton(buttons: readonly GamepadButton[]): void;
51
+ /**
52
+ * handles keyboard inputs in controller mode
53
+ * @returns {void} Nothing
54
+ */
55
+ declare function ControllerSupportKeyDown(): void;
56
+ /**
57
+ * A -> Click
58
+ */
59
+ declare function ControllerClick(): void;
60
+ /**
61
+ * Finds the closest point in a list, favoring the given direction.
62
+ *
63
+ * Used to navigate the active zones with a controller.
64
+ *
65
+ * @param {[X: number, Y: number]} point
66
+ * @param {[X: number, Y: number][]} points
67
+ * @param {"Up"|"Down"|"Left"|"Right"} direction
68
+ */
69
+ declare function ControllerFindClosestPoint(point: [X: number, Y: number], points: [X: number, Y: number][], direction: "Up" | "Down" | "Left" | "Right"): number[];
70
+ /**
71
+ * Moves the pointer throught the active zones in the direction wanted.
72
+ *
73
+ * @param {"Up"|"Down"|"Left"|"Right"} direction
74
+ */
75
+ declare function ControllerMoveToActiveZone(direction: "Up" | "Down" | "Left" | "Right"): void;
76
+ /**
77
+ * A list of points that can be interacted in the UI.
78
+ *
79
+ * @type {[X: number, Y: number][]}
80
+ */
81
+ declare var ControllerActiveAreas: [X: number, Y: number][];
82
+ /** Number of detected controllers */
83
+ declare var ControllerDetectedCount: number;
84
+ declare var ControllerButtonsRepeat: boolean;
85
+ declare var ControllerA: number;
86
+ declare var ControllerB: number;
87
+ declare var ControllerX: number;
88
+ declare var ControllerY: number;
89
+ declare var ControllerTriggerRight: number;
90
+ declare var ControllerTriggerLeft: number;
91
+ declare var ControllerStickUpDown: number;
92
+ declare var ControllerStickLeftRight: number;
93
+ declare var ControllerStickRight: number;
94
+ declare var ControllerStickDown: number;
95
+ declare var ControllerDPadUp: number;
96
+ declare var ControllerDPadDown: number;
97
+ declare var ControllerDPadLeft: number;
98
+ declare var ControllerDPadRight: number;
99
+ declare var Calibrating: boolean;
100
+ declare var ControllerStick: boolean;
101
+ declare var waitasec: boolean;
102
+ declare var ControllerSensitivity: number;
103
+ /** @type {number[]} */
104
+ declare var ControllerIgnoreStick: number[];
105
+ declare var ControllerDeadZone: number;
106
+ /** @type {Record<string, boolean>} */
107
+ declare var ControllerGameActiveButttons: Record<string, boolean>;