Files
EpinelPS/EpinelPS/LobbyServer/Event/GetEventBoxGacha.cs
qmengz eea01945f9 Add event pass functionality and logging improvements (#59)
- 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.
2025-10-20 10:34:09 -04:00

22 lines
538 B
C#

using EpinelPS.Utils;
namespace EpinelPS.LobbyServer.Event
{
[PacketPath("/event/boxgacha/get")]
public class GetEventBoxGacha : LobbyMsgHandler
{
protected override async Task HandleAsync()
{
// from client: {"EventId":10051}
ReqGetEventBoxGacha req = await ReadData<ReqGetEventBoxGacha>();
User user = GetUser();
ResGetEventBoxGacha response = new()
{
};
await WriteDataAsync(response);
}
}
}