All files / Hungry-Hippo-Game/src Foods.ts

0% Statements 0/65
0% Branches 0/1
0% Functions 0/1
0% Lines 0/65

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66                                                                                                                                   
import aacData from './data/food.json';

/**
 * Defines the structure for a single food item in the AAC system.
 */
export interface AacFood {
    id: string;
    name: string;
    imagePath: string;
    audioPath: string; 
}

/**
 * Defines the structure for a food category in the AAC system.
 */
export interface AacCategory {
    categoryName: string;
    categoryIcon: string;
    foods: AacFood[];
    categoryAudioPath?: string;
}

/**
 * Defines the structure for the entire AAC data, which includes multiple categories.
 */
export interface AacData {
    categories: AacCategory[];
}

/**
 * Exports the AAC data, which includes categories and their respective foods. This data is imported from a JSON file.
 */
export const AAC_DATA: AacData = aacData as AacData;

export interface AacVerb {
    id: string;
    name: string;
    imagePath: string;
    audioPath: string;
    color?: string;
}

export const AAC_VERBS: AacVerb[] = [
    {
        id: "freeze",
        name: "Freeze",
        imagePath: "/assets/verbs/freeze.png",
        audioPath: "/audio/verbs/freeze.mp3",
        color: "#52869eff"
    },
    {
        id: "grow",
        name: "Grow",
        imagePath: "/assets/verbs/grow.png",
        audioPath: "/audio/verbs/grow.mp3",
        color: "#38a169"
    },
    {
        id: "burn",
        name: "Burn",
        imagePath: "/assets/verbs/burn.png",
        audioPath: "/audio/verbs/burn.mp3",
        color: "#f35236ff"
    }
];