123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- using CommonAI.Data;
- using CommonAI.Zone;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using XmdsCommonServer.Plugin;
- using XmdsCommonServer.Plugin.Base;
- namespace XmdsCommonSkill.Plugin.CardSkill
- {
- //玩家卡牌技能数据
- public class JSGPlayerCardData : JSGCardDataBase
- {
- public override void RefreshCardInfo(XmdsVirtual player)
- {
- RefreshCardInfo cardInfo = new RefreshCardInfo();
- for(int i = 0; i < (int)CardType.Max; i++)
- {
- if(i < this.mCards)
- {
- cardInfo.cardData[i] = (byte)this.mCardData[i];
- }
- else
- {
- cardInfo.cardData[i] = (byte)CardType.Max;
- }
- }
- player.SendMsgToPlayer(cardInfo);
- }
- public override void RefreshCardInfo(XmdsVirtual player, byte[] cardData)
- {
- RefreshCardInfo cardInfo = new RefreshCardInfo();
- for (int i = 0; i < (int)CardType.Max; i++)
- {
- cardInfo.cardData[i] = cardData[i];
- }
- player.SendMsgToPlayer(cardInfo);
- }
- public override void SendTriggerInfo(XmdsVirtual player, CardTriggerResult result, int skillId, byte[] cardData)
- {
- PlayerLaunchCardSkill launchInfo = new PlayerLaunchCardSkill();
- launchInfo.cardSkill = skillId;
- launchInfo.type = result.type;
- launchInfo.layer = result.sameNums;
- launchInfo.cardData = cardData;
- player.SendMsgToPlayer(launchInfo);
- }
- }
- }
|