feat: new layout

This commit is contained in:
TrèsAbhi committed 2024-02-01 11:52:48 -06:00
1 parent 281549add3
commit 9f2ced6bfd
5 files changed
+223 -225

No files matched your search

+1 -1
View File
@@ -5,7 +5,7 @@ export class EventManager<Type> {
this.callbacks.add(callback);
}
off(callback: (data: Type) => void) {
this.callbacks.delete(callback);
return this.callbacks.delete(callback);
}
emit(data: Type) {
+6
View File
@@ -91,6 +91,12 @@ export type ShellDefinition = {
explosionRadius?: number;
};
export const GUN_TYPE_NAMES: Record<GunDefinition['type'], string> = {
regular: 'Regular',
auto_loader: 'Auto loader',
auto_reloader: 'Auto reloader',
};
export const tankDefinitions = fetch(asset('definitions/tanks.json'), {
cache: 'no-cache',
}).then(async (response) => response.json() as Promise<TankDefinitions>);