mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-27 01:06:09 +00:00
add KnownFileRoot
template literal
This commit is contained in:
parent
ec7cabc8c8
commit
d9ea676a92
@ -2,9 +2,11 @@ import { GameObjects } from "phaser";
|
||||
import BattleScene from "../battle-scene";
|
||||
import MysteryEncounter from "../data/mystery-encounters/mystery-encounter";
|
||||
|
||||
type KnownFileRoot = "trainer" | "pokemon" | "arenas" | "battle_anims" | "cg" | "character" | "effect" | "egg" | "events" | "inputs" | "items" | "mystery-encounters" | "pokeball" | "pokemon" | "statuses" | "trainer" | "ui";
|
||||
|
||||
export class MysteryEncounterSpriteConfig {
|
||||
spriteKey: string; // e.g. "ace_trainer_f"
|
||||
fileRoot: string; // "trainer" for trainer sprites, "pokemon" for pokemon, etc. Refer to /public/images directory for the folder name
|
||||
fileRoot: KnownFileRoot & string; // Refer to /public/images directory for the folder name
|
||||
hasShadow?: boolean = false; // Spawns shadow underneath sprite
|
||||
disableAnimation?: boolean = false; // Animates frames or not
|
||||
repeat?: boolean = false; // Cycles animation
|
||||
|
Loading…
Reference in New Issue
Block a user