init
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
import { AvatarInfo } from "./lineup";
|
||||
|
||||
export interface AttackResultType {
|
||||
attacker: AvatarInfo;
|
||||
damage: number;
|
||||
}
|
||||
@@ -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>;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
export * from "./attack"
|
||||
export * from "./avatar"
|
||||
export * from "./battle"
|
||||
export * from "./lineup"
|
||||
export * from "./skill"
|
||||
export * from "./turn"
|
||||
@@ -0,0 +1,8 @@
|
||||
export interface AvatarInfo {
|
||||
id: number;
|
||||
name: string;
|
||||
}
|
||||
|
||||
export interface LineUpType {
|
||||
avatars: AvatarInfo[];
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
import { AvatarInfo } from "./lineup";
|
||||
|
||||
export interface SkillInfo {
|
||||
name: string;
|
||||
type: string;
|
||||
}
|
||||
|
||||
export interface AvatarSkillType {
|
||||
avatar: AvatarInfo;
|
||||
skill: SkillInfo;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user