warscript 0.0.1-dev.ab8c392 → 0.0.1-dev.b34a02b

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 (115) hide show
  1. package/attributes.d.ts +0 -1
  2. package/binaryreader.d.ts +1 -0
  3. package/binaryreader.lua +3 -0
  4. package/core/types/frame.d.ts +5 -1
  5. package/core/types/frame.lua +34 -1
  6. package/core/types/group.d.ts +0 -1
  7. package/core/types/image.d.ts +0 -1
  8. package/core/types/missile.d.ts +2 -2
  9. package/core/types/missile.lua +8 -2
  10. package/core/types/unit.lua +8 -0
  11. package/core/util.d.ts +1 -1
  12. package/core/util.lua +6 -0
  13. package/decl/index.d.ts +1 -0
  14. package/engine/ability.d.ts +1 -1
  15. package/engine/behavior.d.ts +10 -10
  16. package/engine/behavior.lua +6 -6
  17. package/engine/behaviour/ability/apply-buff.d.ts +3 -5
  18. package/engine/behaviour/ability/apply-unit-behavior.d.ts +6 -1
  19. package/engine/behaviour/ability/damage.d.ts +33 -11
  20. package/engine/behaviour/ability/damage.lua +89 -31
  21. package/engine/behaviour/ability/heal.d.ts +33 -6
  22. package/engine/behaviour/ability/heal.lua +89 -10
  23. package/engine/behaviour/ability/instant-impact.lua +4 -0
  24. package/engine/behaviour/ability/restore-mana.d.ts +15 -0
  25. package/engine/behaviour/ability/restore-mana.lua +29 -0
  26. package/engine/behaviour/ability.d.ts +8 -1
  27. package/engine/behaviour/ability.lua +62 -0
  28. package/engine/behaviour/unit/stun-immunity.d.ts +0 -1
  29. package/engine/behaviour/unit.d.ts +8 -2
  30. package/engine/behaviour/unit.lua +27 -0
  31. package/engine/buff.d.ts +62 -20
  32. package/engine/buff.lua +247 -72
  33. package/engine/game-map.d.ts +7 -0
  34. package/engine/game-map.lua +32 -0
  35. package/engine/internal/ability.d.ts +1 -11
  36. package/engine/internal/ability.lua +2 -78
  37. package/engine/internal/item+owner.lua +2 -2
  38. package/engine/internal/unit/bonus.d.ts +9 -8
  39. package/engine/internal/unit/bonus.lua +6 -1
  40. package/engine/internal/unit/item.d.ts +23 -0
  41. package/engine/internal/unit/item.lua +74 -0
  42. package/engine/internal/unit+ability.lua +2 -2
  43. package/engine/internal/unit+transport.lua +4 -10
  44. package/engine/internal/unit-missile-launch.lua +25 -6
  45. package/engine/internal/unit.d.ts +48 -16
  46. package/engine/internal/unit.lua +316 -111
  47. package/engine/local-client.d.ts +7 -2
  48. package/engine/local-client.lua +81 -0
  49. package/engine/object-data/auxiliary/attachment-preset.d.ts +0 -1
  50. package/engine/object-data/auxiliary/combat-classification.d.ts +0 -2
  51. package/engine/object-data/entry/ability-type/blank-configurable.d.ts +0 -1
  52. package/engine/object-data/entry/ability-type/blank-passive.d.ts +0 -1
  53. package/engine/object-data/entry/ability-type/channel.d.ts +0 -1
  54. package/engine/object-data/entry/ability-type/mine.d.ts +10 -0
  55. package/engine/object-data/entry/ability-type/mine.lua +39 -0
  56. package/engine/object-data/entry/ability-type/spirit-touch.d.ts +2 -2
  57. package/engine/object-data/entry/ability-type/spirit-touch.lua +6 -6
  58. package/engine/object-data/entry/ability-type.d.ts +0 -1
  59. package/engine/object-data/entry/buff-type/applicable.d.ts +0 -1
  60. package/engine/object-data/entry/buff-type/blank.d.ts +0 -1
  61. package/engine/object-data/entry/buff-type.d.ts +0 -1
  62. package/engine/object-data/entry/destructible-type.d.ts +0 -1
  63. package/engine/object-data/entry/item-type/blank.d.ts +0 -1
  64. package/engine/object-data/entry/item-type.d.ts +12 -1
  65. package/engine/object-data/entry/item-type.lua +78 -0
  66. package/engine/object-data/entry/lightning-type.d.ts +0 -1
  67. package/engine/object-data/entry/unit-type.d.ts +21 -2
  68. package/engine/object-data/entry/unit-type.lua +223 -49
  69. package/engine/object-data/entry/upgrade/blank.d.ts +0 -1
  70. package/engine/object-data/entry/upgrade.d.ts +0 -1
  71. package/engine/object-data/entry.d.ts +2 -3
  72. package/engine/object-field/ability.d.ts +18 -1
  73. package/engine/object-field/ability.lua +51 -1
  74. package/engine/object-field.d.ts +0 -1
  75. package/engine/random.d.ts +1 -0
  76. package/engine/random.lua +9 -0
  77. package/engine/standard/entries/unit-type.d.ts +39 -1
  78. package/engine/standard/entries/unit-type.lua +39 -1
  79. package/engine/standard/fields/ability.d.ts +1 -1
  80. package/engine/standard/fields/ability.lua +1 -1
  81. package/engine/unit.d.ts +1 -0
  82. package/engine/unit.lua +10 -2
  83. package/event.d.ts +2 -3
  84. package/event.lua +9 -5
  85. package/index.d.ts +1 -0
  86. package/index.lua +1 -0
  87. package/lualib_bundle.lua +146 -42
  88. package/math/vec2.d.ts +2 -9
  89. package/math.d.ts +0 -2
  90. package/net/socket.d.ts +7 -1
  91. package/net/socket.lua +45 -4
  92. package/network.d.ts +1 -0
  93. package/network.lua +3 -2
  94. package/objutil/ability.d.ts +0 -1
  95. package/objutil/buff.d.ts +0 -1
  96. package/objutil/buff.lua +1 -1
  97. package/objutil/object.d.ts +0 -1
  98. package/objutil/unit.d.ts +0 -1
  99. package/package.json +13 -13
  100. package/patch-lua.d.ts +0 -0
  101. package/patch-lua.lua +10 -0
  102. package/property.d.ts +55 -0
  103. package/property.lua +374 -0
  104. package/string.d.ts +16 -0
  105. package/string.lua +5 -0
  106. package/util/stream.d.ts +0 -1
  107. package/utility/arrays.d.ts +3 -4
  108. package/utility/bit-set.d.ts +0 -2
  109. package/utility/linked-set.d.ts +11 -3
  110. package/utility/linked-set.lua +5 -2
  111. package/utility/lua-maps.d.ts +1 -2
  112. package/utility/lua-sets.d.ts +1 -2
  113. package/utility/types.d.ts +1 -0
  114. package/core/mapbounds.d.ts +0 -8
  115. package/core/mapbounds.lua +0 -12
@@ -1,12 +0,0 @@
1
- local ____exports = {}
2
- local ____rect = require("core.types.rect")
3
- local Rect = ____rect.Rect
4
- local ____region = require("core.types.region")
5
- local Region = ____region.Region
6
- ____exports.boundRect = Rect:of(GetWorldBounds())
7
- ____exports.boundRegion = Region:create()
8
- ____exports.boundRegion:addRect(____exports.boundRect)
9
- ____exports.boundMin = vec2(____exports.boundRect.minX, ____exports.boundRect.minY)
10
- ____exports.boundMax = vec2(____exports.boundRect.maxX, ____exports.boundRect.maxY)
11
- ____exports.boundCenter = (____exports.boundMin + ____exports.boundMax) * 0.5
12
- return ____exports