12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- 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 JSGMonsterCardData : JSGCardDataBase
- {
- public override void RefreshCardInfo(XmdsVirtual unit)
- {
- RefreshBossCardInfo cardInfo = new RefreshBossCardInfo(unit.mUnit.ID);
- 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;
- }
-
- }
- unit.mUnit.queueEvent(cardInfo);
- }
- public override void RefreshCardInfo(XmdsVirtual unit, byte[] cardData)
- {
- RefreshBossCardInfo cardInfo = new RefreshBossCardInfo(unit.mUnit.ID);
- for (int i = 0; i < (int)CardType.Max; i++)
- {
- cardInfo.cardData[i] = cardData[i];
- }
- unit.SendMsgToPlayer(cardInfo);
- }
- public override void SendTriggerInfo(XmdsVirtual unit, CardTriggerResult result, int skillId, byte[] cardData)
- {
- BossTriggerCardSkill launchInfo = new BossTriggerCardSkill(unit.mUnit.ID);
- launchInfo.cardSkill = skillId;
- launchInfo.type = result.type;
- launchInfo.layer = result.sameNums;
- launchInfo.cardData = cardData;
- unit.mUnit.queueEvent(launchInfo);
- }
- }
- }
|