@nodemod/core 1.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.
- package/README.md +60 -0
- package/dist/core/cmd.d.ts +148 -0
- package/dist/core/cmd.d.ts.map +1 -0
- package/dist/core/cmd.js +177 -0
- package/dist/core/cmd.js.map +1 -0
- package/dist/core/menu.d.ts +300 -0
- package/dist/core/menu.d.ts.map +1 -0
- package/dist/core/menu.js +449 -0
- package/dist/core/menu.js.map +1 -0
- package/dist/core/msg.d.ts +300 -0
- package/dist/core/msg.d.ts.map +1 -0
- package/dist/core/msg.js +374 -0
- package/dist/core/msg.js.map +1 -0
- package/dist/core/resource.d.ts +137 -0
- package/dist/core/resource.d.ts.map +1 -0
- package/dist/core/resource.js +171 -0
- package/dist/core/resource.js.map +1 -0
- package/dist/core/sound.d.ts +262 -0
- package/dist/core/sound.d.ts.map +1 -0
- package/dist/core/sound.js +300 -0
- package/dist/core/sound.js.map +1 -0
- package/dist/enhanced/entity.d.ts +263 -0
- package/dist/enhanced/entity.d.ts.map +1 -0
- package/dist/enhanced/entity.js +447 -0
- package/dist/enhanced/entity.js.map +1 -0
- package/dist/enhanced/events.d.ts +257 -0
- package/dist/enhanced/events.d.ts.map +1 -0
- package/dist/enhanced/events.js +350 -0
- package/dist/enhanced/events.js.map +1 -0
- package/dist/enhanced/player.d.ts +272 -0
- package/dist/enhanced/player.d.ts.map +1 -0
- package/dist/enhanced/player.js +389 -0
- package/dist/enhanced/player.js.map +1 -0
- package/dist/enhanced/trace.d.ts +198 -0
- package/dist/enhanced/trace.d.ts.map +1 -0
- package/dist/enhanced/trace.js +311 -0
- package/dist/enhanced/trace.js.map +1 -0
- package/dist/index.d.ts +88 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +120 -0
- package/dist/index.js.map +1 -0
- package/dist/native/cvar.d.ts +49 -0
- package/dist/native/cvar.d.ts.map +1 -0
- package/dist/native/cvar.js +169 -0
- package/dist/native/cvar.js.map +1 -0
- package/dist/native/file.d.ts +221 -0
- package/dist/native/file.d.ts.map +1 -0
- package/dist/native/file.js +353 -0
- package/dist/native/file.js.map +1 -0
- package/dist/types/dll.d.ts +109 -0
- package/dist/types/engine.d.ts +319 -0
- package/dist/types/enums.d.ts +434 -0
- package/dist/types/events.d.ts +2432 -0
- package/dist/types/index.d.ts +38 -0
- package/dist/types/structures.d.ts +1144 -0
- package/dist/utils/util.d.ts +202 -0
- package/dist/utils/util.d.ts.map +1 -0
- package/dist/utils/util.js +318 -0
- package/dist/utils/util.js.map +1 -0
- package/package.json +167 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// This file is generated automatically. Don't edit it.
|
|
2
|
+
/// <reference path="./enums.d.ts" />
|
|
3
|
+
/// <reference path="./events.d.ts" />
|
|
4
|
+
/// <reference path="./structures.d.ts" />
|
|
5
|
+
/// <reference path="./engine.d.ts" />
|
|
6
|
+
/// <reference path="./dll.d.ts" />
|
|
7
|
+
|
|
8
|
+
// Global Entity constructor
|
|
9
|
+
declare class Entity {
|
|
10
|
+
/**
|
|
11
|
+
* Creates a new named entity with proper initialization
|
|
12
|
+
* @param classname - Entity classname (e.g. "weapon_ak47", "info_player_start")
|
|
13
|
+
*/
|
|
14
|
+
constructor(classname: string);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare namespace nodemod {
|
|
18
|
+
// Properties
|
|
19
|
+
const cwd: string;
|
|
20
|
+
const players: Entity[];
|
|
21
|
+
const mapname: string;
|
|
22
|
+
const time: number;
|
|
23
|
+
|
|
24
|
+
// Event system functions
|
|
25
|
+
function on<T extends keyof EventCallbacks>(eventName: T, callback: EventCallbacks[T]): void;
|
|
26
|
+
function addEventListener<T extends keyof EventCallbacks>(eventName: T, callback: EventCallbacks[T]): void;
|
|
27
|
+
function addListener<T extends keyof EventCallbacks>(eventName: T, callback: EventCallbacks[T]): void;
|
|
28
|
+
function removeListener<T extends keyof EventCallbacks>(eventName: T, callback: EventCallbacks[T]): void;
|
|
29
|
+
function removeEventListener<T extends keyof EventCallbacks>(eventName: T, callback: EventCallbacks[T]): void;
|
|
30
|
+
function clearListeners(eventName?: keyof EventCallbacks): void;
|
|
31
|
+
function fire<T extends keyof EventCallbacks>(eventName: T, ...args: Parameters<EventCallbacks[T]>): void;
|
|
32
|
+
|
|
33
|
+
// Utility functions
|
|
34
|
+
function getUserMsgId(msgName: string): number;
|
|
35
|
+
function getUserMsgName(msgId: number): string;
|
|
36
|
+
function setMetaResult(result: META_RES): void;
|
|
37
|
+
function continueServer(): void;
|
|
38
|
+
}
|