1212121
This commit is contained in:
@@ -10,6 +10,7 @@ namespace Application.Domain
|
||||
{
|
||||
public enum BusEventsName
|
||||
{
|
||||
HandleOnHook,//处理挂机
|
||||
PutFightAward,//战斗奖励事件
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,5 +13,12 @@
|
||||
var fightService = App.GetService<IGameFightService>();
|
||||
await fightService.HandleFight(data);
|
||||
}
|
||||
|
||||
[EventSubscribe(BusEventsEnum.BusEventsName.HandleOnHook, NumRetries = 0,RetryTimeout = 999999999)]
|
||||
public async Task HandleOnHook(EventHandlerExecutingContext context)
|
||||
{
|
||||
var hookService = App.GetService<IOnHookService>();
|
||||
await hookService.HandleHook();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user