warscript 0.0.1-dev.959b9a7 → 0.0.1-dev.9d56c5c
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.
- package/attributes.d.ts +13 -0
- package/attributes.lua +16 -0
- package/core/types/handle.d.ts +2 -1
- package/core/types/handle.lua +5 -0
- package/engine/behaviour/ability/instant-impact.lua +4 -0
- package/engine/internal/unit-missile-launch.lua +1 -1
- package/engine/internal/unit.d.ts +36 -8
- package/engine/internal/unit.lua +215 -63
- package/engine/object-data/entry/ability-type/spirit-touch.d.ts +2 -2
- package/engine/object-data/entry/ability-type/spirit-touch.lua +6 -6
- package/engine/object-data/entry/unit-type.d.ts +37 -1
- package/engine/object-data/entry/unit-type.lua +333 -49
- package/engine/standard/entries/unit-type.d.ts +24 -1
- package/engine/standard/entries/unit-type.lua +24 -1
- package/package.json +3 -4
- package/string.d.ts +14 -0
- package/string.lua +9 -0
|
@@ -28,6 +28,16 @@ export declare class UnitTypeWeapon {
|
|
|
28
28
|
set attackType(attackType: AttackType);
|
|
29
29
|
get backSwingDuration(): number;
|
|
30
30
|
set backSwingDuration(backSwingDuration: number);
|
|
31
|
+
get cooldown(): number;
|
|
32
|
+
set cooldown(cooldown: number);
|
|
33
|
+
get damage(): [minimumDamage: number, maximumDamage: number];
|
|
34
|
+
set damage([minimumDamage, maximumDamage]: [number, number]);
|
|
35
|
+
get damageBase(): number;
|
|
36
|
+
set damageBase(damageBase: number);
|
|
37
|
+
get damageDiceCount(): number;
|
|
38
|
+
set damageDiceCount(damageDiceNumber: number);
|
|
39
|
+
get damageDiceSideCount(): number;
|
|
40
|
+
set damageDiceSideCount(damageDiceSideCount: number);
|
|
31
41
|
get impactDelay(): number;
|
|
32
42
|
set impactDelay(impactDelay: number);
|
|
33
43
|
get missileModelPath(): string;
|
|
@@ -122,6 +132,12 @@ export declare abstract class UnitType<Id extends UnitTypeId = UnitTypeId> exten
|
|
|
122
132
|
set modelPathSD(modelPathSD: string);
|
|
123
133
|
get modelPathHD(): string;
|
|
124
134
|
set modelPathHD(modelPathHD: string);
|
|
135
|
+
get runSpeed(): number;
|
|
136
|
+
set runSpeed(runSpeed: number);
|
|
137
|
+
get runSpeedSD(): number;
|
|
138
|
+
set runSpeedSD(runSpeedSD: number);
|
|
139
|
+
get runSpeedHD(): number;
|
|
140
|
+
set runSpeedHD(runSpeedHD: number);
|
|
125
141
|
get selectionCircleScale(): number;
|
|
126
142
|
set selectionCircleScale(selectionCircleScale: number);
|
|
127
143
|
get selectionCircleScaleSD(): number;
|
|
@@ -154,6 +170,12 @@ export declare abstract class UnitType<Id extends UnitTypeId = UnitTypeId> exten
|
|
|
154
170
|
set shadowImageXOffset(shadowImageXOffset: number);
|
|
155
171
|
get shadowImageYOffset(): number;
|
|
156
172
|
set shadowImageYOffset(shadowImageYOffset: number);
|
|
173
|
+
get walkSpeed(): number;
|
|
174
|
+
set walkSpeed(walkSpeed: number);
|
|
175
|
+
get walkSpeedSD(): number;
|
|
176
|
+
set walkSpeedSD(walkSpeedSD: number);
|
|
177
|
+
get walkSpeedHD(): number;
|
|
178
|
+
set walkSpeedHD(walkSpeedHD: number);
|
|
157
179
|
get armorSoundType(): ArmorSoundType;
|
|
158
180
|
set armorSoundType(armorSoundType: ArmorSoundType);
|
|
159
181
|
get armorSoundTypeSD(): ArmorSoundType;
|
|
@@ -164,9 +186,9 @@ export declare abstract class UnitType<Id extends UnitTypeId = UnitTypeId> exten
|
|
|
164
186
|
set combatClassifications(combatClassifications: CombatClassifications);
|
|
165
187
|
get unitClassifications(): UnitClassifications;
|
|
166
188
|
set unitClassifications(unitClassifications: UnitClassifications);
|
|
189
|
+
get weapons(): TupleOf<UnitTypeWeapon, 2>;
|
|
167
190
|
get firstWeapon(): UnitTypeWeapon;
|
|
168
191
|
get secondWeapon(): UnitTypeWeapon;
|
|
169
|
-
get weapons(): TupleOf<UnitTypeWeapon, 2>;
|
|
170
192
|
get flyHeight(): number;
|
|
171
193
|
set flyHeight(flyHeight: number);
|
|
172
194
|
get flyHeightMinimum(): number;
|
|
@@ -195,6 +217,16 @@ export declare abstract class UnitType<Id extends UnitTypeId = UnitTypeId> exten
|
|
|
195
217
|
set formationRank(formationRank: number);
|
|
196
218
|
get goldCost(): number;
|
|
197
219
|
set goldCost(goldCost: number);
|
|
220
|
+
get healthRegenerationRate(): number;
|
|
221
|
+
set healthRegenerationRate(healthRegenerationRate: number);
|
|
222
|
+
get manaRegenerationRate(): number;
|
|
223
|
+
set manaRegenerationRate(manaRegenerationRate: number);
|
|
224
|
+
get maximumHealth(): number;
|
|
225
|
+
set maximumHealth(maximumHealth: number);
|
|
226
|
+
get maximumMana(): number;
|
|
227
|
+
set maximumMana(maximumMana: number);
|
|
228
|
+
get initialMana(): number;
|
|
229
|
+
set initialMana(initialMana: number);
|
|
198
230
|
get isStructure(): boolean;
|
|
199
231
|
set isStructure(isStructure: boolean);
|
|
200
232
|
get race(): Race;
|
|
@@ -220,4 +252,8 @@ export declare abstract class HeroUnitType<Id extends HeroUnitTypeId = HeroUnitT
|
|
|
220
252
|
protected static generateId(): number;
|
|
221
253
|
get heroAbilityTypeIds(): AbilityTypeId[];
|
|
222
254
|
set heroAbilityTypeIds(heroAbilityTypeIds: AbilityTypeId[]);
|
|
255
|
+
get properNames(): string[];
|
|
256
|
+
set properNames(properNames: string | string[]);
|
|
257
|
+
get properNameCount(): number;
|
|
258
|
+
set properNameCount(properNameCount: number);
|
|
223
259
|
}
|
|
@@ -3,6 +3,7 @@ local __TS__Class = ____lualib.__TS__Class
|
|
|
3
3
|
local __TS__SetDescriptor = ____lualib.__TS__SetDescriptor
|
|
4
4
|
local __TS__New = ____lualib.__TS__New
|
|
5
5
|
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
6
|
+
local __TS__ArrayIsArray = ____lualib.__TS__ArrayIsArray
|
|
6
7
|
local ____exports = {}
|
|
7
8
|
local ____arrays = require("utility.arrays")
|
|
8
9
|
local arrayOfNotNull = ____arrays.arrayOfNotNull
|
|
@@ -72,21 +73,21 @@ __TS__SetDescriptor(
|
|
|
72
73
|
)
|
|
73
74
|
__TS__SetDescriptor(
|
|
74
75
|
UnitTypeWeapon.prototype,
|
|
75
|
-
"
|
|
76
|
+
"cooldown",
|
|
76
77
|
{
|
|
77
78
|
get = function(self)
|
|
78
79
|
local ____self_4 = self.unitType
|
|
79
80
|
return ____self_4.getNumberField(
|
|
80
81
|
____self_4,
|
|
81
|
-
"
|
|
82
|
+
("ua" .. tostring(self.index)) .. "c"
|
|
82
83
|
)
|
|
83
84
|
end,
|
|
84
|
-
set = function(self,
|
|
85
|
+
set = function(self, cooldown)
|
|
85
86
|
local ____self_5 = self.unitType
|
|
86
87
|
____self_5.setNumberField(
|
|
87
88
|
____self_5,
|
|
88
|
-
"
|
|
89
|
-
|
|
89
|
+
("ua" .. tostring(self.index)) .. "c",
|
|
90
|
+
cooldown
|
|
90
91
|
)
|
|
91
92
|
end
|
|
92
93
|
},
|
|
@@ -94,21 +95,42 @@ __TS__SetDescriptor(
|
|
|
94
95
|
)
|
|
95
96
|
__TS__SetDescriptor(
|
|
96
97
|
UnitTypeWeapon.prototype,
|
|
97
|
-
"
|
|
98
|
+
"damage",
|
|
99
|
+
{
|
|
100
|
+
get = function(self)
|
|
101
|
+
local minimumDamage = self.damageBase + self.damageDiceCount
|
|
102
|
+
local maximumDamage = self.damageBase + self.damageDiceCount * self.damageDiceSideCount
|
|
103
|
+
return {minimumDamage, maximumDamage}
|
|
104
|
+
end,
|
|
105
|
+
set = function(self, ____bindingPattern0)
|
|
106
|
+
local maximumDamage
|
|
107
|
+
local minimumDamage
|
|
108
|
+
minimumDamage = ____bindingPattern0[1]
|
|
109
|
+
maximumDamage = ____bindingPattern0[2]
|
|
110
|
+
self.damageBase = minimumDamage - 1
|
|
111
|
+
self.damageDiceCount = 1
|
|
112
|
+
self.damageDiceSideCount = maximumDamage - minimumDamage + 1
|
|
113
|
+
end
|
|
114
|
+
},
|
|
115
|
+
true
|
|
116
|
+
)
|
|
117
|
+
__TS__SetDescriptor(
|
|
118
|
+
UnitTypeWeapon.prototype,
|
|
119
|
+
"damageBase",
|
|
98
120
|
{
|
|
99
121
|
get = function(self)
|
|
100
122
|
local ____self_6 = self.unitType
|
|
101
|
-
return ____self_6.
|
|
123
|
+
return ____self_6.getNumberField(
|
|
102
124
|
____self_6,
|
|
103
|
-
("ua" .. tostring(self.index)) .. "
|
|
125
|
+
("ua" .. tostring(self.index)) .. "b"
|
|
104
126
|
)
|
|
105
127
|
end,
|
|
106
|
-
set = function(self,
|
|
128
|
+
set = function(self, damageBase)
|
|
107
129
|
local ____self_7 = self.unitType
|
|
108
|
-
____self_7.
|
|
130
|
+
____self_7.setNumberField(
|
|
109
131
|
____self_7,
|
|
110
|
-
("ua" .. tostring(self.index)) .. "
|
|
111
|
-
|
|
132
|
+
("ua" .. tostring(self.index)) .. "b",
|
|
133
|
+
damageBase
|
|
112
134
|
)
|
|
113
135
|
end
|
|
114
136
|
},
|
|
@@ -116,19 +138,107 @@ __TS__SetDescriptor(
|
|
|
116
138
|
)
|
|
117
139
|
__TS__SetDescriptor(
|
|
118
140
|
UnitTypeWeapon.prototype,
|
|
119
|
-
"
|
|
141
|
+
"damageDiceCount",
|
|
120
142
|
{
|
|
121
143
|
get = function(self)
|
|
122
144
|
local ____self_8 = self.unitType
|
|
123
145
|
return ____self_8.getNumberField(
|
|
124
146
|
____self_8,
|
|
125
|
-
("ua" .. tostring(self.index)) .. "
|
|
147
|
+
("ua" .. tostring(self.index)) .. "d"
|
|
126
148
|
)
|
|
127
149
|
end,
|
|
128
|
-
set = function(self,
|
|
150
|
+
set = function(self, damageDiceNumber)
|
|
129
151
|
local ____self_9 = self.unitType
|
|
130
152
|
____self_9.setNumberField(
|
|
131
153
|
____self_9,
|
|
154
|
+
("ua" .. tostring(self.index)) .. "d",
|
|
155
|
+
damageDiceNumber
|
|
156
|
+
)
|
|
157
|
+
end
|
|
158
|
+
},
|
|
159
|
+
true
|
|
160
|
+
)
|
|
161
|
+
__TS__SetDescriptor(
|
|
162
|
+
UnitTypeWeapon.prototype,
|
|
163
|
+
"damageDiceSideCount",
|
|
164
|
+
{
|
|
165
|
+
get = function(self)
|
|
166
|
+
local ____self_10 = self.unitType
|
|
167
|
+
return ____self_10.getNumberField(
|
|
168
|
+
____self_10,
|
|
169
|
+
("ua" .. tostring(self.index)) .. "s"
|
|
170
|
+
)
|
|
171
|
+
end,
|
|
172
|
+
set = function(self, damageDiceSideCount)
|
|
173
|
+
local ____self_11 = self.unitType
|
|
174
|
+
____self_11.setNumberField(
|
|
175
|
+
____self_11,
|
|
176
|
+
("ua" .. tostring(self.index)) .. "s",
|
|
177
|
+
damageDiceSideCount
|
|
178
|
+
)
|
|
179
|
+
end
|
|
180
|
+
},
|
|
181
|
+
true
|
|
182
|
+
)
|
|
183
|
+
__TS__SetDescriptor(
|
|
184
|
+
UnitTypeWeapon.prototype,
|
|
185
|
+
"impactDelay",
|
|
186
|
+
{
|
|
187
|
+
get = function(self)
|
|
188
|
+
local ____self_12 = self.unitType
|
|
189
|
+
return ____self_12.getNumberField(
|
|
190
|
+
____self_12,
|
|
191
|
+
"udp" .. tostring(self.index)
|
|
192
|
+
)
|
|
193
|
+
end,
|
|
194
|
+
set = function(self, impactDelay)
|
|
195
|
+
local ____self_13 = self.unitType
|
|
196
|
+
____self_13.setNumberField(
|
|
197
|
+
____self_13,
|
|
198
|
+
"udp" .. tostring(self.index),
|
|
199
|
+
impactDelay
|
|
200
|
+
)
|
|
201
|
+
end
|
|
202
|
+
},
|
|
203
|
+
true
|
|
204
|
+
)
|
|
205
|
+
__TS__SetDescriptor(
|
|
206
|
+
UnitTypeWeapon.prototype,
|
|
207
|
+
"missileModelPath",
|
|
208
|
+
{
|
|
209
|
+
get = function(self)
|
|
210
|
+
local ____self_14 = self.unitType
|
|
211
|
+
return ____self_14.getStringField(
|
|
212
|
+
____self_14,
|
|
213
|
+
("ua" .. tostring(self.index)) .. "m"
|
|
214
|
+
)
|
|
215
|
+
end,
|
|
216
|
+
set = function(self, missileModelPath)
|
|
217
|
+
local ____self_15 = self.unitType
|
|
218
|
+
____self_15.setStringField(
|
|
219
|
+
____self_15,
|
|
220
|
+
("ua" .. tostring(self.index)) .. "m",
|
|
221
|
+
missileModelPath
|
|
222
|
+
)
|
|
223
|
+
end
|
|
224
|
+
},
|
|
225
|
+
true
|
|
226
|
+
)
|
|
227
|
+
__TS__SetDescriptor(
|
|
228
|
+
UnitTypeWeapon.prototype,
|
|
229
|
+
"range",
|
|
230
|
+
{
|
|
231
|
+
get = function(self)
|
|
232
|
+
local ____self_16 = self.unitType
|
|
233
|
+
return ____self_16.getNumberField(
|
|
234
|
+
____self_16,
|
|
235
|
+
("ua" .. tostring(self.index)) .. "r"
|
|
236
|
+
)
|
|
237
|
+
end,
|
|
238
|
+
set = function(self, range)
|
|
239
|
+
local ____self_17 = self.unitType
|
|
240
|
+
____self_17.setNumberField(
|
|
241
|
+
____self_17,
|
|
132
242
|
("ua" .. tostring(self.index)) .. "r",
|
|
133
243
|
range
|
|
134
244
|
)
|
|
@@ -141,16 +251,16 @@ __TS__SetDescriptor(
|
|
|
141
251
|
"soundType",
|
|
142
252
|
{
|
|
143
253
|
get = function(self)
|
|
144
|
-
local
|
|
145
|
-
return
|
|
146
|
-
|
|
254
|
+
local ____self_18 = self.unitType
|
|
255
|
+
return ____self_18.getStringField(
|
|
256
|
+
____self_18,
|
|
147
257
|
"ucs" .. tostring(self.index)
|
|
148
258
|
)
|
|
149
259
|
end,
|
|
150
260
|
set = function(self, soundType)
|
|
151
|
-
local
|
|
152
|
-
|
|
153
|
-
|
|
261
|
+
local ____self_19 = self.unitType
|
|
262
|
+
____self_19.setStringField(
|
|
263
|
+
____self_19,
|
|
154
264
|
"ucs" .. tostring(self.index),
|
|
155
265
|
soundType
|
|
156
266
|
)
|
|
@@ -163,16 +273,16 @@ __TS__SetDescriptor(
|
|
|
163
273
|
"soundTypeSD",
|
|
164
274
|
{
|
|
165
275
|
get = function(self)
|
|
166
|
-
local
|
|
167
|
-
return
|
|
168
|
-
|
|
276
|
+
local ____self_20 = self.unitType
|
|
277
|
+
return ____self_20.getStringField(
|
|
278
|
+
____self_20,
|
|
169
279
|
("ucs" .. tostring(self.index)) .. ":sd"
|
|
170
280
|
)
|
|
171
281
|
end,
|
|
172
282
|
set = function(self, soundTypeSD)
|
|
173
|
-
local
|
|
174
|
-
|
|
175
|
-
|
|
283
|
+
local ____self_21 = self.unitType
|
|
284
|
+
____self_21.setStringField(
|
|
285
|
+
____self_21,
|
|
176
286
|
("ucs" .. tostring(self.index)) .. ":sd",
|
|
177
287
|
soundTypeSD
|
|
178
288
|
)
|
|
@@ -185,16 +295,16 @@ __TS__SetDescriptor(
|
|
|
185
295
|
"soundTypeHD",
|
|
186
296
|
{
|
|
187
297
|
get = function(self)
|
|
188
|
-
local
|
|
189
|
-
return
|
|
190
|
-
|
|
298
|
+
local ____self_22 = self.unitType
|
|
299
|
+
return ____self_22.getStringField(
|
|
300
|
+
____self_22,
|
|
191
301
|
("ucs" .. tostring(self.index)) .. ":hd"
|
|
192
302
|
)
|
|
193
303
|
end,
|
|
194
304
|
set = function(self, soundTypeHD)
|
|
195
|
-
local
|
|
196
|
-
|
|
197
|
-
|
|
305
|
+
local ____self_23 = self.unitType
|
|
306
|
+
____self_23.setStringField(
|
|
307
|
+
____self_23,
|
|
198
308
|
("ucs" .. tostring(self.index)) .. ":hd",
|
|
199
309
|
soundTypeHD
|
|
200
310
|
)
|
|
@@ -727,6 +837,45 @@ __TS__SetDescriptor(
|
|
|
727
837
|
},
|
|
728
838
|
true
|
|
729
839
|
)
|
|
840
|
+
__TS__SetDescriptor(
|
|
841
|
+
UnitType.prototype,
|
|
842
|
+
"runSpeed",
|
|
843
|
+
{
|
|
844
|
+
get = function(self)
|
|
845
|
+
return self:getNumberField("urun")
|
|
846
|
+
end,
|
|
847
|
+
set = function(self, runSpeed)
|
|
848
|
+
self:setNumberField("urun", runSpeed)
|
|
849
|
+
end
|
|
850
|
+
},
|
|
851
|
+
true
|
|
852
|
+
)
|
|
853
|
+
__TS__SetDescriptor(
|
|
854
|
+
UnitType.prototype,
|
|
855
|
+
"runSpeedSD",
|
|
856
|
+
{
|
|
857
|
+
get = function(self)
|
|
858
|
+
return self:getNumberField("urun:sd")
|
|
859
|
+
end,
|
|
860
|
+
set = function(self, runSpeedSD)
|
|
861
|
+
self:setNumberField("urun:sd", runSpeedSD)
|
|
862
|
+
end
|
|
863
|
+
},
|
|
864
|
+
true
|
|
865
|
+
)
|
|
866
|
+
__TS__SetDescriptor(
|
|
867
|
+
UnitType.prototype,
|
|
868
|
+
"runSpeedHD",
|
|
869
|
+
{
|
|
870
|
+
get = function(self)
|
|
871
|
+
return self:getNumberField("urun:hd")
|
|
872
|
+
end,
|
|
873
|
+
set = function(self, runSpeedHD)
|
|
874
|
+
self:setNumberField("urun:hd", runSpeedHD)
|
|
875
|
+
end
|
|
876
|
+
},
|
|
877
|
+
true
|
|
878
|
+
)
|
|
730
879
|
__TS__SetDescriptor(
|
|
731
880
|
UnitType.prototype,
|
|
732
881
|
"selectionCircleScale",
|
|
@@ -935,6 +1084,45 @@ __TS__SetDescriptor(
|
|
|
935
1084
|
},
|
|
936
1085
|
true
|
|
937
1086
|
)
|
|
1087
|
+
__TS__SetDescriptor(
|
|
1088
|
+
UnitType.prototype,
|
|
1089
|
+
"walkSpeed",
|
|
1090
|
+
{
|
|
1091
|
+
get = function(self)
|
|
1092
|
+
return self:getNumberField("uwal")
|
|
1093
|
+
end,
|
|
1094
|
+
set = function(self, walkSpeed)
|
|
1095
|
+
self:setNumberField("uwal", walkSpeed)
|
|
1096
|
+
end
|
|
1097
|
+
},
|
|
1098
|
+
true
|
|
1099
|
+
)
|
|
1100
|
+
__TS__SetDescriptor(
|
|
1101
|
+
UnitType.prototype,
|
|
1102
|
+
"walkSpeedSD",
|
|
1103
|
+
{
|
|
1104
|
+
get = function(self)
|
|
1105
|
+
return self:getNumberField("uwal:sd")
|
|
1106
|
+
end,
|
|
1107
|
+
set = function(self, walkSpeedSD)
|
|
1108
|
+
self:setNumberField("uwal:sd", walkSpeedSD)
|
|
1109
|
+
end
|
|
1110
|
+
},
|
|
1111
|
+
true
|
|
1112
|
+
)
|
|
1113
|
+
__TS__SetDescriptor(
|
|
1114
|
+
UnitType.prototype,
|
|
1115
|
+
"walkSpeedHD",
|
|
1116
|
+
{
|
|
1117
|
+
get = function(self)
|
|
1118
|
+
return self:getNumberField("uwal:hd")
|
|
1119
|
+
end,
|
|
1120
|
+
set = function(self, walkSpeedHD)
|
|
1121
|
+
self:setNumberField("uwal:hd", walkSpeedHD)
|
|
1122
|
+
end
|
|
1123
|
+
},
|
|
1124
|
+
true
|
|
1125
|
+
)
|
|
938
1126
|
__TS__SetDescriptor(
|
|
939
1127
|
UnitType.prototype,
|
|
940
1128
|
"armorSoundType",
|
|
@@ -1008,25 +1196,25 @@ __TS__SetDescriptor(
|
|
|
1008
1196
|
)
|
|
1009
1197
|
__TS__SetDescriptor(
|
|
1010
1198
|
UnitType.prototype,
|
|
1011
|
-
"
|
|
1199
|
+
"weapons",
|
|
1012
1200
|
{get = function(self)
|
|
1013
|
-
return self
|
|
1201
|
+
return getOrCreateUnitTypeWeapons(self)
|
|
1014
1202
|
end},
|
|
1015
1203
|
true
|
|
1016
1204
|
)
|
|
1017
1205
|
__TS__SetDescriptor(
|
|
1018
1206
|
UnitType.prototype,
|
|
1019
|
-
"
|
|
1207
|
+
"firstWeapon",
|
|
1020
1208
|
{get = function(self)
|
|
1021
|
-
return self.weapons[
|
|
1209
|
+
return self.weapons[1]
|
|
1022
1210
|
end},
|
|
1023
1211
|
true
|
|
1024
1212
|
)
|
|
1025
1213
|
__TS__SetDescriptor(
|
|
1026
1214
|
UnitType.prototype,
|
|
1027
|
-
"
|
|
1215
|
+
"secondWeapon",
|
|
1028
1216
|
{get = function(self)
|
|
1029
|
-
return
|
|
1217
|
+
return self.weapons[2]
|
|
1030
1218
|
end},
|
|
1031
1219
|
true
|
|
1032
1220
|
)
|
|
@@ -1212,6 +1400,71 @@ __TS__SetDescriptor(
|
|
|
1212
1400
|
},
|
|
1213
1401
|
true
|
|
1214
1402
|
)
|
|
1403
|
+
__TS__SetDescriptor(
|
|
1404
|
+
UnitType.prototype,
|
|
1405
|
+
"healthRegenerationRate",
|
|
1406
|
+
{
|
|
1407
|
+
get = function(self)
|
|
1408
|
+
return self:getNumberField("uhpr")
|
|
1409
|
+
end,
|
|
1410
|
+
set = function(self, healthRegenerationRate)
|
|
1411
|
+
self:setNumberField("uhpr", healthRegenerationRate)
|
|
1412
|
+
end
|
|
1413
|
+
},
|
|
1414
|
+
true
|
|
1415
|
+
)
|
|
1416
|
+
__TS__SetDescriptor(
|
|
1417
|
+
UnitType.prototype,
|
|
1418
|
+
"manaRegenerationRate",
|
|
1419
|
+
{
|
|
1420
|
+
get = function(self)
|
|
1421
|
+
return self:getNumberField("umpr")
|
|
1422
|
+
end,
|
|
1423
|
+
set = function(self, manaRegenerationRate)
|
|
1424
|
+
self:setNumberField("umpr", manaRegenerationRate)
|
|
1425
|
+
end
|
|
1426
|
+
},
|
|
1427
|
+
true
|
|
1428
|
+
)
|
|
1429
|
+
__TS__SetDescriptor(
|
|
1430
|
+
UnitType.prototype,
|
|
1431
|
+
"maximumHealth",
|
|
1432
|
+
{
|
|
1433
|
+
get = function(self)
|
|
1434
|
+
return self:getNumberField("uhpm")
|
|
1435
|
+
end,
|
|
1436
|
+
set = function(self, maximumHealth)
|
|
1437
|
+
self:setNumberField("uhpm", maximumHealth)
|
|
1438
|
+
end
|
|
1439
|
+
},
|
|
1440
|
+
true
|
|
1441
|
+
)
|
|
1442
|
+
__TS__SetDescriptor(
|
|
1443
|
+
UnitType.prototype,
|
|
1444
|
+
"maximumMana",
|
|
1445
|
+
{
|
|
1446
|
+
get = function(self)
|
|
1447
|
+
return self:getNumberField("umpm")
|
|
1448
|
+
end,
|
|
1449
|
+
set = function(self, maximumMana)
|
|
1450
|
+
self:setNumberField("umpm", maximumMana)
|
|
1451
|
+
end
|
|
1452
|
+
},
|
|
1453
|
+
true
|
|
1454
|
+
)
|
|
1455
|
+
__TS__SetDescriptor(
|
|
1456
|
+
UnitType.prototype,
|
|
1457
|
+
"initialMana",
|
|
1458
|
+
{
|
|
1459
|
+
get = function(self)
|
|
1460
|
+
return self:getNumberField("umpi")
|
|
1461
|
+
end,
|
|
1462
|
+
set = function(self, initialMana)
|
|
1463
|
+
self:setNumberField("umpi", initialMana)
|
|
1464
|
+
end
|
|
1465
|
+
},
|
|
1466
|
+
true
|
|
1467
|
+
)
|
|
1215
1468
|
__TS__SetDescriptor(
|
|
1216
1469
|
UnitType.prototype,
|
|
1217
1470
|
"isStructure",
|
|
@@ -1306,11 +1559,11 @@ __TS__SetDescriptor(
|
|
|
1306
1559
|
implementReadonlyNumberIndexSupplier(
|
|
1307
1560
|
____exports.UnitType,
|
|
1308
1561
|
function(id)
|
|
1309
|
-
local
|
|
1310
|
-
|
|
1311
|
-
__TS__ClassExtends(
|
|
1312
|
-
|
|
1313
|
-
return
|
|
1562
|
+
local ____class_24 = __TS__Class()
|
|
1563
|
+
____class_24.name = ____class_24.name
|
|
1564
|
+
__TS__ClassExtends(____class_24, ____exports.UnitType)
|
|
1565
|
+
____class_24.BASE_ID = id
|
|
1566
|
+
return ____class_24
|
|
1314
1567
|
end
|
|
1315
1568
|
)
|
|
1316
1569
|
____exports.HeroUnitType = __TS__Class()
|
|
@@ -1337,14 +1590,45 @@ __TS__SetDescriptor(
|
|
|
1337
1590
|
},
|
|
1338
1591
|
true
|
|
1339
1592
|
)
|
|
1593
|
+
__TS__SetDescriptor(
|
|
1594
|
+
HeroUnitType.prototype,
|
|
1595
|
+
"properNames",
|
|
1596
|
+
{
|
|
1597
|
+
get = function(self)
|
|
1598
|
+
return self:getStringsField("upro")
|
|
1599
|
+
end,
|
|
1600
|
+
set = function(self, properNames)
|
|
1601
|
+
if __TS__ArrayIsArray(properNames) then
|
|
1602
|
+
self:setStringsField("upro", properNames)
|
|
1603
|
+
self:setNumberField("upru", #properNames)
|
|
1604
|
+
else
|
|
1605
|
+
self:setStringField("upro", properNames)
|
|
1606
|
+
end
|
|
1607
|
+
end
|
|
1608
|
+
},
|
|
1609
|
+
true
|
|
1610
|
+
)
|
|
1611
|
+
__TS__SetDescriptor(
|
|
1612
|
+
HeroUnitType.prototype,
|
|
1613
|
+
"properNameCount",
|
|
1614
|
+
{
|
|
1615
|
+
get = function(self)
|
|
1616
|
+
return self:getNumberField("upru")
|
|
1617
|
+
end,
|
|
1618
|
+
set = function(self, properNameCount)
|
|
1619
|
+
self:setNumberField("upru", properNameCount)
|
|
1620
|
+
end
|
|
1621
|
+
},
|
|
1622
|
+
true
|
|
1623
|
+
)
|
|
1340
1624
|
implementReadonlyNumberIndexSupplier(
|
|
1341
1625
|
____exports.HeroUnitType,
|
|
1342
1626
|
function(id)
|
|
1343
|
-
local
|
|
1344
|
-
|
|
1345
|
-
__TS__ClassExtends(
|
|
1346
|
-
|
|
1347
|
-
return
|
|
1627
|
+
local ____class_25 = __TS__Class()
|
|
1628
|
+
____class_25.name = ____class_25.name
|
|
1629
|
+
__TS__ClassExtends(____class_25, ____exports.HeroUnitType)
|
|
1630
|
+
____class_25.BASE_ID = id
|
|
1631
|
+
return ____class_25
|
|
1348
1632
|
end
|
|
1349
1633
|
)
|
|
1350
1634
|
return ____exports
|
|
@@ -9,11 +9,31 @@ export declare const RIFLEMAN_UNIT_TYPE_ID: StandardUnitTypeId;
|
|
|
9
9
|
export declare const SIEGE_ENGINE_UNIT_TYPE_ID: StandardUnitTypeId;
|
|
10
10
|
export declare const SORCERESS_UNIT_TYPE_ID: StandardUnitTypeId;
|
|
11
11
|
export declare const SPELLBREAKER_UNIT_TYPE_ID: StandardUnitTypeId;
|
|
12
|
-
export declare const PALADIN_HERO_UNIT_TYPE_ID: StandardHeroUnitTypeId;
|
|
13
12
|
export declare const ARCHMAGE_HERO_UNIT_TYPE_ID: StandardHeroUnitTypeId;
|
|
13
|
+
export declare const BLOOD_MAGE_HERO_UNIT_TYPE_ID: StandardHeroUnitTypeId;
|
|
14
|
+
export declare const MOUNTAIN_KING_HERO_UNIT_TYPE_ID: StandardHeroUnitTypeId;
|
|
15
|
+
export declare const PALADIN_HERO_UNIT_TYPE_ID: StandardHeroUnitTypeId;
|
|
14
16
|
export declare const CAPTAIN_UNIT_TYPE_ID: StandardUnitTypeId;
|
|
17
|
+
export declare const ADMIRAL_PROUDMOORE_HERO_UNIT_TYPE_ID: StandardHeroUnitTypeId;
|
|
18
|
+
export declare const ANASTERIAN_SUNSTRIDER_HERO_UNIT_TYPE_ID: StandardHeroUnitTypeId;
|
|
19
|
+
export declare const ANTONIDAS_HERO_UNIT_TYPE_ID: StandardHeroUnitTypeId;
|
|
20
|
+
export declare const ANTONIDAS_GHOST_HERO_UNIT_TYPE_ID: StandardHeroUnitTypeId;
|
|
15
21
|
export declare const ARTHAS_HERO_UNIT_TYPE_ID: StandardHeroUnitTypeId;
|
|
16
22
|
export declare const ARTHAS_WITH_FROSTMOURNE_HERO_UNIT_TYPE_ID: StandardHeroUnitTypeId;
|
|
23
|
+
export declare const DAGREN_THE_ORCSLAYER_HERO_UNIT_TYPE_ID: StandardHeroUnitTypeId;
|
|
24
|
+
export declare const HALAHK_THE_LIFEBRINGER_HERO_UNIT_TYPE_ID: StandardHeroUnitTypeId;
|
|
25
|
+
export declare const JAINA_HERO_UNIT_TYPE_ID: StandardHeroUnitTypeId;
|
|
26
|
+
export declare const JENNALLA_DEEMSPRING_HERO_UNIT_TYPE_ID: StandardHeroUnitTypeId;
|
|
27
|
+
export declare const KAEL_HERO_UNIT_TYPE_ID: StandardHeroUnitTypeId;
|
|
28
|
+
export declare const KELEN_THE_SEEKER_HERO_UNIT_TYPE_ID: StandardHeroUnitTypeId;
|
|
29
|
+
export declare const LORD_GARITHOS_HERO_UNIT_TYPE_ID: StandardHeroUnitTypeId;
|
|
30
|
+
export declare const LORD_NICHOLAS_BUZAN_HERO_UNIT_TYPE_ID: StandardHeroUnitTypeId;
|
|
31
|
+
export declare const MAGROTH_THE_DEFENDER_HERO_UNIT_TYPE_ID: StandardHeroUnitTypeId;
|
|
32
|
+
export declare const MURADIN_BRONZEBEARD_HERO_UNIT_TYPE_ID: StandardHeroUnitTypeId;
|
|
33
|
+
export declare const SIR_GREGORY_EDMUNSON_HERO_UNIT_TYPE_ID: StandardHeroUnitTypeId;
|
|
34
|
+
export declare const SYLVANAS_WINDRUNNER_HERO_UNIT_TYPE_ID: StandardHeroUnitTypeId;
|
|
35
|
+
export declare const THALORIEN_DAWNSEEKER_HERO_UNIT_TYPE_ID: StandardHeroUnitTypeId;
|
|
36
|
+
export declare const UTHER_HERO_UNIT_TYPE_ID: StandardHeroUnitTypeId;
|
|
17
37
|
export declare const BATRIDER_UNIT_TYPE_ID: StandardUnitTypeId;
|
|
18
38
|
export declare const DEMOLISHER_UNIT_TYPE_ID: StandardUnitTypeId;
|
|
19
39
|
export declare const GRUNT_UNIT_TYPE_ID: StandardUnitTypeId;
|
|
@@ -30,6 +50,9 @@ export declare const DEMON_HUNTER_DEMON_FORM_HERO_UNIT_TYPE_ID: StandardHeroUnit
|
|
|
30
50
|
export declare const ABOMINATION_UNIT_TYPE_ID: StandardUnitTypeId;
|
|
31
51
|
export declare const GHOUL_UNIT_TYPE_ID: StandardUnitTypeId;
|
|
32
52
|
export declare const DEATH_KNIGHT_HERO_UNIT_TYPE_ID: StandardHeroUnitTypeId;
|
|
53
|
+
export declare const ZOMBIE_UNIT_TYPE_ID: StandardUnitTypeId;
|
|
54
|
+
export declare const ZOMBIE_FEMALE_UNIT_TYPE_ID: StandardUnitTypeId;
|
|
55
|
+
export declare const ARTHAS_EVIL_HERO_UNIT_TYPE_ID: StandardHeroUnitTypeId;
|
|
33
56
|
export declare const DIRE_MAMMOTH_UNIT_TYPE_ID: StandardUnitTypeId;
|
|
34
57
|
export declare const ELDER_JUNGLE_STALKER_UNIT_TYPE_ID: StandardUnitTypeId;
|
|
35
58
|
export declare const ENRAGED_ELEMENTAL_UNIT_TYPE_ID: StandardUnitTypeId;
|
|
@@ -8,11 +8,31 @@ ____exports.RIFLEMAN_UNIT_TYPE_ID = fourCC("hrif")
|
|
|
8
8
|
____exports.SIEGE_ENGINE_UNIT_TYPE_ID = fourCC("hmtt")
|
|
9
9
|
____exports.SORCERESS_UNIT_TYPE_ID = fourCC("hsor")
|
|
10
10
|
____exports.SPELLBREAKER_UNIT_TYPE_ID = fourCC("hspt")
|
|
11
|
-
____exports.PALADIN_HERO_UNIT_TYPE_ID = fourCC("Hpal")
|
|
12
11
|
____exports.ARCHMAGE_HERO_UNIT_TYPE_ID = fourCC("Hamg")
|
|
12
|
+
____exports.BLOOD_MAGE_HERO_UNIT_TYPE_ID = fourCC("Hblm")
|
|
13
|
+
____exports.MOUNTAIN_KING_HERO_UNIT_TYPE_ID = fourCC("Hmkg")
|
|
14
|
+
____exports.PALADIN_HERO_UNIT_TYPE_ID = fourCC("Hpal")
|
|
13
15
|
____exports.CAPTAIN_UNIT_TYPE_ID = fourCC("hcth")
|
|
16
|
+
____exports.ADMIRAL_PROUDMOORE_HERO_UNIT_TYPE_ID = fourCC("Hapm")
|
|
17
|
+
____exports.ANASTERIAN_SUNSTRIDER_HERO_UNIT_TYPE_ID = fourCC("Hssa")
|
|
18
|
+
____exports.ANTONIDAS_HERO_UNIT_TYPE_ID = fourCC("Hant")
|
|
19
|
+
____exports.ANTONIDAS_GHOST_HERO_UNIT_TYPE_ID = fourCC("Hgam")
|
|
14
20
|
____exports.ARTHAS_HERO_UNIT_TYPE_ID = fourCC("Hart")
|
|
15
21
|
____exports.ARTHAS_WITH_FROSTMOURNE_HERO_UNIT_TYPE_ID = fourCC("Harf")
|
|
22
|
+
____exports.DAGREN_THE_ORCSLAYER_HERO_UNIT_TYPE_ID = fourCC("Hdgo")
|
|
23
|
+
____exports.HALAHK_THE_LIFEBRINGER_HERO_UNIT_TYPE_ID = fourCC("Hhkl")
|
|
24
|
+
____exports.JAINA_HERO_UNIT_TYPE_ID = fourCC("Hjai")
|
|
25
|
+
____exports.JENNALLA_DEEMSPRING_HERO_UNIT_TYPE_ID = fourCC("Hjnd")
|
|
26
|
+
____exports.KAEL_HERO_UNIT_TYPE_ID = fourCC("Hkal")
|
|
27
|
+
____exports.KELEN_THE_SEEKER_HERO_UNIT_TYPE_ID = fourCC("Haah")
|
|
28
|
+
____exports.LORD_GARITHOS_HERO_UNIT_TYPE_ID = fourCC("Hlgr")
|
|
29
|
+
____exports.LORD_NICHOLAS_BUZAN_HERO_UNIT_TYPE_ID = fourCC("Hpb1")
|
|
30
|
+
____exports.MAGROTH_THE_DEFENDER_HERO_UNIT_TYPE_ID = fourCC("Hmgd")
|
|
31
|
+
____exports.MURADIN_BRONZEBEARD_HERO_UNIT_TYPE_ID = fourCC("Hmbr")
|
|
32
|
+
____exports.SIR_GREGORY_EDMUNSON_HERO_UNIT_TYPE_ID = fourCC("Hpb2")
|
|
33
|
+
____exports.SYLVANAS_WINDRUNNER_HERO_UNIT_TYPE_ID = fourCC("Hvwd")
|
|
34
|
+
____exports.THALORIEN_DAWNSEEKER_HERO_UNIT_TYPE_ID = fourCC("Hddt")
|
|
35
|
+
____exports.UTHER_HERO_UNIT_TYPE_ID = fourCC("Huth")
|
|
16
36
|
____exports.BATRIDER_UNIT_TYPE_ID = fourCC("otbr")
|
|
17
37
|
____exports.DEMOLISHER_UNIT_TYPE_ID = fourCC("ocat")
|
|
18
38
|
____exports.GRUNT_UNIT_TYPE_ID = fourCC("ogru")
|
|
@@ -29,6 +49,9 @@ ____exports.DEMON_HUNTER_DEMON_FORM_HERO_UNIT_TYPE_ID = fourCC("Edmm")
|
|
|
29
49
|
____exports.ABOMINATION_UNIT_TYPE_ID = fourCC("uabo")
|
|
30
50
|
____exports.GHOUL_UNIT_TYPE_ID = fourCC("ugho")
|
|
31
51
|
____exports.DEATH_KNIGHT_HERO_UNIT_TYPE_ID = fourCC("Udea")
|
|
52
|
+
____exports.ZOMBIE_UNIT_TYPE_ID = fourCC("nzom")
|
|
53
|
+
____exports.ZOMBIE_FEMALE_UNIT_TYPE_ID = fourCC("nzof")
|
|
54
|
+
____exports.ARTHAS_EVIL_HERO_UNIT_TYPE_ID = fourCC("Uear")
|
|
32
55
|
____exports.DIRE_MAMMOTH_UNIT_TYPE_ID = fourCC("nmdr")
|
|
33
56
|
____exports.ELDER_JUNGLE_STALKER_UNIT_TYPE_ID = fourCC("njga")
|
|
34
57
|
____exports.ENRAGED_ELEMENTAL_UNIT_TYPE_ID = fourCC("nele")
|