rock-mod 0.9.0 → 0.10.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/dist/client/RockMod.d.ts +4 -4
- package/dist/client/entities/common/baseObject/IBaseObject.d.ts +1 -1
- package/dist/client/entities/common/baseObject/IBaseObjectsIterator.d.ts +1 -1
- package/dist/client/entities/common/baseObject/IBaseObjectsManager.d.ts +3 -3
- package/dist/client/entities/common/blip/IBlip.d.ts +2 -2
- package/dist/client/entities/common/blip/IBlipsManager.d.ts +2 -2
- package/dist/client/entities/common/colshape/ICircleColshape.d.ts +1 -1
- package/dist/client/entities/common/colshape/IColshape.d.ts +1 -1
- package/dist/client/entities/common/colshape/IColshapesManager.d.ts +8 -8
- package/dist/client/entities/common/colshape/ICuboidColshape.d.ts +1 -1
- package/dist/client/entities/common/colshape/ICylinderColshape.d.ts +1 -1
- package/dist/client/entities/common/colshape/IRectangleColshape.d.ts +1 -1
- package/dist/client/entities/common/colshape/ISphereColshape.d.ts +1 -1
- package/dist/client/entities/common/entity/IEntitiesManager.d.ts +3 -3
- package/dist/client/entities/common/entity/IEntity.d.ts +2 -2
- package/dist/client/entities/common/marker/IMarker.d.ts +3 -3
- package/dist/client/entities/common/marker/IMarkersManager.d.ts +4 -4
- package/dist/client/entities/common/object/IObject.d.ts +1 -1
- package/dist/client/entities/common/object/IObjectsManager.d.ts +2 -2
- package/dist/client/entities/common/ped/IPed.d.ts +1 -1
- package/dist/client/entities/common/ped/IPedsManager.d.ts +2 -2
- package/dist/client/entities/common/player/IPlayer.d.ts +1 -1
- package/dist/client/entities/common/player/IPlayersManager.d.ts +2 -2
- package/dist/client/entities/common/vehicle/IVehicle.d.ts +1 -1
- package/dist/client/entities/common/vehicle/IVehiclesManager.d.ts +2 -2
- package/dist/client/entities/common/worldObject/IWorldObject.d.ts +2 -2
- package/dist/client/entities/common/worldObject/IWorldObjectsIterator.d.ts +3 -3
- package/dist/client/entities/common/worldObject/IWorldObjectsManager.d.ts +4 -4
- package/dist/client/entities/ragemp/baseObject/RageBaseObject.d.ts +2 -2
- package/dist/client/entities/ragemp/baseObject/RageBaseObjectsIterator.d.ts +2 -2
- package/dist/client/entities/ragemp/baseObject/RageBaseObjectsManager.d.ts +2 -2
- package/dist/client/entities/ragemp/blip/RageBlip.d.ts +3 -3
- package/dist/client/entities/ragemp/blip/RageBlipsManager.d.ts +1 -1
- package/dist/client/entities/ragemp/colshape/RageCircleColshape.d.ts +2 -2
- package/dist/client/entities/ragemp/colshape/RageColshape.d.ts +1 -1
- package/dist/client/entities/ragemp/colshape/RageColshapesManager.d.ts +2 -2
- package/dist/client/entities/ragemp/colshape/RageCuboidColshape.d.ts +2 -2
- package/dist/client/entities/ragemp/colshape/RageCylinderColshape.d.ts +2 -2
- package/dist/client/entities/ragemp/colshape/RageRectangleColshape.d.ts +2 -2
- package/dist/client/entities/ragemp/colshape/RageSphereColshape.d.ts +2 -2
- package/dist/client/entities/ragemp/entity/RageEntitiesManager.d.ts +3 -3
- package/dist/client/entities/ragemp/entity/RageEntity.d.ts +2 -2
- package/dist/client/entities/ragemp/marker/RageMarker.d.ts +4 -4
- package/dist/client/entities/ragemp/marker/RageMarkersManager.d.ts +1 -1
- package/dist/client/entities/ragemp/object/RageObject.d.ts +2 -2
- package/dist/client/entities/ragemp/object/RageObjectsManager.d.ts +1 -1
- package/dist/client/entities/ragemp/ped/RagePed.d.ts +2 -2
- package/dist/client/entities/ragemp/ped/RagePedsManager.d.ts +1 -1
- package/dist/client/entities/ragemp/player/RagePlayer.d.ts +2 -2
- package/dist/client/entities/ragemp/player/RagePlayersManager.d.ts +2 -2
- package/dist/client/entities/ragemp/vehicle/RageVehicle.d.ts +2 -2
- package/dist/client/entities/ragemp/vehicle/RageVehiclesManager.d.ts +1 -1
- package/dist/client/entities/ragemp/worldObject/RageWorldObject.d.ts +2 -2
- package/dist/client/entities/ragemp/worldObject/RageWorldObjectsIterator.d.ts +3 -3
- package/dist/client/entities/ragemp/worldObject/RageWorldObjectsManager.d.ts +3 -3
- package/dist/client/factories/common/IManagersFactory.d.ts +3 -3
- package/dist/client/factories/ragemp/RageManagersFactory.d.ts +1 -1
- package/dist/client/net/common/INetManager.d.ts +2 -2
- package/dist/client/net/common/events/IEventsManager.d.ts +2 -2
- package/dist/client/net/common/events/types.d.ts +1 -1
- package/dist/client/net/common/rpc/IRPCManager.d.ts +1 -1
- package/dist/client/net/ragemp/RageNetManager.d.ts +1 -1
- package/dist/client/net/ragemp/events/RageEventsManager.d.ts +3 -3
- package/dist/client/net/ragemp/rpc/RageRPCManager.d.ts +2 -2
- package/dist/client/utils/ragemp/RageUtilsManager.d.ts +1 -1
- package/dist/server/RockMod.d.ts +4 -4
- package/dist/server/entities/altv/baseObject/AltVBaseObject.d.ts +1 -1
- package/dist/server/entities/altv/baseObject/AltVBaseObjectsIterator.d.ts +2 -2
- package/dist/server/entities/altv/baseObject/AltVBaseObjectsManager.d.ts +2 -2
- package/dist/server/entities/altv/blip/AltVBlip.d.ts +3 -3
- package/dist/server/entities/altv/blip/AltVBlipsManager.d.ts +1 -1
- package/dist/server/entities/altv/colshape/AltVCircleColshape.d.ts +2 -2
- package/dist/server/entities/altv/colshape/AltVColshape.d.ts +1 -1
- package/dist/server/entities/altv/colshape/AltVColshapesManager.d.ts +5 -2
- package/dist/server/entities/altv/colshape/AltVColshapesManager.js +30 -0
- package/dist/server/entities/altv/colshape/AltVCuboidColshape.d.ts +2 -2
- package/dist/server/entities/altv/colshape/AltVCylinderColshape.d.ts +2 -2
- package/dist/server/entities/altv/colshape/AltVRectangleColshape.d.ts +2 -2
- package/dist/server/entities/altv/colshape/AltVSphereColshape.d.ts +2 -2
- package/dist/server/entities/altv/entity/AltVEntitiesManager.d.ts +2 -2
- package/dist/server/entities/altv/entity/AltVEntity.d.ts +2 -2
- package/dist/server/entities/altv/marker/AltVMarker.d.ts +4 -4
- package/dist/server/entities/altv/marker/AltVMarkersManager.d.ts +1 -1
- package/dist/server/entities/altv/object/AltVObject.d.ts +2 -2
- package/dist/server/entities/altv/object/AltVObjectsManager.d.ts +1 -1
- package/dist/server/entities/altv/ped/AltVPed.d.ts +2 -2
- package/dist/server/entities/altv/ped/AltVPedsManager.d.ts +1 -1
- package/dist/server/entities/altv/player/AltVPlayer.d.ts +6 -6
- package/dist/server/entities/altv/player/AltVPlayersManager.d.ts +2 -2
- package/dist/server/entities/altv/vehicle/AltVVehicle.d.ts +3 -3
- package/dist/server/entities/altv/vehicle/AltVVehiclesManager.d.ts +2 -2
- package/dist/server/entities/altv/worldObject/AltVWorldObject.d.ts +2 -2
- package/dist/server/entities/altv/worldObject/AltVWorldObjectsIterator.d.ts +3 -3
- package/dist/server/entities/altv/worldObject/AltVWorldObjectsManager.d.ts +3 -3
- package/dist/server/entities/common/baseObject/IBaseObject.d.ts +1 -1
- package/dist/server/entities/common/baseObject/IBaseObjectsIterator.d.ts +1 -1
- package/dist/server/entities/common/baseObject/IBaseObjectsManager.d.ts +3 -3
- package/dist/server/entities/common/blip/IBlip.d.ts +2 -2
- package/dist/server/entities/common/blip/IBlipsManager.d.ts +2 -2
- package/dist/server/entities/common/colshape/ICircleColshape.d.ts +1 -1
- package/dist/server/entities/common/colshape/IColshape.d.ts +1 -1
- package/dist/server/entities/common/colshape/IColshapesManager.d.ts +10 -8
- package/dist/server/entities/common/colshape/ICuboidColshape.d.ts +1 -1
- package/dist/server/entities/common/colshape/ICylinderColshape.d.ts +1 -1
- package/dist/server/entities/common/colshape/IRectangleColshape.d.ts +1 -1
- package/dist/server/entities/common/colshape/ISphereColshape.d.ts +1 -1
- package/dist/server/entities/common/entity/IEntitiesManager.d.ts +3 -3
- package/dist/server/entities/common/entity/IEntity.d.ts +2 -2
- package/dist/server/entities/common/marker/IMarker.d.ts +3 -3
- package/dist/server/entities/common/marker/IMarkersManager.d.ts +4 -4
- package/dist/server/entities/common/object/IObject.d.ts +1 -1
- package/dist/server/entities/common/object/IObjectsManager.d.ts +2 -2
- package/dist/server/entities/common/ped/IPed.d.ts +1 -1
- package/dist/server/entities/common/ped/IPedsManager.d.ts +2 -2
- package/dist/server/entities/common/player/IPlayer.d.ts +5 -5
- package/dist/server/entities/common/player/IPlayersManager.d.ts +2 -2
- package/dist/server/entities/common/vehicle/IVehicle.d.ts +3 -3
- package/dist/server/entities/common/vehicle/IVehiclesManager.d.ts +2 -2
- package/dist/server/entities/common/worldObject/IWorldObject.d.ts +2 -2
- package/dist/server/entities/common/worldObject/IWorldObjectsIterator.d.ts +3 -3
- package/dist/server/entities/common/worldObject/IWorldObjectsManager.d.ts +4 -4
- package/dist/server/entities/mock/baseObject/MockBaseObject.d.ts +3 -3
- package/dist/server/entities/mock/baseObject/MockBaseObjectsIterator.d.ts +2 -2
- package/dist/server/entities/mock/baseObject/MockBaseObjectsManager.d.ts +3 -3
- package/dist/server/entities/mock/blip/MockBlip.d.ts +3 -3
- package/dist/server/entities/mock/blip/MockBlipsManager.d.ts +1 -1
- package/dist/server/entities/mock/colshape/MockCircleColshape.d.ts +2 -2
- package/dist/server/entities/mock/colshape/MockColshape.d.ts +2 -2
- package/dist/server/entities/mock/colshape/MockColshapesManager.d.ts +4 -2
- package/dist/server/entities/mock/colshape/MockColshapesManager.js +3 -0
- package/dist/server/entities/mock/colshape/MockCuboidColshape.d.ts +2 -2
- package/dist/server/entities/mock/colshape/MockCylinderColshape.d.ts +2 -2
- package/dist/server/entities/mock/colshape/MockRectangleColshape.d.ts +2 -2
- package/dist/server/entities/mock/colshape/MockSphereColshape.d.ts +2 -2
- package/dist/server/entities/mock/common/IMockEntity.d.ts +1 -1
- package/dist/server/entities/mock/entity/MockEntitiesManager.d.ts +3 -3
- package/dist/server/entities/mock/entity/MockEntity.d.ts +3 -3
- package/dist/server/entities/mock/marker/MockMarker.d.ts +3 -3
- package/dist/server/entities/mock/marker/MockMarkersManager.d.ts +1 -1
- package/dist/server/entities/mock/object/MockObject.d.ts +2 -2
- package/dist/server/entities/mock/object/MockObjectsManager.d.ts +1 -1
- package/dist/server/entities/mock/ped/MockPed.d.ts +2 -2
- package/dist/server/entities/mock/ped/MockPedsManager.d.ts +1 -1
- package/dist/server/entities/mock/player/MockPlayer.d.ts +6 -6
- package/dist/server/entities/mock/player/MockPlayersManager.d.ts +1 -1
- package/dist/server/entities/mock/vehicle/MockVehicle.d.ts +3 -3
- package/dist/server/entities/mock/vehicle/MockVehiclesManager.d.ts +1 -1
- package/dist/server/entities/mock/worldObject/MockWorldObject.d.ts +3 -3
- package/dist/server/entities/mock/worldObject/MockWorldObjectsIterator.d.ts +3 -3
- package/dist/server/entities/mock/worldObject/MockWorldObjectsManager.d.ts +3 -3
- package/dist/server/entities/ragemp/baseObject/RageBaseObject.d.ts +2 -2
- package/dist/server/entities/ragemp/baseObject/RageBaseObject.js +1 -1
- package/dist/server/entities/ragemp/baseObject/RageBaseObjectsIterator.d.ts +2 -2
- package/dist/server/entities/ragemp/baseObject/RageBaseObjectsManager.d.ts +2 -2
- package/dist/server/entities/ragemp/blip/RageBlip.d.ts +3 -3
- package/dist/server/entities/ragemp/blip/RageBlipsManager.d.ts +1 -1
- package/dist/server/entities/ragemp/colshape/RageCircleColshape.d.ts +2 -2
- package/dist/server/entities/ragemp/colshape/RageColshape.d.ts +1 -1
- package/dist/server/entities/ragemp/colshape/RageColshapesManager.d.ts +5 -2
- package/dist/server/entities/ragemp/colshape/RageColshapesManager.js +25 -0
- package/dist/server/entities/ragemp/colshape/RageCuboidColshape.d.ts +2 -2
- package/dist/server/entities/ragemp/colshape/RageCylinderColshape.d.ts +2 -2
- package/dist/server/entities/ragemp/colshape/RageRectangleColshape.d.ts +2 -2
- package/dist/server/entities/ragemp/colshape/RageSphereColshape.d.ts +2 -2
- package/dist/server/entities/ragemp/entity/RageEntitiesManager.d.ts +3 -3
- package/dist/server/entities/ragemp/entity/RageEntity.d.ts +2 -2
- package/dist/server/entities/ragemp/marker/RageMarker.d.ts +4 -4
- package/dist/server/entities/ragemp/marker/RageMarkersManager.d.ts +1 -1
- package/dist/server/entities/ragemp/object/RageObject.d.ts +2 -2
- package/dist/server/entities/ragemp/object/RageObjectsManager.d.ts +1 -1
- package/dist/server/entities/ragemp/ped/RagePed.d.ts +2 -2
- package/dist/server/entities/ragemp/ped/RagePedsManager.d.ts +1 -1
- package/dist/server/entities/ragemp/player/RagePlayer.d.ts +5 -5
- package/dist/server/entities/ragemp/player/RagePlayersManager.d.ts +2 -2
- package/dist/server/entities/ragemp/vehicle/RageVehicle.d.ts +3 -3
- package/dist/server/entities/ragemp/vehicle/RageVehiclesManager.d.ts +1 -1
- package/dist/server/entities/ragemp/worldObject/RageWorldObject.d.ts +2 -2
- package/dist/server/entities/ragemp/worldObject/RageWorldObjectsIterator.d.ts +3 -3
- package/dist/server/entities/ragemp/worldObject/RageWorldObjectsManager.d.ts +3 -3
- package/dist/server/factories/altv/AltVManagersFactory.d.ts +1 -1
- package/dist/server/factories/common/IManagersFactory.d.ts +3 -3
- package/dist/server/factories/mock/MockManagersFactory.d.ts +2 -2
- package/dist/server/factories/ragemp/RageManagersFactory.d.ts +1 -1
- package/dist/server/net/altv/AltVNetManager.d.ts +1 -1
- package/dist/server/net/altv/events/AltVEventsManager.d.ts +4 -4
- package/dist/server/net/altv/rpc/AltVRPCManager.d.ts +3 -3
- package/dist/server/net/common/INetManager.d.ts +2 -2
- package/dist/server/net/common/events/IEventsManager.d.ts +3 -3
- package/dist/server/net/common/events/types.d.ts +5 -1
- package/dist/server/net/common/events/types.js +2 -0
- package/dist/server/net/common/rpc/IRPCManager.d.ts +2 -2
- package/dist/server/net/mock/MockNetManager.d.ts +1 -1
- package/dist/server/net/mock/events/MockEventsManager.d.ts +4 -4
- package/dist/server/net/mock/rpc/MockRPCManager.d.ts +4 -4
- package/dist/server/net/ragemp/RageNetManager.d.ts +1 -1
- package/dist/server/net/ragemp/events/RageEventsManager.d.ts +4 -4
- package/dist/server/net/ragemp/rpc/RageRPCManager.d.ts +3 -3
- package/dist/server/testing.d.ts +1 -1
- package/dist/server/utils/altv/AltVUtilsManager.d.ts +1 -1
- package/dist/server/utils/mock/MockUtilsManager.d.ts +1 -1
- package/dist/server/utils/ragemp/RageUtilsManager.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IEntitiesManager } from "../entity/IEntitiesManager";
|
|
2
|
-
import { IPlayer } from "./IPlayer";
|
|
1
|
+
import { type IEntitiesManager } from "../entity/IEntitiesManager";
|
|
2
|
+
import { type IPlayer } from "./IPlayer";
|
|
3
3
|
export interface IPlayersManager extends IEntitiesManager<IPlayer> {
|
|
4
4
|
getByName(name: string): IPlayer;
|
|
5
5
|
findByName(name: string): IPlayer | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IEntity, IEntityOptions } from "../entity/IEntity";
|
|
2
|
-
import { IRGBA } from "../../../../shared/common/utils";
|
|
3
|
-
import { IPlayer } from "../player";
|
|
1
|
+
import { type IEntity, type IEntityOptions } from "../entity/IEntity";
|
|
2
|
+
import { type IRGBA } from "../../../../shared/common/utils";
|
|
3
|
+
import { type IPlayer } from "../player";
|
|
4
4
|
export declare enum VehicleSeat {
|
|
5
5
|
NONE = 255,
|
|
6
6
|
DRIVER = 256,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IEntitiesManager, IEntityCreateOptions } from "../entity/IEntitiesManager";
|
|
2
|
-
import { IVehicle } from "./IVehicle";
|
|
1
|
+
import { type IEntitiesManager, type IEntityCreateOptions } from "../entity/IEntitiesManager";
|
|
2
|
+
import { type IVehicle } from "./IVehicle";
|
|
3
3
|
export interface IVehicleCreateOptions extends IEntityCreateOptions {
|
|
4
4
|
engine: boolean;
|
|
5
5
|
locked: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IBaseObject, IBaseObjectOptions } from "../baseObject";
|
|
2
|
-
import { IVector3D } from "../../../../shared/common/utils";
|
|
1
|
+
import { type IBaseObject, type IBaseObjectOptions } from "../baseObject";
|
|
2
|
+
import { type IVector3D } from "../../../../shared/common/utils";
|
|
3
3
|
export interface IWorldObjectOptions extends IBaseObjectOptions {
|
|
4
4
|
}
|
|
5
5
|
export interface IWorldObject extends IBaseObject {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IBaseObjectsIterator } from "../baseObject/IBaseObjectsIterator";
|
|
2
|
-
import { IWorldObject } from "./IWorldObject";
|
|
3
|
-
import { Vector2D, Vector3D } from "../../../../shared/common/utils/math/Vectors";
|
|
1
|
+
import { type IBaseObjectsIterator } from "../baseObject/IBaseObjectsIterator";
|
|
2
|
+
import { type IWorldObject } from "./IWorldObject";
|
|
3
|
+
import { type Vector2D, type Vector3D } from "../../../../shared/common/utils/math/Vectors";
|
|
4
4
|
export interface IWorldObjectsIterator<T extends IWorldObject> extends IBaseObjectsIterator<T> {
|
|
5
5
|
dimension(value: number): IterableIterator<T>;
|
|
6
6
|
range2D(center: Vector2D, range: number): IterableIterator<T>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IBaseObjectCreateOptions, IBaseObjectsManager, IBaseObjectsManagerOptions } from "../baseObject";
|
|
2
|
-
import { IWorldObject } from "./IWorldObject";
|
|
3
|
-
import { IWorldObjectsIterator } from "./IWorldObjectsIterator";
|
|
4
|
-
import { IVector3D } from "../../../../shared/common/utils";
|
|
1
|
+
import { type IBaseObjectCreateOptions, type IBaseObjectsManager, type IBaseObjectsManagerOptions } from "../baseObject";
|
|
2
|
+
import { type IWorldObject } from "./IWorldObject";
|
|
3
|
+
import { type IWorldObjectsIterator } from "./IWorldObjectsIterator";
|
|
4
|
+
import { type IVector3D } from "../../../../shared/common/utils";
|
|
5
5
|
export interface IWorldObjectsManagerOptions extends IBaseObjectsManagerOptions {
|
|
6
6
|
}
|
|
7
7
|
export interface IWorldObjectCreateOptions extends IBaseObjectCreateOptions {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IBaseObject } from "../../common/baseObject/IBaseObject";
|
|
2
|
-
import { IVector3D } from "../../../../shared/common/utils/math/Vectors";
|
|
3
|
-
import { BaseObjectType } from "../../../../shared";
|
|
1
|
+
import { type IBaseObject } from "../../common/baseObject/IBaseObject";
|
|
2
|
+
import { type IVector3D } from "../../../../shared/common/utils/math/Vectors";
|
|
3
|
+
import { type BaseObjectType } from "../../../../shared";
|
|
4
4
|
export interface IMockBaseObjectOptions {
|
|
5
5
|
id: number;
|
|
6
6
|
type: BaseObjectType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IBaseObjectsIterator } from "../../common/baseObject/IBaseObjectsIterator";
|
|
2
|
-
import { MockBaseObject } from "./MockBaseObject";
|
|
1
|
+
import { type IBaseObjectsIterator } from "../../common/baseObject/IBaseObjectsIterator";
|
|
2
|
+
import { type MockBaseObject } from "./MockBaseObject";
|
|
3
3
|
export declare class MockBaseObjectsIterator<T extends MockBaseObject> implements IBaseObjectsIterator<T> {
|
|
4
4
|
protected readonly _baseObjects: ReadonlyMap<number, T>;
|
|
5
5
|
constructor(baseObjects: ReadonlyMap<number, T>);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IBaseObjectsManager, IBaseObjectsManagerOptions } from "../../common/baseObject/IBaseObjectsManager";
|
|
2
|
-
import { MockBaseObject } from "./MockBaseObject";
|
|
1
|
+
import { type IBaseObjectsManager, type IBaseObjectsManagerOptions } from "../../common/baseObject/IBaseObjectsManager";
|
|
2
|
+
import { type MockBaseObject } from "./MockBaseObject";
|
|
3
3
|
import { MockBaseObjectsIterator } from "./MockBaseObjectsIterator";
|
|
4
|
-
import { BaseObjectType } from "../../../../shared";
|
|
4
|
+
import { type BaseObjectType } from "../../../../shared";
|
|
5
5
|
export interface IMockBaseObjectsManagerOptions extends IBaseObjectsManagerOptions {
|
|
6
6
|
}
|
|
7
7
|
export declare abstract class MockBaseObjectsManager<T extends MockBaseObject> implements IBaseObjectsManager<T> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MockWorldObject, IMockWorldObjectOptions } from "../worldObject/MockWorldObject";
|
|
2
|
-
import { IBlip } from "../../common";
|
|
3
|
-
import { IBlipColor, IBlipSprite } from "../../../../shared";
|
|
1
|
+
import { MockWorldObject, type IMockWorldObjectOptions } from "../worldObject/MockWorldObject";
|
|
2
|
+
import { type IBlip } from "../../common";
|
|
3
|
+
import { type IBlipColor, type IBlipSprite } from "../../../../shared";
|
|
4
4
|
export interface IMockBlipOptions extends IMockWorldObjectOptions {
|
|
5
5
|
alpha: number;
|
|
6
6
|
color: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IBlipCreateOptions, IBlipsManager } from "../../common/blip/IBlipsManager";
|
|
1
|
+
import { type IBlipCreateOptions, type IBlipsManager } from "../../common/blip/IBlipsManager";
|
|
2
2
|
import { MockWorldObjectsManager } from "../worldObject/MockWorldObjectsManager";
|
|
3
3
|
import { MockBlip } from "./MockBlip";
|
|
4
4
|
export interface IMockBlipCreateOptions extends IBlipCreateOptions {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ICircleColshape } from "../../common";
|
|
2
|
-
import { IMockColshapeOptions, MockColshape } from "./MockColshape";
|
|
1
|
+
import { type ICircleColshape } from "../../common";
|
|
2
|
+
import { type IMockColshapeOptions, MockColshape } from "./MockColshape";
|
|
3
3
|
export interface IMockCircleColshapeCreateOptions extends IMockColshapeOptions {
|
|
4
4
|
range: number;
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IColshape } from "../../common/colshape/IColshape";
|
|
2
|
-
import { MockWorldObject, IMockWorldObjectOptions } from "../worldObject/MockWorldObject";
|
|
1
|
+
import { type IColshape } from "../../common/colshape/IColshape";
|
|
2
|
+
import { MockWorldObject, type IMockWorldObjectOptions } from "../worldObject/MockWorldObject";
|
|
3
3
|
export interface IMockColshapeOptions extends IMockWorldObjectOptions {
|
|
4
4
|
}
|
|
5
5
|
export declare abstract class MockColshape extends MockWorldObject implements IColshape {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { ICircleColshapeCreateOptions, IColshapesManager, ICuboidColshapeCreateOptions, ICylinderColshapeCreateOptions, IRectangleColshapeCreateOptions, ISphereColshapeCreateOptions } from "../../common";
|
|
1
|
+
import { type ICircleColshapeCreateOptions, type IColshapesManager, type ICuboidColshapeCreateOptions, type ICylinderColshapeCreateOptions, type IRectangleColshapeCreateOptions, type ISphereColshapeCreateOptions } from "../../common";
|
|
2
2
|
import { MockWorldObjectsManager } from "../worldObject/MockWorldObjectsManager";
|
|
3
3
|
import { MockCircleColshape } from "./MockCircleColshape";
|
|
4
4
|
import { MockCuboidColshape } from "./MockCuboidColshape";
|
|
5
5
|
import { MockCylinderColshape } from "./MockCylinderColshape";
|
|
6
6
|
import { MockRectangleColshape } from "./MockRectangleColshape";
|
|
7
7
|
import { MockSphereColshape } from "./MockSphereColshape";
|
|
8
|
-
import { MockColshape } from "./MockColshape";
|
|
8
|
+
import { type MockColshape } from "./MockColshape";
|
|
9
|
+
import { type MockPlayer } from "../player/MockPlayer";
|
|
9
10
|
export interface IMockCircleColshapeCreateOptions extends ICircleColshapeCreateOptions {
|
|
10
11
|
}
|
|
11
12
|
export interface IMockCuboidColshapeCreateOptions extends ICuboidColshapeCreateOptions {
|
|
@@ -24,4 +25,5 @@ export declare class MockColshapesManager extends MockWorldObjectsManager<MockCo
|
|
|
24
25
|
createCylinder(options: IMockCylinderColshapeCreateOptions): MockCylinderColshape;
|
|
25
26
|
createRectangle(options: IMockRectangleColshapeCreateOptions): MockRectangleColshape;
|
|
26
27
|
createSphere(options: IMockSphereColshapeCreateOptions): MockSphereColshape;
|
|
28
|
+
getParticipants(): Set<MockPlayer>;
|
|
27
29
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ICuboidColshape } from "../../common";
|
|
2
|
-
import { IMockColshapeOptions, MockColshape } from "./MockColshape";
|
|
1
|
+
import { type ICuboidColshape } from "../../common";
|
|
2
|
+
import { type IMockColshapeOptions, MockColshape } from "./MockColshape";
|
|
3
3
|
export interface IMockCuboidColshapeCreateOptions extends IMockColshapeOptions {
|
|
4
4
|
width: number;
|
|
5
5
|
depth: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ICylinderColshape } from "../../common";
|
|
2
|
-
import { IMockColshapeOptions, MockColshape } from "./MockColshape";
|
|
1
|
+
import { type ICylinderColshape } from "../../common";
|
|
2
|
+
import { type IMockColshapeOptions, MockColshape } from "./MockColshape";
|
|
3
3
|
export interface IMockCylinderColshapeCreateOptions extends IMockColshapeOptions {
|
|
4
4
|
height: number;
|
|
5
5
|
range: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IRectangleColshape } from "../../common";
|
|
2
|
-
import { IMockColshapeOptions, MockColshape } from "./MockColshape";
|
|
1
|
+
import { type IRectangleColshape } from "../../common";
|
|
2
|
+
import { type IMockColshapeOptions, MockColshape } from "./MockColshape";
|
|
3
3
|
export interface IMockRectangleColshapeCreateOptions extends IMockColshapeOptions {
|
|
4
4
|
width: number;
|
|
5
5
|
height: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ISphereColshape } from "../../common";
|
|
2
|
-
import { IMockColshapeOptions, MockColshape } from "./MockColshape";
|
|
1
|
+
import { type ISphereColshape } from "../../common";
|
|
2
|
+
import { type IMockColshapeOptions, MockColshape } from "./MockColshape";
|
|
3
3
|
export interface IMockSphereColshapeCreateOptions extends IMockColshapeOptions {
|
|
4
4
|
range: number;
|
|
5
5
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IEntitiesManager } from "../../common/entity/IEntitiesManager";
|
|
2
|
-
import { MockEntity } from "./MockEntity";
|
|
3
|
-
import { IMockWorldObjectsManagerOptions, MockWorldObjectsManager } from "../worldObject/MockWorldObjectsManager";
|
|
1
|
+
import { type IEntitiesManager } from "../../common/entity/IEntitiesManager";
|
|
2
|
+
import { type MockEntity } from "./MockEntity";
|
|
3
|
+
import { type IMockWorldObjectsManagerOptions, MockWorldObjectsManager } from "../worldObject/MockWorldObjectsManager";
|
|
4
4
|
export interface IMockEntitiesManagerOptions extends IMockWorldObjectsManagerOptions {
|
|
5
5
|
}
|
|
6
6
|
export declare abstract class MockEntitiesManager<T extends MockEntity> extends MockWorldObjectsManager<T> implements IEntitiesManager<T> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IEntity } from "../../common/entity/IEntity";
|
|
2
|
-
import { MockWorldObject, IMockWorldObjectOptions } from "../worldObject/MockWorldObject";
|
|
3
|
-
import { IVector3D, Vector3D } from "../../../../shared/common/utils";
|
|
1
|
+
import { type IEntity } from "../../common/entity/IEntity";
|
|
2
|
+
import { MockWorldObject, type IMockWorldObjectOptions } from "../worldObject/MockWorldObject";
|
|
3
|
+
import { type IVector3D, Vector3D } from "../../../../shared/common/utils";
|
|
4
4
|
export interface IMockEntityOptions extends IMockWorldObjectOptions {
|
|
5
5
|
model: number;
|
|
6
6
|
rotation: IVector3D;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IMarker } from "../../common/marker/IMarker";
|
|
2
|
-
import { MockWorldObject, IMockWorldObjectOptions } from "../worldObject/MockWorldObject";
|
|
3
|
-
import { IRGBA, IVector3D } from "../../../../shared/common/utils";
|
|
1
|
+
import { type IMarker } from "../../common/marker/IMarker";
|
|
2
|
+
import { MockWorldObject, type IMockWorldObjectOptions } from "../worldObject/MockWorldObject";
|
|
3
|
+
import { type IRGBA, type IVector3D } from "../../../../shared/common/utils";
|
|
4
4
|
import { IMarkerType } from "../../../../shared";
|
|
5
5
|
export interface IMockMarkerOptions extends IMockWorldObjectOptions {
|
|
6
6
|
markerType?: IMarkerType;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IMarkerCreateOptions, IMarkersManager } from "../../common/marker/IMarkersManager";
|
|
1
|
+
import { type IMarkerCreateOptions, type IMarkersManager } from "../../common/marker/IMarkersManager";
|
|
2
2
|
import { MockWorldObjectsManager } from "../worldObject/MockWorldObjectsManager";
|
|
3
3
|
import { MockMarker } from "./MockMarker";
|
|
4
4
|
export interface IMockMarkerCreateOptions extends IMarkerCreateOptions {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IObject } from "../../common/object/IObject";
|
|
2
|
-
import { MockEntity, IMockEntityOptions } from "../entity/MockEntity";
|
|
1
|
+
import { type IObject } from "../../common/object/IObject";
|
|
2
|
+
import { MockEntity, type IMockEntityOptions } from "../entity/MockEntity";
|
|
3
3
|
export interface IMockObjectOptions extends IMockEntityOptions {
|
|
4
4
|
alpha?: number;
|
|
5
5
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IObjectCreateOptions, IObjectsManager } from "../../common/object/IObjectsManager";
|
|
1
|
+
import { type IObjectCreateOptions, type IObjectsManager } from "../../common/object/IObjectsManager";
|
|
2
2
|
import { MockEntitiesManager } from "../entity/MockEntitiesManager";
|
|
3
3
|
import { MockObject } from "./MockObject";
|
|
4
4
|
export interface IMockObjectCreateOptions extends IObjectCreateOptions {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IPed } from "../../common/ped/IPed";
|
|
2
|
-
import { MockEntity, IMockEntityOptions } from "../entity/MockEntity";
|
|
1
|
+
import { type IPed } from "../../common/ped/IPed";
|
|
2
|
+
import { MockEntity, type IMockEntityOptions } from "../entity/MockEntity";
|
|
3
3
|
export interface IMockPedOptions extends IMockEntityOptions {
|
|
4
4
|
}
|
|
5
5
|
export declare class MockPed extends MockEntity implements IPed {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPedCreateOptions, IPedsManager } from "../../common/ped/IPedsManager";
|
|
1
|
+
import { type IPedCreateOptions, type IPedsManager } from "../../common/ped/IPedsManager";
|
|
2
2
|
import { MockEntitiesManager } from "../entity/MockEntitiesManager";
|
|
3
3
|
import { MockPed } from "./MockPed";
|
|
4
4
|
export interface IMockPedCreateOptions extends IPedCreateOptions {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { IPlayer } from "../../common/player/IPlayer";
|
|
2
|
-
import { MockEntity, IMockEntityOptions } from "../entity/MockEntity";
|
|
3
|
-
import { Vector3D } from "../../../../shared/common/utils/math/Vectors";
|
|
4
|
-
import { RageVehicle } from "../../ragemp/vehicle/RageVehicle";
|
|
5
|
-
import { IMockClientRPC } from "../../../net/mock/rpc/MockRPCManager";
|
|
6
|
-
import { IServerToClientEvents } from "../../../../shared";
|
|
1
|
+
import { type IPlayer } from "../../common/player/IPlayer";
|
|
2
|
+
import { MockEntity, type IMockEntityOptions } from "../entity/MockEntity";
|
|
3
|
+
import { type Vector3D } from "../../../../shared/common/utils/math/Vectors";
|
|
4
|
+
import { type RageVehicle } from "../../ragemp/vehicle/RageVehicle";
|
|
5
|
+
import { type IMockClientRPC } from "../../../net/mock/rpc/MockRPCManager";
|
|
6
|
+
import { type IServerToClientEvents } from "../../../../shared";
|
|
7
7
|
export interface IMockPlayerOptions extends IMockEntityOptions {
|
|
8
8
|
name?: string;
|
|
9
9
|
socialClub?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPlayersManager } from "../../common/player/IPlayersManager";
|
|
1
|
+
import { type IPlayersManager } from "../../common/player/IPlayersManager";
|
|
2
2
|
import { MockPlayer } from "./MockPlayer";
|
|
3
3
|
import { MockEntitiesManager } from "../entity/MockEntitiesManager";
|
|
4
4
|
import { Vector3D } from "../../../../shared/common/utils/math/Vectors";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IVehicle } from "../../common/vehicle/IVehicle";
|
|
2
|
-
import { MockEntity, IMockEntityOptions } from "../entity/MockEntity";
|
|
1
|
+
import { type IVehicle } from "../../common/vehicle/IVehicle";
|
|
2
|
+
import { MockEntity, type IMockEntityOptions } from "../entity/MockEntity";
|
|
3
3
|
import { RGBA } from "../../../../shared/common/utils";
|
|
4
|
-
import { MockPlayer } from "../player/MockPlayer";
|
|
4
|
+
import { type MockPlayer } from "../player/MockPlayer";
|
|
5
5
|
export interface IMockVehicleOptions extends IMockEntityOptions {
|
|
6
6
|
engine?: boolean;
|
|
7
7
|
locked?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IVehicleCreateOptions, IVehiclesManager } from "../../common/vehicle/IVehiclesManager";
|
|
1
|
+
import { type IVehicleCreateOptions, type IVehiclesManager } from "../../common/vehicle/IVehiclesManager";
|
|
2
2
|
import { MockEntitiesManager } from "../entity/MockEntitiesManager";
|
|
3
3
|
import { MockVehicle } from "./MockVehicle";
|
|
4
4
|
export interface IMockVehicleCreateOptions extends IVehicleCreateOptions {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IWorldObject } from "../../common/worldObject/IWorldObject";
|
|
2
|
-
import { MockBaseObject, IMockBaseObjectOptions } from "../baseObject/MockBaseObject";
|
|
3
|
-
import { IVector3D } from "../../../../shared/common/utils/math/Vectors";
|
|
1
|
+
import { type IWorldObject } from "../../common/worldObject/IWorldObject";
|
|
2
|
+
import { MockBaseObject, type IMockBaseObjectOptions } from "../baseObject/MockBaseObject";
|
|
3
|
+
import { type IVector3D } from "../../../../shared/common/utils/math/Vectors";
|
|
4
4
|
export interface IMockWorldObjectOptions extends IMockBaseObjectOptions {
|
|
5
5
|
position: IVector3D;
|
|
6
6
|
dimension: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IWorldObjectsIterator } from "../../common/worldObject/IWorldObjectsIterator";
|
|
2
|
-
import { MockWorldObject } from "./MockWorldObject";
|
|
1
|
+
import { type IWorldObjectsIterator } from "../../common/worldObject/IWorldObjectsIterator";
|
|
2
|
+
import { type MockWorldObject } from "./MockWorldObject";
|
|
3
3
|
import { MockBaseObjectsIterator } from "../baseObject/MockBaseObjectsIterator";
|
|
4
|
-
import { Vector2D, Vector3D } from "../../../../shared/common/utils/math/Vectors";
|
|
4
|
+
import { type Vector2D, type Vector3D } from "../../../../shared/common/utils/math/Vectors";
|
|
5
5
|
export declare class MockWorldObjectsIterator<T extends MockWorldObject> extends MockBaseObjectsIterator<T> implements IWorldObjectsIterator<T> {
|
|
6
6
|
constructor(baseObjects: ReadonlyMap<number, T>);
|
|
7
7
|
dimension(value: number): IterableIterator<T>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IWorldObjectsManager } from "../../common/worldObject/IWorldObjectsManager";
|
|
2
|
-
import { MockWorldObject } from "./MockWorldObject";
|
|
3
|
-
import { IMockBaseObjectsManagerOptions, MockBaseObjectsManager } from "../baseObject/MockBaseObjectsManager";
|
|
1
|
+
import { type IWorldObjectsManager } from "../../common/worldObject/IWorldObjectsManager";
|
|
2
|
+
import { type MockWorldObject } from "./MockWorldObject";
|
|
3
|
+
import { type IMockBaseObjectsManagerOptions, MockBaseObjectsManager } from "../baseObject/MockBaseObjectsManager";
|
|
4
4
|
import { MockWorldObjectsIterator } from "./MockWorldObjectsIterator";
|
|
5
5
|
export interface IMockWorldObjectsManagerOptions extends IMockBaseObjectsManagerOptions {
|
|
6
6
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IBaseObject, IBaseObjectOptions } from "../../common/baseObject/IBaseObject";
|
|
2
|
-
import { BaseObjectType } from "../../../../shared";
|
|
1
|
+
import { type IBaseObject, type IBaseObjectOptions } from "../../common/baseObject/IBaseObject";
|
|
2
|
+
import { type BaseObjectType } from "../../../../shared";
|
|
3
3
|
export interface IRageBaseObjectOptions<T extends EntityMp> extends IBaseObjectOptions {
|
|
4
4
|
mpEntity: T;
|
|
5
5
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RageBaseObject = void 0;
|
|
4
4
|
// RAGEMP BUG: event 'entityDestroyed' is not callable
|
|
5
|
-
const unsupportedRageEntityTypes = new Set(["blip", "colshape", "object", "vehicle"]);
|
|
5
|
+
const unsupportedRageEntityTypes = new Set(["blip", "colshape", "object", "ped", "vehicle"]);
|
|
6
6
|
class RageBaseObject {
|
|
7
7
|
_mpEntity;
|
|
8
8
|
get id() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IBaseObjectsIterator } from "../../common/baseObject/IBaseObjectsIterator";
|
|
2
|
-
import { RageBaseObject } from "./RageBaseObject";
|
|
1
|
+
import { type IBaseObjectsIterator } from "../../common/baseObject/IBaseObjectsIterator";
|
|
2
|
+
import { type RageBaseObject } from "./RageBaseObject";
|
|
3
3
|
export declare class RageBaseObjectsIterator<T extends RageBaseObject> implements IBaseObjectsIterator<T> {
|
|
4
4
|
private readonly _baseObjects;
|
|
5
5
|
constructor(baseObjects: ReadonlyMap<number, T>);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IBaseObjectsManager, IBaseObjectsManagerOptions } from "../../common/baseObject/IBaseObjectsManager";
|
|
2
|
-
import { RageBaseObject } from "./RageBaseObject";
|
|
1
|
+
import { type IBaseObjectsManager, type IBaseObjectsManagerOptions } from "../../common/baseObject/IBaseObjectsManager";
|
|
2
|
+
import { type RageBaseObject } from "./RageBaseObject";
|
|
3
3
|
import { RageBaseObjectsIterator } from "./RageBaseObjectsIterator";
|
|
4
4
|
export interface IRageBaseObjectsManagerOptions extends IBaseObjectsManagerOptions {
|
|
5
5
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IRageWorldObjectOptions, RageWorldObject } from "../worldObject/RageWorldObject";
|
|
2
|
-
import { IBlip } from "../../common";
|
|
3
|
-
import { IBlipColor, IBlipSprite } from "../../../../shared";
|
|
1
|
+
import { type IRageWorldObjectOptions, RageWorldObject } from "../worldObject/RageWorldObject";
|
|
2
|
+
import { type IBlip } from "../../common";
|
|
3
|
+
import { type IBlipColor, type IBlipSprite } from "../../../../shared";
|
|
4
4
|
export interface IRageBlipOptions extends IRageWorldObjectOptions<EntityMp> {
|
|
5
5
|
}
|
|
6
6
|
export declare class RageBlip extends RageWorldObject<EntityMp> implements IBlip {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IBlipCreateOptions, IBlipsManager } from "../../common";
|
|
1
|
+
import { type IBlipCreateOptions, type IBlipsManager } from "../../common";
|
|
2
2
|
import { RageWorldObjectsManager } from "../worldObject/RageWorldObjectsManager";
|
|
3
3
|
import { RageBlip } from "./RageBlip";
|
|
4
4
|
export interface IRageBlipCreateOptions extends IBlipCreateOptions {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IRageColshapeOptions, RageColshape } from "./RageColshape";
|
|
2
|
-
import { ICircleColshape } from "../../common";
|
|
1
|
+
import { type IRageColshapeOptions, RageColshape } from "./RageColshape";
|
|
2
|
+
import { type ICircleColshape } from "../../common";
|
|
3
3
|
export interface IRageCircleColshapeOptions extends IRageColshapeOptions {
|
|
4
4
|
}
|
|
5
5
|
export declare class RageCircleColshape extends RageColshape implements ICircleColshape {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IRageWorldObjectOptions, RageWorldObject } from "../worldObject/RageWorldObject";
|
|
1
|
+
import { type IRageWorldObjectOptions, RageWorldObject } from "../worldObject/RageWorldObject";
|
|
2
2
|
export interface IRageColshapeOptions extends IRageWorldObjectOptions<ColshapeMp> {
|
|
3
3
|
}
|
|
4
4
|
export declare abstract class RageColshape extends RageWorldObject<ColshapeMp> {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { RageWorldObjectsManager } from "../worldObject/RageWorldObjectsManager";
|
|
2
|
-
import { RageColshape } from "./RageColshape";
|
|
3
|
-
import { ICircleColshapeCreateOptions, IColshapesManager, ICuboidColshapeCreateOptions, ICylinderColshapeCreateOptions, IRectangleColshapeCreateOptions, ISphereColshapeCreateOptions } from "../../common";
|
|
2
|
+
import { type RageColshape } from "./RageColshape";
|
|
3
|
+
import { type ICircleColshapeCreateOptions, type IColshapesManager, type ICuboidColshapeCreateOptions, type ICylinderColshapeCreateOptions, type IRectangleColshapeCreateOptions, type ISphereColshapeCreateOptions } from "../../common";
|
|
4
4
|
import { RageCircleColshape } from "./RageCircleColshape";
|
|
5
5
|
import { RageCuboidColshape } from "./RageCuboidColshape";
|
|
6
6
|
import { RageCylinderColshape } from "./RageCylinderColshape";
|
|
7
7
|
import { RageRectangleColshape } from "./RageRectangleColshape";
|
|
8
8
|
import { RageSphereColshape } from "./RageSphereColshape";
|
|
9
|
+
import { type RagePlayer } from "../player/RagePlayer";
|
|
9
10
|
export interface IRageCircleColshapeCreateOptions extends ICircleColshapeCreateOptions {
|
|
10
11
|
}
|
|
11
12
|
export interface IRageCuboidColshapeCreateOptions extends ICuboidColshapeCreateOptions {
|
|
@@ -17,10 +18,12 @@ export interface IRageRectangleColshapeCreateOptions extends IRectangleColshapeC
|
|
|
17
18
|
export interface IRageSphereColshapeCreateOptions extends ISphereColshapeCreateOptions {
|
|
18
19
|
}
|
|
19
20
|
export declare class RageColshapesManager extends RageWorldObjectsManager<RageColshape> implements IColshapesManager {
|
|
21
|
+
private readonly _colshapesParticipants;
|
|
20
22
|
constructor();
|
|
21
23
|
createCircle(options: IRageCircleColshapeCreateOptions): RageCircleColshape;
|
|
22
24
|
createCuboid(options: IRageCuboidColshapeCreateOptions): RageCuboidColshape;
|
|
23
25
|
createCylinder(options: IRageCylinderColshapeCreateOptions): RageCylinderColshape;
|
|
24
26
|
createRectangle(options: IRageRectangleColshapeCreateOptions): RageRectangleColshape;
|
|
25
27
|
createSphere(options: IRageSphereColshapeCreateOptions): RageSphereColshape;
|
|
28
|
+
getParticipants(colshape: RageColshape): Set<RagePlayer>;
|
|
26
29
|
}
|
|
@@ -7,11 +7,28 @@ const RageCuboidColshape_1 = require("./RageCuboidColshape");
|
|
|
7
7
|
const RageCylinderColshape_1 = require("./RageCylinderColshape");
|
|
8
8
|
const RageRectangleColshape_1 = require("./RageRectangleColshape");
|
|
9
9
|
const RageSphereColshape_1 = require("./RageSphereColshape");
|
|
10
|
+
const RockMod_1 = require("../../../RockMod");
|
|
11
|
+
const types_1 = require("../../../net/common/events/types");
|
|
10
12
|
class RageColshapesManager extends RageWorldObjectsManager_1.RageWorldObjectsManager {
|
|
13
|
+
_colshapesParticipants = new Map();
|
|
11
14
|
constructor() {
|
|
12
15
|
super({
|
|
13
16
|
baseObjectsType: "colshape",
|
|
14
17
|
});
|
|
18
|
+
mp.events.add("playerEnterColshape", (mpPlayer, mpColshape) => {
|
|
19
|
+
const player = RockMod_1.RockMod.instance.players.getByID(mpPlayer.id);
|
|
20
|
+
const colshape = this.getByID(mpColshape.id);
|
|
21
|
+
const participants = this.getParticipants(colshape);
|
|
22
|
+
participants.add(player);
|
|
23
|
+
RockMod_1.RockMod.instance.net.events.emitInternal(types_1.ServerInternalEventName.PlayerEnteredColshape, player, colshape);
|
|
24
|
+
});
|
|
25
|
+
mp.events.add("playerExitColshape", (mpPlayer, mpColshape) => {
|
|
26
|
+
const player = RockMod_1.RockMod.instance.players.getByID(mpPlayer.id);
|
|
27
|
+
const colshape = this.getByID(mpColshape.id);
|
|
28
|
+
const participants = this.getParticipants(colshape);
|
|
29
|
+
participants.delete(player);
|
|
30
|
+
RockMod_1.RockMod.instance.net.events.emitInternal(types_1.ServerInternalEventName.PlayerLeftColshape, player, colshape);
|
|
31
|
+
});
|
|
15
32
|
}
|
|
16
33
|
createCircle(options) {
|
|
17
34
|
const { range, position, dimension } = options;
|
|
@@ -58,5 +75,13 @@ class RageColshapesManager extends RageWorldObjectsManager_1.RageWorldObjectsMan
|
|
|
58
75
|
this.registerBaseObject(colshape);
|
|
59
76
|
return colshape;
|
|
60
77
|
}
|
|
78
|
+
getParticipants(colshape) {
|
|
79
|
+
let participants = this._colshapesParticipants.get(colshape);
|
|
80
|
+
if (!participants) {
|
|
81
|
+
participants = new Set();
|
|
82
|
+
this._colshapesParticipants.set(colshape, participants);
|
|
83
|
+
}
|
|
84
|
+
return participants;
|
|
85
|
+
}
|
|
61
86
|
}
|
|
62
87
|
exports.RageColshapesManager = RageColshapesManager;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IRageColshapeOptions, RageColshape } from "./RageColshape";
|
|
2
|
-
import { ICuboidColshape } from "../../common";
|
|
1
|
+
import { type IRageColshapeOptions, RageColshape } from "./RageColshape";
|
|
2
|
+
import { type ICuboidColshape } from "../../common";
|
|
3
3
|
export interface IRageCuboidColshapeOptions extends IRageColshapeOptions {
|
|
4
4
|
}
|
|
5
5
|
export declare class RageCuboidColshape extends RageColshape implements ICuboidColshape {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ICylinderColshape } from "../../common";
|
|
2
|
-
import { IRageColshapeOptions, RageColshape } from "./RageColshape";
|
|
1
|
+
import { type ICylinderColshape } from "../../common";
|
|
2
|
+
import { type IRageColshapeOptions, RageColshape } from "./RageColshape";
|
|
3
3
|
export interface IRageCylinderColshapeOptions extends IRageColshapeOptions {
|
|
4
4
|
}
|
|
5
5
|
export declare class RageCylinderColshape extends RageColshape implements ICylinderColshape {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IRectangleColshape } from "../../common";
|
|
2
|
-
import { IRageColshapeOptions, RageColshape } from "./RageColshape";
|
|
1
|
+
import { type IRectangleColshape } from "../../common";
|
|
2
|
+
import { type IRageColshapeOptions, RageColshape } from "./RageColshape";
|
|
3
3
|
export interface IRageRectangleColshapeOptions extends IRageColshapeOptions {
|
|
4
4
|
}
|
|
5
5
|
export declare class RageRectangleColshape extends RageColshape implements IRectangleColshape {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ISphereColshape } from "../../common";
|
|
2
|
-
import { IRageColshapeOptions, RageColshape } from "./RageColshape";
|
|
1
|
+
import { type ISphereColshape } from "../../common";
|
|
2
|
+
import { type IRageColshapeOptions, RageColshape } from "./RageColshape";
|
|
3
3
|
export interface IRageSphereColshapeOptions extends IRageColshapeOptions {
|
|
4
4
|
}
|
|
5
5
|
export declare class RageSphereColshape extends RageColshape implements ISphereColshape {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IEntitiesManager } from "../../common/entity/IEntitiesManager";
|
|
2
|
-
import { RageEntity } from "./RageEntity";
|
|
3
|
-
import { IRageWorldObjectsManagerOptions, RageWorldObjectsManager } from "../worldObject/RageWorldObjectsManager";
|
|
1
|
+
import { type IEntitiesManager } from "../../common/entity/IEntitiesManager";
|
|
2
|
+
import { type RageEntity } from "./RageEntity";
|
|
3
|
+
import { type IRageWorldObjectsManagerOptions, RageWorldObjectsManager } from "../worldObject/RageWorldObjectsManager";
|
|
4
4
|
export interface IRageEntitiesManagerOptions extends IRageWorldObjectsManagerOptions {
|
|
5
5
|
}
|
|
6
6
|
export declare abstract class RageEntitiesManager<T extends RageEntity<EntityMp>> extends RageWorldObjectsManager<T> implements IEntitiesManager<T> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IEntity } from "../../common/entity/IEntity";
|
|
2
|
-
import { IRageWorldObjectOptions, RageWorldObject } from "../worldObject/RageWorldObject";
|
|
1
|
+
import { type IEntity } from "../../common/entity/IEntity";
|
|
2
|
+
import { type IRageWorldObjectOptions, RageWorldObject } from "../worldObject/RageWorldObject";
|
|
3
3
|
import { Vector3D } from "../../../../shared/common/utils";
|
|
4
4
|
export interface IRageEntityOptions<T extends EntityMp> extends IRageWorldObjectOptions<T> {
|
|
5
5
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IMarker } from "../../common";
|
|
2
|
-
import { IRageWorldObjectOptions, RageWorldObject } from "../worldObject/RageWorldObject";
|
|
3
|
-
import { IRGBA, IVector3D } from "../../../../shared/common/utils";
|
|
4
|
-
import { IMarkerType } from "../../../../shared";
|
|
1
|
+
import { type IMarker } from "../../common";
|
|
2
|
+
import { type IRageWorldObjectOptions, RageWorldObject } from "../worldObject/RageWorldObject";
|
|
3
|
+
import { type IRGBA, type IVector3D } from "../../../../shared/common/utils";
|
|
4
|
+
import { type IMarkerType } from "../../../../shared";
|
|
5
5
|
export interface IRageMarkerOptions extends IRageWorldObjectOptions<MarkerMp> {
|
|
6
6
|
}
|
|
7
7
|
export declare class RageMarker extends RageWorldObject<MarkerMp> implements IMarker {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IMarkerCreateOptions, IMarkersManager } from "../../common";
|
|
1
|
+
import { type IMarkerCreateOptions, type IMarkersManager } from "../../common";
|
|
2
2
|
import { RageWorldObjectsManager } from "../worldObject/RageWorldObjectsManager";
|
|
3
3
|
import { RageMarker } from "./RageMarker";
|
|
4
4
|
export interface IRageMarkerCreateOptions extends IMarkerCreateOptions {
|