mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +02:00
feat: start of mixer
This commit is contained in:
1 parent
5747d7549f
commit
f3762e356f
7 files changed
+278
No files matched your search
@@ -0,0 +1,24 @@
|
||||
import type {
|
||||
GunDefinition,
|
||||
TankDefinition,
|
||||
TurretDefinition,
|
||||
} from '@blitzkit/core';
|
||||
import { create } from 'zustand';
|
||||
import { createContextualStore } from '../core/zustand/createContextualStore';
|
||||
|
||||
export interface MixerEphemeral {
|
||||
hull: TankDefinition;
|
||||
turret: {
|
||||
tank: TankDefinition;
|
||||
turret: TurretDefinition;
|
||||
};
|
||||
gun: {
|
||||
tank: TankDefinition;
|
||||
turret: TurretDefinition;
|
||||
gun: GunDefinition;
|
||||
};
|
||||
}
|
||||
|
||||
export const MixerEphemeral = createContextualStore((data: MixerEphemeral) =>
|
||||
create<MixerEphemeral>()(() => data),
|
||||
);
|
||||
Reference in new issue
Block a user