@plugify-plugins/s2sdk-types 1.1.1 → 1.1.8
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/index.d.ts +101 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -213,6 +213,97 @@ declare module ":s2sdk" {
|
|
|
213
213
|
Stop = 3
|
|
214
214
|
}
|
|
215
215
|
|
|
216
|
+
/**
|
|
217
|
+
* @description undefined
|
|
218
|
+
*/
|
|
219
|
+
export enum ConVarType {
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* @description Invalid type
|
|
223
|
+
* */
|
|
224
|
+
Invalid = -1,
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* @description Boolean type
|
|
228
|
+
* */
|
|
229
|
+
Bool = 0,
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* @description 16-bit signed integer
|
|
233
|
+
* */
|
|
234
|
+
Int16 = 1,
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* @description 16-bit unsigned integer
|
|
238
|
+
* */
|
|
239
|
+
UInt16 = 2,
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* @description 32-bit signed integer
|
|
243
|
+
* */
|
|
244
|
+
Int32 = 3,
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* @description 32-bit unsigned integer
|
|
248
|
+
* */
|
|
249
|
+
UInt32 = 4,
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* @description 64-bit signed integer
|
|
253
|
+
* */
|
|
254
|
+
Int64 = 5,
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* @description 64-bit unsigned integer
|
|
258
|
+
* */
|
|
259
|
+
UInt64 = 6,
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* @description 32-bit floating point
|
|
263
|
+
* */
|
|
264
|
+
Float32 = 7,
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* @description 64-bit floating point (double)
|
|
268
|
+
* */
|
|
269
|
+
Float64 = 8,
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* @description String type
|
|
273
|
+
* */
|
|
274
|
+
String = 9,
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* @description Color type
|
|
278
|
+
* */
|
|
279
|
+
Color = 10,
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* @description 2D vector
|
|
283
|
+
* */
|
|
284
|
+
Vector2 = 11,
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* @description 3D vector
|
|
288
|
+
* */
|
|
289
|
+
Vector3 = 12,
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* @description 4D vector
|
|
293
|
+
* */
|
|
294
|
+
Vector4 = 13,
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* @description Quaternion angle
|
|
298
|
+
* */
|
|
299
|
+
Qangle = 14,
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* @description Maximum value (used for bounds checking)
|
|
303
|
+
* */
|
|
304
|
+
Max = 15
|
|
305
|
+
}
|
|
306
|
+
|
|
216
307
|
/**
|
|
217
308
|
* @description Enum representing various movement types for entities.
|
|
218
309
|
*/
|
|
@@ -1913,6 +2004,16 @@ declare module ":s2sdk" {
|
|
|
1913
2004
|
*/
|
|
1914
2005
|
export function FindConVar(name: string): number;
|
|
1915
2006
|
|
|
2007
|
+
/**
|
|
2008
|
+
* @description Searches for a console variable of a specific type.
|
|
2009
|
+
*
|
|
2010
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=https://github.com/untrustedmodders/plugify-source-2/blob/main/s2sdk.pplugin.in#item-FindConVar2|Docs}
|
|
2011
|
+
*
|
|
2012
|
+
* @param name The name of the console variable to search for.
|
|
2013
|
+
* @param type The type of the console variable to search for.
|
|
2014
|
+
*/
|
|
2015
|
+
export function FindConVar2(name: string, type: ConVarType): number;
|
|
2016
|
+
|
|
1916
2017
|
/**
|
|
1917
2018
|
* @description Creates a hook for when a console variable's value is changed.
|
|
1918
2019
|
*
|