feat: upgrade performance

This commit is contained in:
TrèsAbhi committed 2025-09-01 18:16:41 -05:00
1 parent 4efdaaf7c9
commit b6c3fdc4e9
6 files changed
+21 -31

No files matched your search

@@ -0,0 +1,12 @@
import type { Samples } from '@blitzkit/core';
import { Varuna } from 'varuna';
export interface Performance {
playerCountPeriod: PlayerCountPeriod;
}
export type PlayerCountPeriod = keyof Samples;
export const Performance = new Varuna<Performance>({
playerCountPeriod: 'd_30',
});
@@ -1,15 +0,0 @@
import type { Samples } from '@blitzkit/core';
import { create } from 'zustand';
import { createContextualStore } from '../core/zustand/createContextualStore';
export interface TankPerformanceEphemeral {
playerCountPeriod: PlayerCountPeriod;
}
export type PlayerCountPeriod = keyof Samples;
export const TankPerformanceEphemeral = createContextualStore(() =>
create<TankPerformanceEphemeral>()(() => ({
playerCountPeriod: 'd_30',
})),
);