feat(游戏统计): 添加击杀统计字段到游戏分数统计

在GameScoreStats接口和SingletonModuleComp类中添加近战怪、远程怪、精英怪和Boss的击杀数量统计字段,用于追踪玩家对不同类型敌人的击杀情况
This commit is contained in:
walkpan
2026-01-03 23:23:47 +08:00
parent 505724de83
commit 3ed0a2ebac
2 changed files with 12 additions and 0 deletions

View File

@@ -91,6 +91,12 @@ export class SingletonModuleComp extends ecs.Comp {
// 资源统计
exp_total: 0, // 经验总数
gold_total: 0, // 金币总数
// 击杀统计
melee_kill_count: 0, // 近战怪击杀数量
remote_kill_count: 0, // 远程怪击杀数量
elite_kill_count: 0, // 精英怪击杀数量
boss_kill_count: 0, // Boss击杀数
} as GameScoreStats,
hero:{
name:'',

View File

@@ -239,6 +239,12 @@ export interface GameScoreStats {
// 资源统计
exp_total: number; // 经验总数
gold_total: number; // 金币总数
// 击杀统计
melee_kill_count: number; // 近战怪击杀数量
remote_kill_count: number; // 远程怪击杀数量
elite_kill_count: number; // 精英怪击杀数量
boss_kill_count: number; // Boss击杀数
}