Removed attachment due to failure in attachment manager. Changed Database to Live Database -> will be changed after Master merge Add to enteties.ts RageObject and RageObjectPool for Attachment Manager
21 lines
787 B
TypeScript
21 lines
787 B
TypeScript
import { IGame, IUi, IEvents, IPlayerPool, IVehiclePool, IEntityAttachmentPool, IObjectPool } from "../../game";
|
|
import RageEvents from "./events";
|
|
import RageUi from "./ui";
|
|
import { RagePlayerPool, RageVehiclePool, RageEntityAttachmentPool, RageObjectPool } from "./entities";
|
|
|
|
export default class RageGame implements IGame {
|
|
players: IPlayerPool = new RagePlayerPool();
|
|
vehicles: IVehiclePool = new RageVehiclePool();
|
|
attachments: IEntityAttachmentPool = new RageEntityAttachmentPool();
|
|
objects: IObjectPool = new RageObjectPool();
|
|
events: IEvents = new RageEvents;
|
|
ui: IUi = new RageUi;
|
|
|
|
wait(ms: number): void {
|
|
mp.game.wait(ms);
|
|
}
|
|
|
|
disableDefaultEngineBehaviour(): void {
|
|
mp.game.vehicle.defaultEngineBehaviour = false;
|
|
}
|
|
} |