@cybermp/client-types 1.2.0 → 1.2.1
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/out/classes.d.ts +47 -4
- package/out/enums.d.ts +2 -5
- package/out/index.d.ts +7 -0
- package/out/precomputed/classes.d.ts +10 -2
- package/package.json +7 -1
package/out/classes.d.ts
CHANGED
|
@@ -2622,6 +2622,17 @@ declare class AIbehaviorDriveToNodeTreeNodeDefinition extends AIbehaviorDriveTre
|
|
|
2622
2622
|
"useTraffic": Handle<AIArgumentMapping>;
|
|
2623
2623
|
}
|
|
2624
2624
|
|
|
2625
|
+
declare class AIbehaviorDriveToPointAutonomousAutodriveTreeNodeDefinition extends AIbehaviorDriveTreeNodeDefinition {
|
|
2626
|
+
"clearTrafficOnPath": Handle<AIArgumentMapping>;
|
|
2627
|
+
"driveDownTheRoadIndefinitely": Handle<AIArgumentMapping>;
|
|
2628
|
+
"forcedStartSpeed": Handle<AIArgumentMapping>;
|
|
2629
|
+
"maxSpeed": Handle<AIArgumentMapping>;
|
|
2630
|
+
"minimumDistanceToTarget": Handle<AIArgumentMapping>;
|
|
2631
|
+
"minimumDistanceToTargetVertical": Handle<AIArgumentMapping>;
|
|
2632
|
+
"minSpeed": Handle<AIArgumentMapping>;
|
|
2633
|
+
"targetPosition": Handle<AIArgumentMapping>;
|
|
2634
|
+
}
|
|
2635
|
+
|
|
2625
2636
|
declare class AIbehaviorDriveToPointAutonomousTreeNodeDefinition extends AIbehaviorDriveTreeNodeDefinition {
|
|
2626
2637
|
"clearTrafficOnPath": Handle<AIArgumentMapping>;
|
|
2627
2638
|
"driveDownTheRoadIndefinitely": Handle<AIArgumentMapping>;
|
|
@@ -4391,6 +4402,8 @@ declare class AIDriveCommandsDelegate extends AIbehaviorScriptBehaviorDelegate {
|
|
|
4391
4402
|
"DoStartDriveRacing"(context: AIbehaviorScriptExecutionContext): boolean;
|
|
4392
4403
|
"DoStartDriveToNode"(context: AIbehaviorScriptExecutionContext): boolean;
|
|
4393
4404
|
"DoStartDriveToPointAutonomous"(context: AIbehaviorScriptExecutionContext): boolean;
|
|
4405
|
+
"DoStartDriveToPointAutonomousAutodrive"(context: AIbehaviorScriptExecutionContext): boolean;
|
|
4406
|
+
"DoStartDriveToPointAutonomousAutodriveInCombat"(context: AIbehaviorScriptExecutionContext): boolean;
|
|
4394
4407
|
"DoStopDriveChase"(context: AIbehaviorScriptExecutionContext): boolean;
|
|
4395
4408
|
"DoStopDriveFollow"(context: AIbehaviorScriptExecutionContext): boolean;
|
|
4396
4409
|
"DoStopDrivePanic"(context: AIbehaviorScriptExecutionContext): boolean;
|
|
@@ -4401,6 +4414,7 @@ declare class AIDriveCommandsDelegate extends AIbehaviorScriptBehaviorDelegate {
|
|
|
4401
4414
|
"DoUpdateDrivePanic"(context: AIbehaviorScriptExecutionContext): boolean;
|
|
4402
4415
|
"DoUpdateDrivePatrol"(context: AIbehaviorScriptExecutionContext): boolean;
|
|
4403
4416
|
"DoUpdateDriveToPointAutonomous"(context: AIbehaviorScriptExecutionContext): boolean;
|
|
4417
|
+
"DoUpdateDriveToPointAutonomousAutodrive"(context: AIbehaviorScriptExecutionContext): boolean;
|
|
4404
4418
|
}
|
|
4405
4419
|
|
|
4406
4420
|
declare class AIDriveCommandUpdate extends IScriptable {
|
|
@@ -16682,6 +16696,9 @@ declare class AutodriveHealthChangeListener extends gameCustomValueStatPoolsList
|
|
|
16682
16696
|
"OnStatPoolValueChanged"(oldValue: number, newValue: number, percToPoints: number): void;
|
|
16683
16697
|
}
|
|
16684
16698
|
|
|
16699
|
+
declare class AutoDriveHitRequest extends gameScriptableSystemRequest {
|
|
16700
|
+
}
|
|
16701
|
+
|
|
16685
16702
|
declare class AutodriveQuestContentLockListener extends questScriptQuestContentLockListener {
|
|
16686
16703
|
"autodriveSystem": WeakHandle<AutoDriveSystem>;
|
|
16687
16704
|
"OnBlocked"(source: string): boolean;
|
|
@@ -16711,10 +16728,12 @@ declare class AutoDriveSystem extends gameNativeAutodriveSystem {
|
|
|
16711
16728
|
"GetMapBBDef"(): Handle<UI_MapDef>;
|
|
16712
16729
|
"HighlightValidRoadsOnMinimap"(): void;
|
|
16713
16730
|
"OnAttach"(): void;
|
|
16731
|
+
"OnAutoDriveHitRequest"(request: Handle<AutoDriveHitRequest>): void;
|
|
16714
16732
|
"OnAutodriveToggled"(enabled: boolean, isDelamain: boolean): void;
|
|
16715
16733
|
"OnDetach"(): void;
|
|
16716
16734
|
"OnDisableAutoDriveRequest"(request: Handle<DisableAutoDriveRequest>): void;
|
|
16717
16735
|
"OnEnableAutoDriveRequest"(request: Handle<EnableAutoDriveRequest>): void;
|
|
16736
|
+
"OnMeleeWeaponStateChange"(value: number): void;
|
|
16718
16737
|
"OnPlayerAttachedCallback"(playerPuppet: Handle<gameObject>): void;
|
|
16719
16738
|
"OnPlayerDetachedCallback"(playerPuppet: Handle<gameObject>): void;
|
|
16720
16739
|
"OnPlayerStateChange"(value: number): void;
|
|
@@ -16722,6 +16741,7 @@ declare class AutoDriveSystem extends gameNativeAutodriveSystem {
|
|
|
16722
16741
|
"OnSendAutoDriveNotificationRequest"(request: Handle<gameSendAutoDriveNotificationRequest>): void;
|
|
16723
16742
|
"OnStopAutoDriveOnDestinationReachedRequest"(request: Handle<gameStopAutoDriveOnDestinationReachedRequest>): void;
|
|
16724
16743
|
"OnStopAutoDriveOnTeleportRequest"(request: Handle<StopAutoDriveOnTeleportRequest>): void;
|
|
16744
|
+
"OnStopAutoDriveRequest"(request: Handle<gameStopAutoDriveRequest>): void;
|
|
16725
16745
|
"OnToggleFreeRoamRequest"(request: Handle<ToggleFreeRoamRequest>): void;
|
|
16726
16746
|
"OnUpdateAutoDriveAvailabilityRequest"(request: Handle<UpdateAutoDriveAvailabilityRequest>): void;
|
|
16727
16747
|
"OnUpdateAutodriveOnDestinationChangeRequest"(request: Handle<UpdateAutodriveOnDestinationChangeRequest>): void;
|
|
@@ -16729,6 +16749,7 @@ declare class AutoDriveSystem extends gameNativeAutodriveSystem {
|
|
|
16729
16749
|
"OnUpdateAutodriveStateAfterVehicleHealthChangeRequest"(request: Handle<UpdateAutodriveStateAfterVehicleHealthChange>): void;
|
|
16730
16750
|
"OnUpdateAutodriveStateOnVehicleForceBrakeEnd"(request: Handle<UpdateAutodriveStateOnVehicleForceBrakeEnd>): void;
|
|
16731
16751
|
"OnUpdateAutodriveStateOnVehicleQuickHackChange"(request: Handle<UpdateAutodriveStateOnVehicleQuickHackChange>): void;
|
|
16752
|
+
"OnWeaponStateChange"(value: number): void;
|
|
16732
16753
|
"SendNotification"(message: string, type: CyberEnums.gameSimpleMessageType): void;
|
|
16733
16754
|
"SignalAutodriveAvailable"(): void;
|
|
16734
16755
|
"StartListeningForPlayerMoveInputs"(): void;
|
|
@@ -61468,7 +61489,6 @@ declare class gameScriptableSystemRequest extends IScriptable {
|
|
|
61468
61489
|
}
|
|
61469
61490
|
|
|
61470
61491
|
declare class gameScriptableSystemsContainer extends gameIScriptableSystemsContainer {
|
|
61471
|
-
"Get"(systemName: string): Handle<gameScriptableSystem>;
|
|
61472
61492
|
"QueueRequest"(request: Handle<gameScriptableSystemRequest>): void;
|
|
61473
61493
|
}
|
|
61474
61494
|
|
|
@@ -63157,6 +63177,11 @@ declare class gameStimuliSystem extends gameIStimuliSystem {
|
|
|
63157
63177
|
declare class gameStopAutoDriveOnDestinationReachedRequest extends gameScriptableSystemRequest {
|
|
63158
63178
|
}
|
|
63159
63179
|
|
|
63180
|
+
declare class gameStopAutoDriveRequest extends gameScriptableSystemRequest {
|
|
63181
|
+
"isDelamain": boolean;
|
|
63182
|
+
"locKey": string;
|
|
63183
|
+
}
|
|
63184
|
+
|
|
63160
63185
|
declare class gameStoryTierChangedEvent extends AIAIEvent {
|
|
63161
63186
|
"newTier": CyberEnums.gameStoryTier;
|
|
63162
63187
|
}
|
|
@@ -93063,6 +93088,9 @@ declare class NormalizeAndSaveSwayEvent extends redEvent {
|
|
|
93063
93088
|
"sway": Vector2;
|
|
93064
93089
|
}
|
|
93065
93090
|
|
|
93091
|
+
declare class Nothing {
|
|
93092
|
+
}
|
|
93093
|
+
|
|
93066
93094
|
declare class NotifiedSecSysAboutCombat extends redEvent {
|
|
93067
93095
|
}
|
|
93068
93096
|
|
|
@@ -129858,6 +129886,8 @@ declare class UI_AutodriveDataDef extends gamebbScriptDefinition {
|
|
|
129858
129886
|
"AutoDriveDelamain": gamebbScriptID_Bool;
|
|
129859
129887
|
"AutoDriveEnabled": gamebbScriptID_Bool;
|
|
129860
129888
|
"CinematicCameraActive": gamebbScriptID_Bool;
|
|
129889
|
+
"DestinationRemainingLength": gamebbScriptID_Float;
|
|
129890
|
+
"DestinationRemainingTime": gamebbScriptID_Float;
|
|
129861
129891
|
"FreeRoamEnabled": gamebbScriptID_Bool;
|
|
129862
129892
|
"AutoCreateInSystem"(): boolean;
|
|
129863
129893
|
}
|
|
@@ -132368,6 +132398,7 @@ declare class vehicleAudioVehicleCurveSet extends CurveSet {
|
|
|
132368
132398
|
}
|
|
132369
132399
|
|
|
132370
132400
|
declare class VehicleAutodriveContextDecisions extends AutodriveAndCinematicCameraContextDecisions {
|
|
132401
|
+
"EnterCondition"(stateContext: Handle<gamestateMachineStateContextScript>, scriptInterface: Handle<gamestateMachineGameScriptInterface>): boolean;
|
|
132371
132402
|
"OnStateChanged"(): void;
|
|
132372
132403
|
}
|
|
132373
132404
|
|
|
@@ -132581,6 +132612,7 @@ declare class vehicleBaseObject extends gameObject {
|
|
|
132581
132612
|
"NotifyWindowChange"(windowName: string, isOpened: boolean): void;
|
|
132582
132613
|
"NPCShoot"(target: Vector4, projectiles: number): void;
|
|
132583
132614
|
"PhysicsWakeUp"(): void;
|
|
132615
|
+
"PlayVehicleVisualCustomizationShader"(play: boolean, instant?: boolean, affectRims?: boolean): void;
|
|
132584
132616
|
"PreHijackPrepareDriverSlot"(): void;
|
|
132585
132617
|
"ReactToHitProcess"(hitEvent: Handle<gameeventsHitEvent>): void;
|
|
132586
132618
|
"RecordHasTag"(vehicleRecord: Handle<gamedataVehicle_Record>, tag: string): boolean;
|
|
@@ -133444,6 +133476,7 @@ declare class VehicleComponent extends ScriptableDeviceComponent {
|
|
|
133444
133476
|
"PlayDelayedHonk"(honkTime: number, delayTime: number): void;
|
|
133445
133477
|
static "PlayerPassengerHasGodModeFromCheatSystem"(vehicleID: entEntityID, gmType: CyberEnums.gameGodModeType): boolean;
|
|
133446
133478
|
"PlayHonkForDuration"(honkTime: number): void;
|
|
133479
|
+
"PlayVehicleVisualCustomizationShader"(play: boolean, instant?: boolean, affectRims?: boolean): void;
|
|
133447
133480
|
"ProcessHeatLevelOnVisualCustomization"(previousTemplate: VehicleVisualCustomizationTemplate, newTemplate: VehicleVisualCustomizationTemplate): void;
|
|
133448
133481
|
static "QueueEventToAllNonFriendlyAggressivePassengers"(vehicleID: entEntityID, evt: Handle<redEvent>, delay?: number): boolean;
|
|
133449
133482
|
static "QueueEventToAllPassengers"(vehicleID: entEntityID, evt: Handle<redEvent>, delay?: number, randomDelay?: boolean): boolean;
|
|
@@ -133577,7 +133610,6 @@ declare class VehicleComponent extends ScriptableDeviceComponent {
|
|
|
133577
133610
|
"OnVehicleWindowOpen"(evt: Handle<VehicleWindowOpen>): boolean;
|
|
133578
133611
|
"OnWeaponShootEvent"(evt: Handle<vehicleMountedWeaponShootEvent>): boolean;
|
|
133579
133612
|
"PassGameTimeToVehBB"(): void;
|
|
133580
|
-
"PlayVehicleVisualCustomizationShader"(play: boolean, instant?: boolean, affectRims?: boolean): void;
|
|
133581
133613
|
"RemoveVehicleDOT"(): void;
|
|
133582
133614
|
"RequestHUDRefresh"(): void;
|
|
133583
133615
|
"SendVehicleStartedUnmountingEventToPS"(isMounting: boolean, slotID: string, character: Handle<gameObject>): void;
|
|
@@ -134654,6 +134686,14 @@ declare class VehicleMinimapMappinComponent extends IScriptable {
|
|
|
134654
134686
|
"VehicleIsLatestSummoned"(): boolean;
|
|
134655
134687
|
}
|
|
134656
134688
|
|
|
134689
|
+
declare class VehicleMountedWeaponsAutodriveContextDecisions extends AutodriveAndCinematicCameraContextDecisions {
|
|
134690
|
+
"EnterCondition"(stateContext: Handle<gamestateMachineStateContextScript>, scriptInterface: Handle<gamestateMachineGameScriptInterface>): boolean;
|
|
134691
|
+
"OnStateChanged"(): void;
|
|
134692
|
+
}
|
|
134693
|
+
|
|
134694
|
+
declare class VehicleMountedWeaponsAutodriveContextEvents extends VehicleAutodriveContextEvents {
|
|
134695
|
+
}
|
|
134696
|
+
|
|
134657
134697
|
declare class vehicleMountedWeaponShootEvent extends redEvent {
|
|
134658
134698
|
"slotID": string;
|
|
134659
134699
|
"weaponID": string;
|
|
@@ -135664,8 +135704,8 @@ declare class vehicleVehicleCustomization extends entIComponent {
|
|
|
135664
135704
|
"HideUniqueCustomizationDecalsWithDisolve"(): void;
|
|
135665
135705
|
"SetComponentExcludedFromCustomization"(componentsExcludedFromCustomization: string[]): void;
|
|
135666
135706
|
"SetDefaultDecalsEnabled"(enabled: boolean): void;
|
|
135667
|
-
"SetupGenericCustomization"(componentsExcludedFromMask: string[], mask: redResourceReferenceScriptToken, packedColorA: number, packedColorB: number): void;
|
|
135668
|
-
"SetupUniqueCustomization"(customMultilayers: vehicleVehicleCustomMultilayer[], globalClearCoatOverrides: vehicleVehicleClearCoatOverrides, partsClearCoatOverrides: vehicleVehiclePartsClearCoatOverrides[]): void;
|
|
135707
|
+
"SetupGenericCustomization"(componentsExcludedFromMask: string[], mask: redResourceReferenceScriptToken, packedColorA: number, packedColorB: number, isInstant: boolean, affectRims: boolean): void;
|
|
135708
|
+
"SetupUniqueCustomization"(customMultilayers: vehicleVehicleCustomMultilayer[], globalClearCoatOverrides: vehicleVehicleClearCoatOverrides, partsClearCoatOverrides: vehicleVehiclePartsClearCoatOverrides[], isInstant: boolean): void;
|
|
135669
135709
|
"ShowUniqueCustomizationDecalsWithDisolve"(decals: vehicleVehicleDecalAttachmentData[]): void;
|
|
135670
135710
|
}
|
|
135671
135711
|
|
|
@@ -136876,6 +136916,9 @@ declare class VoiceOverQuickHackFeedbackEvent extends redEvent {
|
|
|
136876
136916
|
"voName": string;
|
|
136877
136917
|
}
|
|
136878
136918
|
|
|
136919
|
+
declare class Void {
|
|
136920
|
+
}
|
|
136921
|
+
|
|
136879
136922
|
declare class VolCloudsCustomData extends ICameraStorageCustomData {
|
|
136880
136923
|
}
|
|
136881
136924
|
|
package/out/enums.d.ts
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
/// <reference path="./precomputed/enums.d.ts" />
|
|
2
2
|
// THIS CODE IS GENERATED, PLEASE DO NOT EDIT THIS
|
|
3
3
|
declare namespace CyberEnums {
|
|
4
|
-
const enum $REDSCRIPT_SIGNATURE {
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
4
|
const enum AIArgumentType {
|
|
9
5
|
"Bool" = 0,
|
|
10
6
|
"Int" = 1,
|
|
@@ -7442,7 +7438,8 @@ declare namespace CyberEnums {
|
|
|
7442
7438
|
"CP77_Patch_2_2" = 2200,
|
|
7443
7439
|
"CP77_Patch_2_2_Hotfix1" = 2210,
|
|
7444
7440
|
"CP77_Patch_2_3" = 2300,
|
|
7445
|
-
"
|
|
7441
|
+
"CP77_Patch_2_3_Hotfix1" = 2310,
|
|
7442
|
+
"Current" = 2310,
|
|
7446
7443
|
}
|
|
7447
7444
|
|
|
7448
7445
|
const enum gameGameplayEventFlag {
|
package/out/index.d.ts
CHANGED
|
@@ -592,6 +592,7 @@ interface MpClasses {
|
|
|
592
592
|
AIbehaviorDriveStunnedTreeNodeDefinition: typeof AIbehaviorDriveStunnedTreeNodeDefinition;
|
|
593
593
|
AIbehaviorDriveSummoningTreeNodeDefinition: typeof AIbehaviorDriveSummoningTreeNodeDefinition;
|
|
594
594
|
AIbehaviorDriveToNodeTreeNodeDefinition: typeof AIbehaviorDriveToNodeTreeNodeDefinition;
|
|
595
|
+
AIbehaviorDriveToPointAutonomousAutodriveTreeNodeDefinition: typeof AIbehaviorDriveToPointAutonomousAutodriveTreeNodeDefinition;
|
|
595
596
|
AIbehaviorDriveToPointAutonomousTreeNodeDefinition: typeof AIbehaviorDriveToPointAutonomousTreeNodeDefinition;
|
|
596
597
|
AIbehaviorDriveToPointTreeNodeDefinition: typeof AIbehaviorDriveToPointTreeNodeDefinition;
|
|
597
598
|
AIbehaviorDriveTreeNodeDefinition: typeof AIbehaviorDriveTreeNodeDefinition;
|
|
@@ -2512,6 +2513,7 @@ interface MpClasses {
|
|
|
2512
2513
|
AutoDriveController: typeof AutoDriveController;
|
|
2513
2514
|
AutodriveForceBrakesCallbackListener: typeof AutodriveForceBrakesCallbackListener;
|
|
2514
2515
|
AutodriveHealthChangeListener: typeof AutodriveHealthChangeListener;
|
|
2516
|
+
AutoDriveHitRequest: typeof AutoDriveHitRequest;
|
|
2515
2517
|
AutodriveQuestContentLockListener: typeof AutodriveQuestContentLockListener;
|
|
2516
2518
|
AutoDriveSystem: typeof AutoDriveSystem;
|
|
2517
2519
|
AutoKillDelayEvent: typeof AutoKillDelayEvent;
|
|
@@ -7576,6 +7578,7 @@ interface MpClasses {
|
|
|
7576
7578
|
gameStimuliMergeInfo: typeof gameStimuliMergeInfo;
|
|
7577
7579
|
gameStimuliSystem: typeof gameStimuliSystem;
|
|
7578
7580
|
gameStopAutoDriveOnDestinationReachedRequest: typeof gameStopAutoDriveOnDestinationReachedRequest;
|
|
7581
|
+
gameStopAutoDriveRequest: typeof gameStopAutoDriveRequest;
|
|
7579
7582
|
gameStoryTierChangedEvent: typeof gameStoryTierChangedEvent;
|
|
7580
7583
|
gameStreamingMonitorSystem: typeof gameStreamingMonitorSystem;
|
|
7581
7584
|
gameStreamingSmartObjectsDataExtractor: typeof gameStreamingSmartObjectsDataExtractor;
|
|
@@ -10577,6 +10580,7 @@ interface MpClasses {
|
|
|
10577
10580
|
NoReactionPerformedRequest: typeof NoReactionPerformedRequest;
|
|
10578
10581
|
NormalDeathTask: typeof NormalDeathTask;
|
|
10579
10582
|
NormalizeAndSaveSwayEvent: typeof NormalizeAndSaveSwayEvent;
|
|
10583
|
+
Nothing: typeof Nothing;
|
|
10580
10584
|
NotifiedSecSysAboutCombat: typeof NotifiedSecSysAboutCombat;
|
|
10581
10585
|
NotifyHighlightedDevice: typeof NotifyHighlightedDevice;
|
|
10582
10586
|
NotifyNearbyAboutCombatEvent: typeof NotifyNearbyAboutCombatEvent;
|
|
@@ -15093,6 +15097,8 @@ interface MpClasses {
|
|
|
15093
15097
|
VehicleMappinComponent: typeof VehicleMappinComponent;
|
|
15094
15098
|
VehicleMappinDelayedDiscreteModeCallback: typeof VehicleMappinDelayedDiscreteModeCallback;
|
|
15095
15099
|
VehicleMinimapMappinComponent: typeof VehicleMinimapMappinComponent;
|
|
15100
|
+
VehicleMountedWeaponsAutodriveContextDecisions: typeof VehicleMountedWeaponsAutodriveContextDecisions;
|
|
15101
|
+
VehicleMountedWeaponsAutodriveContextEvents: typeof VehicleMountedWeaponsAutodriveContextEvents;
|
|
15096
15102
|
vehicleMountedWeaponShootEvent: typeof vehicleMountedWeaponShootEvent;
|
|
15097
15103
|
vehicleMoveSystem: typeof vehicleMoveSystem;
|
|
15098
15104
|
vehicleMoveSystemStopEvent: typeof vehicleMoveSystemStopEvent;
|
|
@@ -15329,6 +15335,7 @@ interface MpClasses {
|
|
|
15329
15335
|
VisualTagsPrereq: typeof VisualTagsPrereq;
|
|
15330
15336
|
VisualTooltipController: typeof VisualTooltipController;
|
|
15331
15337
|
VoiceOverQuickHackFeedbackEvent: typeof VoiceOverQuickHackFeedbackEvent;
|
|
15338
|
+
Void: typeof Void;
|
|
15332
15339
|
VolCloudsCustomData: typeof VolCloudsCustomData;
|
|
15333
15340
|
VolFogCustomData: typeof VolFogCustomData;
|
|
15334
15341
|
VolumetricFogAreaSettings: typeof VolumetricFogAreaSettings;
|
|
@@ -8,7 +8,7 @@ declare interface CyberMP {
|
|
|
8
8
|
* Removes game object classes (e.g., T extends gameObject, playerPuppet, NpcPuppet) from the map.
|
|
9
9
|
* @param objectClassMap Array of class names to delete.
|
|
10
10
|
*/
|
|
11
|
-
DeclareDeletedObjects(objectClassMap:
|
|
11
|
+
DeclareDeletedObjects(objectClassMap: Array<keyof MpClasses>): void;
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Removes game objects by their unique hashes from the map.
|
|
@@ -54,6 +54,14 @@ declare interface vehicleBaseObject extends gameObject {
|
|
|
54
54
|
public VehicleOwnerWasChanged(): void;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
declare
|
|
57
|
+
declare interface gameMappinSystem extends gamemappinsIMappinSystem {
|
|
58
58
|
TrackMappin(id: gameNewMappinID): void;
|
|
59
59
|
}
|
|
60
|
+
|
|
61
|
+
type OnlyExtendingScriptableSystem<T> = {
|
|
62
|
+
[K in keyof T as T[K] extends typeof gameScriptableSystem ? K : never]: T[K];
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
declare interface gameScriptableSystemsContainer<Map = OnlyExtendingScriptableSystem<MpClasses>> {
|
|
66
|
+
"Get"<N extends keyof Map>(systemName: N): UnwrapMpClass<Map[N]>;
|
|
67
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cybermp/client-types",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./out/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -13,8 +13,11 @@
|
|
|
13
13
|
],
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"devDependencies": {
|
|
16
|
+
"@types/fs-extra": "^11.0.4",
|
|
16
17
|
"@vitest/ui": "4.0.15",
|
|
17
18
|
"consola": "^3.4.2",
|
|
19
|
+
"fast-json-patch": "^3.1.1",
|
|
20
|
+
"fs-extra": "^11.3.2",
|
|
18
21
|
"rimraf": "^6.0.1",
|
|
19
22
|
"ts-morph": "^26.0.0",
|
|
20
23
|
"vitest": "^4.0.15"
|
|
@@ -25,6 +28,9 @@
|
|
|
25
28
|
"scripts": {
|
|
26
29
|
"start": "tsx ./src",
|
|
27
30
|
"dev": "tsx watch ./src",
|
|
31
|
+
"generate-patches": "tsx ./src/generate-patches.ts",
|
|
32
|
+
"apply-patches": "tsx ./src/apply-patches.ts",
|
|
33
|
+
"prettify-edited": "tsx ./src/prettify-edited.ts",
|
|
28
34
|
"build": "npm run start",
|
|
29
35
|
"test": "vitest run",
|
|
30
36
|
"test:dev": "vitest"
|