feat(游戏统计): 添加击杀统计字段到游戏分数统计
在GameScoreStats接口和SingletonModuleComp类中添加近战怪、远程怪、精英怪和Boss的击杀数量统计字段,用于追踪玩家对不同类型敌人的击杀情况
This commit is contained in:
@@ -91,6 +91,12 @@ export class SingletonModuleComp extends ecs.Comp {
|
|||||||
// 资源统计
|
// 资源统计
|
||||||
exp_total: 0, // 经验总数
|
exp_total: 0, // 经验总数
|
||||||
gold_total: 0, // 金币总数
|
gold_total: 0, // 金币总数
|
||||||
|
|
||||||
|
// 击杀统计
|
||||||
|
melee_kill_count: 0, // 近战怪击杀数量
|
||||||
|
remote_kill_count: 0, // 远程怪击杀数量
|
||||||
|
elite_kill_count: 0, // 精英怪击杀数量
|
||||||
|
boss_kill_count: 0, // Boss击杀数
|
||||||
} as GameScoreStats,
|
} as GameScoreStats,
|
||||||
hero:{
|
hero:{
|
||||||
name:'',
|
name:'',
|
||||||
|
|||||||
@@ -239,6 +239,12 @@ export interface GameScoreStats {
|
|||||||
// 资源统计
|
// 资源统计
|
||||||
exp_total: number; // 经验总数
|
exp_total: number; // 经验总数
|
||||||
gold_total: number; // 金币总数
|
gold_total: number; // 金币总数
|
||||||
|
|
||||||
|
// 击杀统计
|
||||||
|
melee_kill_count: number; // 近战怪击杀数量
|
||||||
|
remote_kill_count: number; // 远程怪击杀数量
|
||||||
|
elite_kill_count: number; // 精英怪击杀数量
|
||||||
|
boss_kill_count: number; // Boss击杀数
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user