16 lines
No EOL
543 B
C#
16 lines
No EOL
543 B
C#
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using PhoenixLib.Events;
|
|
using WingsEmu.Game.GameEvent.InstantBattle;
|
|
using WingsEmu.Game.Networking;
|
|
|
|
namespace WingsEmu.Plugins.BasicImplementations.CharacterLifetimeStats;
|
|
|
|
public class TotalInstantBattleWonEventHandler : IAsyncEventProcessor<InstantBattleWonEvent>
|
|
{
|
|
public async Task HandleAsync(InstantBattleWonEvent e, CancellationToken cancellation)
|
|
{
|
|
IClientSession session = e.Sender;
|
|
session.PlayerEntity.LifetimeStats.TotalInstantBattleWon++;
|
|
}
|
|
} |