rock-mod
Version:
Rock-Mod is a powerful framework designed for creating and managing mods for Grand Theft Auto (GTA) games.
38 lines (37 loc) • 1.71 kB
TypeScript
import { type IWorldObjectCreateOptions, type IWorldObjectsManager } from "../worldObject";
import { type IColshape } from "./IColshape";
import { type IVector2D } from "../../../../shared/common/utils";
import { type ICircleColshape } from "./ICircleColshape";
import { type ICuboidColshape } from "./ICuboidColshape";
import { type ICylinderColshape } from "./ICylinderColshape";
import { type IRectangleColshape } from "./IRectangleColshape";
import { type ISphereColshape } from "./ISphereColshape";
import { type IPlayer } from "../player";
export interface ICircleColshapeCreateOptions extends Omit<IWorldObjectCreateOptions, "position"> {
position: IVector2D;
range: number;
}
export interface ICuboidColshapeCreateOptions extends IWorldObjectCreateOptions {
width: number;
depth: number;
height: number;
}
export interface ICylinderColshapeCreateOptions extends IWorldObjectCreateOptions {
range: number;
height: number;
}
export interface IRectangleColshapeCreateOptions extends IWorldObjectCreateOptions {
width: number;
height: number;
}
export interface ISphereColshapeCreateOptions extends IWorldObjectCreateOptions {
range: number;
}
export interface IColshapesManager extends IWorldObjectsManager<IColshape> {
createCircle(options: ICircleColshapeCreateOptions): ICircleColshape;
createCuboid(options: ICuboidColshapeCreateOptions): ICuboidColshape;
createCylinder(options: ICylinderColshapeCreateOptions): ICylinderColshape;
createRectangle(options: IRectangleColshapeCreateOptions): IRectangleColshape;
createSphere(options: ISphereColshapeCreateOptions): ISphereColshape;
getParticipants(colshape: IColshape): Set<IPlayer>;
}