This commit is contained in:
2025-04-23 20:24:12 +07:00
parent f933b5aad5
commit ef52d632bd
63 changed files with 3911 additions and 138 deletions
+6
View File
@@ -0,0 +1,6 @@
import { AvatarInfo } from "./lineup";
export interface AttackResultType {
attacker: AvatarInfo;
damage: number;
}
+23
View File
@@ -0,0 +1,23 @@
export interface AvatarHakushiType {
release: number;
icon: string;
rank: string;
baseType: string;
damageType: string;
en: string;
desc: string;
kr: string;
cn: string;
jp: string;
}
export interface AvatarType {
id: string;
release: number;
icon: string;
rank: string;
baseType: string;
damageType: string;
desc: string;
lang: Map<string, string>;
}
+14
View File
@@ -0,0 +1,14 @@
import { AvatarInfo } from "./lineup";
import { TurnInfo } from "./turn";
export interface BattleEndType {
avatars: AvatarInfo[];
turn_history: TurnInfo[];
turn_count: number;
total_damage: number;
action_value: number;
}
export interface KillType {
attacker: AvatarInfo;
}
+6
View File
@@ -0,0 +1,6 @@
export * from "./attack"
export * from "./avatar"
export * from "./battle"
export * from "./lineup"
export * from "./skill"
export * from "./turn"
+8
View File
@@ -0,0 +1,8 @@
export interface AvatarInfo {
id: number;
name: string;
}
export interface LineUpType {
avatars: AvatarInfo[];
}
+21
View File
@@ -0,0 +1,21 @@
export interface AvatarBattleInfo {
avatarId: number;
isDie: boolean;
}
export interface TurnBattleInfo {
avatarId: number;
damageDetail: number[];
totalDamage: number;
actionValue: number;
skillType: string;
skillName: string;
}
export interface BattleDataStateJson {
lineup: AvatarBattleInfo[];
turnHistory: TurnBattleInfo[]
totalAV: number;
totalDamage: number;
damagePerAV: number;
}
+11
View File
@@ -0,0 +1,11 @@
import { AvatarInfo } from "./lineup";
export interface SkillInfo {
name: string;
type: string;
}
export interface AvatarSkillType {
avatar: AvatarInfo;
skill: SkillInfo;
}
+19
View File
@@ -0,0 +1,19 @@
import { AvatarInfo } from "./lineup";
export interface TurnInfo {
avatars_turn_damage: number[];
total_damage: number;
action_value: number;
}
export interface TurnBeginType {
action_value: number;
}
export interface TurnEndType {
avatars: AvatarInfo[];
avatars_damage: number[];
total_damage: number;
action_value: number;
}