feat: integrate Firebase for authentication and data management, add GameItem type, and enhance UI with tooltips
This commit is contained in:
31
src/types/GameItem.ts
Normal file
31
src/types/GameItem.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
export interface GameItem {
|
||||
id: number;
|
||||
name: string;
|
||||
type: ItemType;
|
||||
rarity: ItemRarity;
|
||||
description: string;
|
||||
price: number;
|
||||
effect: string;
|
||||
equipTarget: ItemEquipTarget;
|
||||
}
|
||||
|
||||
export enum ItemType {
|
||||
Material = 'Material',
|
||||
Consumable = 'Consumable',
|
||||
Equipment = 'Equipment'
|
||||
}
|
||||
|
||||
export enum ItemRarity {
|
||||
Common = 'Common', // White
|
||||
Uncommon = 'Uncommon', // Green
|
||||
Rare = 'Rare', // Blue
|
||||
Legendary = 'Legendary' // Purple
|
||||
}
|
||||
|
||||
export enum ItemEquipTarget {
|
||||
None = 'None',
|
||||
Head = 'Head',
|
||||
Body = 'Body',
|
||||
Legs = 'Legs',
|
||||
Weapon = 'Weapon'
|
||||
}
|
Reference in New Issue
Block a user