mirror of
https://github.com/EpinelPS/EpinelPS.git
synced 2025-12-15 16:34:40 +01:00
- Implement FastClearEventStage handler for fast clearing event stages. - Enhance GetStoryDungeon handler to include team data and cleared stages. - Modify GetInventoryData to streamline item processing. - Introduce BuyEventPassRank and BuyPassRank handlers for purchasing event pass ranks. - Add CompleteEventPassMission and CompletePassMission handlers for mission completion. - Create ObtainEventPassReward and ObtainOneEventPassReward handlers for reward retrieval. - Implement ObtainPassReward and ObtainOnePassReward handlers for general pass rewards. - Add PassHelper class to manage pass-related logic, including obtaining rewards and completing missions. - Update User and EventData models to support new pass functionality. - Integrate log4net for improved logging capabilities throughout the application. - Update game configuration for static data and resource URLs. - Create log4net configuration file for logging setup.
22 lines
575 B
C#
22 lines
575 B
C#
using EpinelPS.Utils;
|
|
|
|
namespace EpinelPS.LobbyServer.Event
|
|
{
|
|
[PacketPath("/event/boxgacha/execute")]
|
|
public class ExecuteEventBoxGacha : LobbyMsgHandler
|
|
{
|
|
protected override async Task HandleAsync()
|
|
{
|
|
// from client: {"EventId":10051,"CurrentCount":1}
|
|
ReqExecuteEventBoxGacha req = await ReadData<ReqExecuteEventBoxGacha>();
|
|
User user = GetUser();
|
|
|
|
ResExecuteEventBoxGacha response = new()
|
|
{
|
|
|
|
};
|
|
|
|
await WriteDataAsync(response);
|
|
}
|
|
}
|
|
} |