You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

43 lines
1.1 KiB

using ProtoCSStruct;
using Sog;
namespace Game;
public class ActivityHandler : BasePacketHandler
{
public override int GetServiceType()
{
return GameServiceType.ActivityHandler;
}
public override void Dispose()
{
}
public override void HandlerClientPacket(PlayerSession playerSession, StructPacket packet)
{
PlayerOnGame player = playerSession.Player;
if (player == null)
{
TraceLog.Error($"ActivityHandler.HandlerClientPacket player is null sessionid {playerSession.SessionID}");
return;
}
switch (packet.MsgID)
{
case (int)CSGameMsgID.GetActivityInfoReq:
// ActivitySvc.GetInfo(player);
break;
case (int)CSGameMsgID.QuestionnaireRewardReq:
QuestionnaireSvc.SendQuestionnaireReward(player, packet);
break;
case (int)CSGameMsgID.HandbookGetAwardReq:
HandBookAct.Award(player, packet);
break;
}
}
public override void HandlerServerPacket(uint serverID, StructPacket packet)
{
}
}