vehicle sync OHNE FEHLER

This commit is contained in:
hydrant
2020-05-09 01:41:39 +02:00
parent 93540e721b
commit 2e91fe76ee
12 changed files with 163 additions and 429 deletions

View File

@@ -56,6 +56,8 @@ interface IVehicle extends IEntity {
setEngineStatus(status: boolean, instantly: boolean, otherwise: boolean);
setUndriveable(status: boolean);
setDoorsLocked(state: boolean);
setDoorShut(door: number, instantly: boolean);
setDoorOpen(door: number, loose: boolean, instantly: boolean);
}
interface IEntityPool<TEntity> {
@@ -88,6 +90,14 @@ interface AccountData {
interface VehicleData {
EngineState: boolean;
Locked: boolean;
Doors: { [door: number]: number };
}
enum DoorState {
DoorClosed,
DoorOpen,
DoorBroken,
}
enum EventName {
@@ -133,5 +143,6 @@ export {
VehicleSeat,
EntityType,
AccountData,
VehicleData
VehicleData,
DoorState
}