mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-12-05 15:52:55 +01:00
status buttons
This commit is contained in:
1 parent
b297babde5
commit
477b9a9630
3 files changed
+54
-97
No files matched your search
@@ -17,9 +17,27 @@ export interface TankState {
|
||||
speed: number;
|
||||
terrainHardness: TerrainHardness;
|
||||
|
||||
isShooting: boolean;
|
||||
isGunDamaged: boolean;
|
||||
isTurretTraversing: boolean;
|
||||
isHullTraversing: boolean;
|
||||
isCaughtOnFire: boolean;
|
||||
status: Record<VehicleStatusKey, boolean>;
|
||||
}
|
||||
|
||||
export const vehicleStatusKeys = [
|
||||
"commander_dead",
|
||||
"gunner_dead",
|
||||
"driver_dead",
|
||||
"loader_dead",
|
||||
|
||||
"fuel_tank_damaged",
|
||||
"engine_damaged",
|
||||
"chassis_damaged",
|
||||
"viewport_damaged",
|
||||
"ammo_bay_damaged",
|
||||
"gun_damaged",
|
||||
"turret_damaged",
|
||||
|
||||
"caught_on_fire",
|
||||
"shooting",
|
||||
"turret_traversing",
|
||||
"hull_traversing",
|
||||
] as const;
|
||||
|
||||
export type VehicleStatusKey = (typeof vehicleStatusKeys)[number];
|
||||
Reference in new issue
Block a user