This commit is contained in:
@@ -1,16 +1,19 @@
|
||||
import { AvatarHakushiType } from '@/types';
|
||||
import { AvatarHakushiType, EnemyHakushiType } from '@/types';
|
||||
import { create } from 'zustand'
|
||||
|
||||
|
||||
interface AvatarDataState {
|
||||
listAvatar: AvatarHakushiType[];
|
||||
listEnemy: EnemyHakushiType[];
|
||||
setListAvatar: (list: AvatarHakushiType[]) => void;
|
||||
setListEnemy: (list: EnemyHakushiType[]) => void;
|
||||
}
|
||||
|
||||
const useAvatarDataStore = create<AvatarDataState>((set) => ({
|
||||
listAvatar: [],
|
||||
listEnemy: [],
|
||||
setListAvatar: (list: AvatarHakushiType[]) => set({ listAvatar: list }),
|
||||
|
||||
setListEnemy: (list: EnemyHakushiType[]) => set({ listEnemy: list }),
|
||||
}));
|
||||
|
||||
export default useAvatarDataStore;
|
||||
@@ -1,4 +1,4 @@
|
||||
import { DamageType, AvatarAnalysisJson, UseSkillType, BattleBeginType, BattleEndType, DamageDetailType, EntityDefeatedType, SetBattleLineupType, TurnBeginType, TurnEndType, UpdateCycleType, UpdateWaveType, VersionType, StatType, StatChangeType, UpdateTeamFormationType } from '@/types';
|
||||
import { DamageType, AvatarAnalysisJson, UseSkillType, BattleBeginType, BattleEndType, DamageDetailType, EntityDefeatedType, SetBattleLineupType, TurnBeginType, TurnEndType, UpdateCycleType, UpdateWaveType, VersionType, StatChangeType, UpdateTeamFormationType } from '@/types';
|
||||
import { InitializeEnemyType } from '@/types/enemy';
|
||||
import { AvatarBattleInfo, AvatarInfo, BattleDataStateJson, EnemyInfo, SkillBattleInfo, TurnBattleInfo } from '@/types/mics';
|
||||
import { create } from 'zustand'
|
||||
|
||||
Reference in New Issue
Block a user