This commit is contained in:
Putoo
2026-07-10 16:39:52 +08:00
parent cfe6612a7a
commit 9de24634e3
31 changed files with 760 additions and 39 deletions

View File

@@ -18,6 +18,8 @@ namespace Application.Domain
HandleCreateMonster,//处理创建的怪物
HandleFightData,//处理战斗日志数据
HandleExchangeData,//处理兑换数据
HandleTaskLog,//处理任务日志
HandelTaskUser,//处理角色任务
}
}

View File

@@ -85,5 +85,25 @@
var exchangeService = App.GetService<IExchangeService>();
await exchangeService.HandleExchangeLogData();
}
/// <summary>
/// 处理任务日志
/// </summary>
/// <param name="context"></param>
[EventSubscribe(BusEventsEnum.BusEventsName.HandleTaskLog, NumRetries = 0,RetryTimeout = 999999999)]
public async Task HandleTaskLog(EventHandlerExecutingContext context)
{
var taskService = App.GetService<IGameTaskService>();
await taskService.HandleUserTaskLog();
}
/// <summary>
/// 处理角色任务
/// </summary>
/// <param name="context"></param>
[EventSubscribe(BusEventsEnum.BusEventsName.HandelTaskUser, NumRetries = 0,RetryTimeout = 999999999)]
public async Task HandelTaskUser(EventHandlerExecutingContext context)
{
var taskService = App.GetService<IGameTaskService>();
await taskService.HandleUserTask();
}
}
}