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) { } }