@infernus/core 0.12.5 → 0.12.6
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/dist/bundle.d.ts +153 -18
- package/dist/bundle.js +2 -2
- package/dist/bundle.mjs +2 -2
- package/package.json +1 -1
package/dist/bundle.d.ts
CHANGED
|
@@ -1,6 +1,141 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
declare enum StreamerAreaTypes {
|
|
2
|
+
CIRCLE = 0,
|
|
3
|
+
CYLINDER = 1,
|
|
4
|
+
SPHERE = 2,
|
|
5
|
+
RECTANGLE = 3,
|
|
6
|
+
CUBOID = 4,
|
|
7
|
+
POLYGON = 5
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
declare enum StreamerDistances {
|
|
11
|
+
OBJECT_SD = 300,
|
|
12
|
+
OBJECT_DD = 0,
|
|
13
|
+
PICKUP_SD = 200,
|
|
14
|
+
CP_SD = 200,
|
|
15
|
+
RACE_CP_SD = 200,
|
|
16
|
+
MAP_ICON_SD = 200,
|
|
17
|
+
TEXT_3D_LABEL_SD = 200,
|
|
18
|
+
ACTOR_SD = 200
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare enum StreamerItemTypes {
|
|
22
|
+
OBJECT = 0,
|
|
23
|
+
PICKUP = 1,
|
|
24
|
+
CP = 2,
|
|
25
|
+
RACE_CP = 3,
|
|
26
|
+
MAP_ICON = 4,
|
|
27
|
+
TEXT_3D_LABEL = 5,
|
|
28
|
+
AREA = 6,
|
|
29
|
+
ACTOR = 7
|
|
30
|
+
}
|
|
31
|
+
type StreamerItemTypeTuple = [
|
|
32
|
+
StreamerItemTypes,
|
|
33
|
+
StreamerItemTypes,
|
|
34
|
+
StreamerItemTypes,
|
|
35
|
+
StreamerItemTypes,
|
|
36
|
+
StreamerItemTypes,
|
|
37
|
+
StreamerItemTypes,
|
|
38
|
+
StreamerItemTypes,
|
|
39
|
+
StreamerItemTypes
|
|
40
|
+
];
|
|
41
|
+
|
|
42
|
+
declare enum StreamerMiscellaneous {
|
|
43
|
+
MAX_TYPES = 8,
|
|
44
|
+
MAX_AREA_TYPES = 5,
|
|
45
|
+
MAX_OBJECT_TYPES = 3,
|
|
46
|
+
INVALID_ID = 0
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
declare enum StreamerObjectTypes {
|
|
50
|
+
GLOBAL = 0,
|
|
51
|
+
PLAYER = 1,
|
|
52
|
+
DYNAMIC = 2
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
declare enum E_STREAMER {
|
|
56
|
+
AREA_ID = 0,
|
|
57
|
+
ATTACHED_OBJECT = 1,
|
|
58
|
+
ATTACHED_PLAYER = 2,
|
|
59
|
+
ATTACHED_VEHICLE = 3,
|
|
60
|
+
ATTACH_OFFSET_X = 4,
|
|
61
|
+
ATTACH_OFFSET_Y = 5,
|
|
62
|
+
ATTACH_OFFSET_Z = 6,
|
|
63
|
+
ATTACH_R_X = 7,
|
|
64
|
+
ATTACH_R_Y = 8,
|
|
65
|
+
ATTACH_R_Z = 9,
|
|
66
|
+
ATTACH_X = 10,
|
|
67
|
+
ATTACH_Y = 11,
|
|
68
|
+
ATTACH_Z = 12,
|
|
69
|
+
COLOR = 13,
|
|
70
|
+
DRAW_DISTANCE = 14,
|
|
71
|
+
EXTRA_ID = 15,
|
|
72
|
+
HEALTH = 16,
|
|
73
|
+
INTERIOR_ID = 17,
|
|
74
|
+
INVULNERABLE = 18,
|
|
75
|
+
MAX_X = 19,
|
|
76
|
+
MAX_Y = 20,
|
|
77
|
+
MAX_Z = 21,
|
|
78
|
+
MIN_X = 22,
|
|
79
|
+
MIN_Y = 23,
|
|
80
|
+
MIN_Z = 24,
|
|
81
|
+
MODEL_ID = 25,
|
|
82
|
+
MOVE_R_X = 26,
|
|
83
|
+
MOVE_R_Y = 27,
|
|
84
|
+
MOVE_R_Z = 28,
|
|
85
|
+
MOVE_SPEED = 29,
|
|
86
|
+
MOVE_X = 30,
|
|
87
|
+
MOVE_Y = 31,
|
|
88
|
+
MOVE_Z = 32,
|
|
89
|
+
NEXT_X = 33,
|
|
90
|
+
NEXT_Y = 34,
|
|
91
|
+
NEXT_Z = 35,
|
|
92
|
+
PLAYER_ID = 36,
|
|
93
|
+
PRIORITY = 37,
|
|
94
|
+
ROTATION = 38,
|
|
95
|
+
R_X = 39,
|
|
96
|
+
R_Y = 40,
|
|
97
|
+
R_Z = 41,
|
|
98
|
+
SIZE = 42,
|
|
99
|
+
STREAM_DISTANCE = 43,
|
|
100
|
+
STYLE = 44,
|
|
101
|
+
SYNC_ROTATION = 45,
|
|
102
|
+
TEST_LOS = 46,
|
|
103
|
+
TYPE = 47,
|
|
104
|
+
WORLD_ID = 48,
|
|
105
|
+
X = 49,
|
|
106
|
+
Y = 50,
|
|
107
|
+
Z = 51
|
|
108
|
+
}
|
|
109
|
+
declare enum MaterialTextAlign {
|
|
110
|
+
LEFT = 0,
|
|
111
|
+
CENTER = 1,
|
|
112
|
+
RIGHT = 2
|
|
113
|
+
}
|
|
114
|
+
declare enum MaterialTextSizes {
|
|
115
|
+
SIZE_32x32 = 10,
|
|
116
|
+
SIZE_64x32 = 20,
|
|
117
|
+
SIZE_64x64 = 30,
|
|
118
|
+
SIZE_128x32 = 40,
|
|
119
|
+
SIZE_128x64 = 50,
|
|
120
|
+
SIZE_128x128 = 60,
|
|
121
|
+
SIZE_256x32 = 70,
|
|
122
|
+
SIZE_256x64 = 80,
|
|
123
|
+
SIZE_256x128 = 90,
|
|
124
|
+
SIZE_256x256 = 100,
|
|
125
|
+
SIZE_512x64 = 110,
|
|
126
|
+
SIZE_512x128 = 120,
|
|
127
|
+
SIZE_512x256 = 130,
|
|
128
|
+
SIZE_512x512 = 140
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
type StreamerArrayData = E_STREAMER.AREA_ID | E_STREAMER.EXTRA_ID | E_STREAMER.INTERIOR_ID | E_STREAMER.PLAYER_ID | E_STREAMER.WORLD_ID;
|
|
132
|
+
|
|
133
|
+
declare enum MapIconStyles {
|
|
134
|
+
LOCAL = 0,
|
|
135
|
+
GLOBAL = 1,
|
|
136
|
+
LOCAL_CHECKPOINT = 2,
|
|
137
|
+
GLOBAL_CHECKPOINT = 3
|
|
138
|
+
}
|
|
4
139
|
|
|
5
140
|
declare enum ArtworkEnum {
|
|
6
141
|
DOWNLOAD_REQUEST_EMPTY = 0,
|
|
@@ -1030,6 +1165,7 @@ interface IDynamic {
|
|
|
1030
1165
|
interiorId?: TStreamerExtendable;
|
|
1031
1166
|
playerId?: TStreamerExtendable;
|
|
1032
1167
|
extended?: boolean;
|
|
1168
|
+
priority?: number;
|
|
1033
1169
|
}
|
|
1034
1170
|
interface IDynamicCommon extends IDynamic {
|
|
1035
1171
|
x: number;
|
|
@@ -1037,7 +1173,6 @@ interface IDynamicCommon extends IDynamic {
|
|
|
1037
1173
|
z: number;
|
|
1038
1174
|
areaId?: TStreamerExtendable;
|
|
1039
1175
|
streamDistance?: number;
|
|
1040
|
-
priority?: number;
|
|
1041
1176
|
}
|
|
1042
1177
|
interface IDynamicMapIcon extends IDynamicCommon {
|
|
1043
1178
|
type: number;
|
|
@@ -1861,10 +1996,10 @@ declare class Streamer {
|
|
|
1861
1996
|
};
|
|
1862
1997
|
static setRadiusMultiplier(type: StreamerItemTypes, multiplier: number, player?: number | Player): number;
|
|
1863
1998
|
static getTypePriority: () => {
|
|
1864
|
-
priority: number |
|
|
1999
|
+
priority: number | StreamerItemTypeTuple;
|
|
1865
2000
|
ret: number;
|
|
1866
2001
|
};
|
|
1867
|
-
static setTypePriority: (types:
|
|
2002
|
+
static setTypePriority: (types: StreamerItemTypeTuple) => number;
|
|
1868
2003
|
static getCellDistance: () => {
|
|
1869
2004
|
distance: number;
|
|
1870
2005
|
ret: number;
|
|
@@ -1927,22 +2062,22 @@ declare class Streamer {
|
|
|
1927
2062
|
ret: number;
|
|
1928
2063
|
};
|
|
1929
2064
|
static setItemOffset: (type: StreamerItemTypes, id: number, x: number, y: number, z: number) => any;
|
|
1930
|
-
static getFloatData: (type: StreamerItemTypes, id: number, data:
|
|
2065
|
+
static getFloatData: (type: StreamerItemTypes, id: number, data: E_STREAMER) => {
|
|
1931
2066
|
val: number;
|
|
1932
2067
|
ret: number;
|
|
1933
2068
|
};
|
|
1934
|
-
static setFloatData: (type: StreamerItemTypes, id: number, data:
|
|
1935
|
-
static getIntData: (type: StreamerItemTypes, id: number, data:
|
|
1936
|
-
static setIntData: (type: StreamerItemTypes, id: number, data:
|
|
1937
|
-
static getArrayData: (type: StreamerItemTypes, id: number, data:
|
|
2069
|
+
static setFloatData: (type: StreamerItemTypes, id: number, data: E_STREAMER, value: number) => number;
|
|
2070
|
+
static getIntData: (type: StreamerItemTypes, id: number, data: E_STREAMER) => number;
|
|
2071
|
+
static setIntData: (type: StreamerItemTypes, id: number, data: E_STREAMER, value: number) => number;
|
|
2072
|
+
static getArrayData: (type: StreamerItemTypes, id: number, data: StreamerArrayData) => {
|
|
1938
2073
|
arrayData: number[];
|
|
1939
2074
|
ret: number;
|
|
1940
2075
|
};
|
|
1941
|
-
static setArrayData: (type: StreamerItemTypes, id: number, data:
|
|
1942
|
-
static isInArrayData: (type: StreamerItemTypes, id: number, data:
|
|
1943
|
-
static appendArrayData: (type: StreamerItemTypes, id: number, data:
|
|
1944
|
-
static removeArrayData: (type: StreamerItemTypes, id: number, data:
|
|
1945
|
-
static getArrayDataLength: (type: StreamerItemTypes, id: number, data:
|
|
2076
|
+
static setArrayData: (type: StreamerItemTypes, id: number, data: StreamerArrayData, dest: number[]) => number;
|
|
2077
|
+
static isInArrayData: (type: StreamerItemTypes, id: number, data: StreamerArrayData, value: number) => boolean;
|
|
2078
|
+
static appendArrayData: (type: StreamerItemTypes, id: number, data: StreamerArrayData, value: number) => number;
|
|
2079
|
+
static removeArrayData: (type: StreamerItemTypes, id: number, data: StreamerArrayData, value: number) => number;
|
|
2080
|
+
static getArrayDataLength: (type: StreamerItemTypes, id: number, data: StreamerArrayData) => number;
|
|
1946
2081
|
static getUpperBound: (type: StreamerItemTypes) => number;
|
|
1947
2082
|
static onPluginError: (cb: (ret: {
|
|
1948
2083
|
error: string;
|
|
@@ -3703,5 +3838,5 @@ declare const getAnimateDurationByLibName: (lib: string, name: string) => number
|
|
|
3703
3838
|
|
|
3704
3839
|
declare function defineHooks<T extends new (...args: any[]) => any>(target: T): readonly [THookedMethods<T>, <K extends TMethodKeys<InstanceType<T>>>(methodName: K, interceptor: (this: InstanceType<T>, ...args: Parameters<InstanceType<T>[K]>) => ReturnType<InstanceType<T>[K]>) => (this: InstanceType<T>, ...args: Parameters<InstanceType<T>[K]>) => ReturnType<InstanceType<T>[K]>];
|
|
3705
3840
|
|
|
3706
|
-
export { ArtworkEnum, BodyPartsEnum, BoneIdsEnum, BulletHitTypesEnum, CameraCutStylesEnum, CameraModesEnum, CarModTypeEnum, ClickSourcesEnum, CommandErrors, ConnectionStatusEnum, DamageDeathReasonEnum, Dialog, DialogStylesEnum, Dynamic3DTextLabel, Dynamic3DTextLabelEvent, DynamicActor, DynamicActorEvent, DynamicArea, DynamicAreaEvent, DynamicCheckPointEvent, DynamicCheckpoint, DynamicMapIcon, DynamicMapIconEvent, DynamicObject, DynamicObjectEvent, DynamicPickup, DynamicPickupEvent, DynamicRaceCP, DynamicRaceCPEvent, EditResponseTypesEnum, FightingStylesEnum, ForceSyncEnum, GameMode, GameText, GangZone, GangZoneEvent, I18n, InvalidEnum, KeysEnum, LimitsEnum, MapIconStylesEnum, MarkerModesEnum, Menu, MenuEvent, NPCEntityCheckEnum, NPCMoveSpeedEnum, NPCMoveTypeEnum, NPCPlaybackEnum, NPCRecordStatusEnum, NetStats, Npc, NpcEvent, NpcNode, NpcPath, NpcRecord, ObjectMaterialAlignmentEnum, ObjectMaterialTextSizeEnum, Player, PlayerEvent, PlayerStateEnum, RecordTypesEnum, SelectObjectTypesEnum, SpecialActionsEnum, SpectateModesEnum, Streamer, TextDraw, TextDrawAlignEnum, TextDrawEvent, TextDrawFontsEnum, Vehicle, VehicleEvent, VehicleModelInfoEnum, VehicleParamsEnum, WeaponEnum, WeaponSkillsEnum, WeaponStatesEnum, animateLib, defineEvent, defineHooks, getAnimateDurationByLibName, isHolding, isPressed, isPressing, isReleased, isValidAnimateLib, isValidAnimateName, rgba, useTrigger, withTriggerOptions };
|
|
3707
|
-
export type { CmdBusCallback, CommandErrorRet, CommandErrorTypes, ExecMiddlewareOptions, GangZoneCb, IActorAnimation, IActorSpawn, IAnimateInfo, IAttachedData, IAttachedObject, IBounds, ICheckPoint, IClientResRaw, ICmdOptions, ICommonRetVal, ICommonTextDrawKey, IDialog, IDialogFuncQueue, IDialogResCommon, IDynamic, IDynamic3DTextLabel, IDynamicActor, IDynamicAreaKey, IDynamicCheckPoint, IDynamicCircle, IDynamicCircleCommon, IDynamicCommon, IDynamicCuboid, IDynamicCylinder, IDynamicMapIcon, IDynamicObject, IDynamicPickup, IDynamicPolygon, IDynamicRaceCp, IDynamicRectangle, IDynamicRectangleCommon, IDynamicSphere, IFilterScript, IGangZone, IGangZonePos, IMaterial, IMaterialText, IObjectPos, IObjectRotPos, IOffsets, IPlayerClass, IQuat, IRaceCheckPoint, ITextDraw, ITextDrawCommonSize, ITextDrawRot, IVehColor, IVehMatrix, IVehSpawnInfo, IVehicle, TCommonCallback, TDynamicArea, TDynamicAreaTypes, TEventFunc, TEventName, THookedMethods, TLocales, TMethodKeys, TPos, TStreamerExtendable, defineEventOptions };
|
|
3841
|
+
export { ArtworkEnum, BodyPartsEnum, BoneIdsEnum, BulletHitTypesEnum, CameraCutStylesEnum, CameraModesEnum, CarModTypeEnum, ClickSourcesEnum, CommandErrors, ConnectionStatusEnum, DamageDeathReasonEnum, Dialog, DialogStylesEnum, Dynamic3DTextLabel, Dynamic3DTextLabelEvent, DynamicActor, DynamicActorEvent, DynamicArea, DynamicAreaEvent, DynamicCheckPointEvent, DynamicCheckpoint, DynamicMapIcon, DynamicMapIconEvent, DynamicObject, DynamicObjectEvent, DynamicPickup, DynamicPickupEvent, DynamicRaceCP, DynamicRaceCPEvent, E_STREAMER, EditResponseTypesEnum, FightingStylesEnum, ForceSyncEnum, GameMode, GameText, GangZone, GangZoneEvent, I18n, InvalidEnum, KeysEnum, LimitsEnum, MapIconStyles, MapIconStylesEnum, MarkerModesEnum, MaterialTextAlign, MaterialTextSizes, Menu, MenuEvent, NPCEntityCheckEnum, NPCMoveSpeedEnum, NPCMoveTypeEnum, NPCPlaybackEnum, NPCRecordStatusEnum, NetStats, Npc, NpcEvent, NpcNode, NpcPath, NpcRecord, ObjectMaterialAlignmentEnum, ObjectMaterialTextSizeEnum, Player, PlayerEvent, PlayerStateEnum, RecordTypesEnum, SelectObjectTypesEnum, SpecialActionsEnum, SpectateModesEnum, Streamer, StreamerAreaTypes, StreamerDistances, StreamerItemTypes, StreamerMiscellaneous, StreamerObjectTypes, TextDraw, TextDrawAlignEnum, TextDrawEvent, TextDrawFontsEnum, Vehicle, VehicleEvent, VehicleModelInfoEnum, VehicleParamsEnum, WeaponEnum, WeaponSkillsEnum, WeaponStatesEnum, animateLib, defineEvent, defineHooks, getAnimateDurationByLibName, isHolding, isPressed, isPressing, isReleased, isValidAnimateLib, isValidAnimateName, rgba, useTrigger, withTriggerOptions };
|
|
3842
|
+
export type { CmdBusCallback, CommandErrorRet, CommandErrorTypes, ExecMiddlewareOptions, GangZoneCb, IActorAnimation, IActorSpawn, IAnimateInfo, IAttachedData, IAttachedObject, IBounds, ICheckPoint, IClientResRaw, ICmdOptions, ICommonRetVal, ICommonTextDrawKey, IDialog, IDialogFuncQueue, IDialogResCommon, IDynamic, IDynamic3DTextLabel, IDynamicActor, IDynamicAreaKey, IDynamicCheckPoint, IDynamicCircle, IDynamicCircleCommon, IDynamicCommon, IDynamicCuboid, IDynamicCylinder, IDynamicMapIcon, IDynamicObject, IDynamicPickup, IDynamicPolygon, IDynamicRaceCp, IDynamicRectangle, IDynamicRectangleCommon, IDynamicSphere, IFilterScript, IGangZone, IGangZonePos, IMaterial, IMaterialText, IObjectPos, IObjectRotPos, IOffsets, IPlayerClass, IQuat, IRaceCheckPoint, ITextDraw, ITextDrawCommonSize, ITextDrawRot, IVehColor, IVehMatrix, IVehSpawnInfo, IVehicle, StreamerArrayData, StreamerItemTypeTuple, TCommonCallback, TDynamicArea, TDynamicAreaTypes, TEventFunc, TEventName, THookedMethods, TLocales, TMethodKeys, TPos, TStreamerExtendable, defineEventOptions };
|