mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 19:19:52 +02:00
feat: upgrade performance
This commit is contained in:
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',
|
||||
})),
|
||||
);
|
||||
Reference in new issue
Block a user