mirror of
https://github.com/sebastian-heinz/Arrowgene.DragonsDogmaOnline
synced 2026-08-03 11:12:41 -04:00
* Adds packet structures, handlers, and server support for Player Mail, Blacklists, Group Chats and Message Sets. Implements rudimentary GM features via chat command. Adds support for IP Bans and muted players. Simplifies how login stamps are handled. Cleans up and modernizes some old packet handlers. * Rebase. Fix CommandRoute and AccountRoute. Cleanup and response to PR comments. Rearrange some of the schedule_next stuff in the DB creation schema for clarity.
28 lines
905 B
C#
28 lines
905 B
C#
using Arrowgene.Ddon.Server;
|
|
using Arrowgene.Ddon.Shared.Entity.PacketStructure;
|
|
using Arrowgene.Logging;
|
|
using System.Linq;
|
|
|
|
namespace Arrowgene.Ddon.GameServer.Handler
|
|
{
|
|
public class MailMailGetListDataHandler : GameRequestPacketHandler<C2SMailMailGetListDataReq, S2CMailMailGetListDataRes>
|
|
{
|
|
private static readonly ServerLogger Logger = LogProvider.Logger<ServerLogger>(typeof(MailMailGetListDataHandler));
|
|
|
|
public MailMailGetListDataHandler(DdonGameServer server) : base(server)
|
|
{
|
|
}
|
|
|
|
public override S2CMailMailGetListDataRes Handle(GameClient client, C2SMailMailGetListDataReq request)
|
|
{
|
|
S2CMailMailGetListDataRes res = new()
|
|
{
|
|
MailInfo = [.. Server.Database.SelectMailMessages(client.Character.CharacterId).Select(x => x.ToCDataMailInfo(0))]
|
|
};
|
|
|
|
return res;
|
|
|
|
}
|
|
}
|
|
}
|
|
|