Continue script abstraction

This commit is contained in:
hydrant
2020-03-01 13:15:50 +01:00
parent 37f499a446
commit d7a76caf2a
14 changed files with 531 additions and 8 deletions

View File

@@ -0,0 +1,20 @@
import { IGame, IUi, IEvents, IPlayerPool, IVehiclePool } from "../../game";
import RageEvents from "./events";
import RageUi from "./ui";
import { RagePlayerPool, RageVehiclePool } from "./entities";
export default class RageGame implements IGame {
players: IPlayerPool = new RagePlayerPool();
vehicles: IVehiclePool = new RageVehiclePool();
events: IEvents = new RageEvents;
ui: IUi = new RageUi;
wait(ms: number): void {
mp.game.wait(ms);
}
disableDefaultEngineBehaviour(): void {
mp.game.vehicle.defaultEngineBehaviour = false;
}
}