public static void ShowOppoentViewInfo(GC_WULIN_OPPONENTVIEW msg) { if (null != ActivityController.Instance()) { ActivityController.Instance().ChangeToWuLinShowOppoentView(); } OppoViewInfo.Clean(); OppoViewInfo.guid = msg.Guid; OppoViewInfo.name = msg.Name; OppoViewInfo.profession = (CharacterDefine.PROFESSION)msg.Profession; OppoViewInfo.level = msg.Level; OppoViewInfo.combat = msg.Combatnum; OppoViewInfo.pos = msg.Pos; OppoViewInfo.hp = msg.Hp; OppoViewInfo.mp = msg.Mp; OppoViewInfo.atk = msg.Attack; OppoViewInfo.def = msg.Defense; OppoViewInfo.cri = msg.Critical; OppoViewInfo.spd = msg.Speed; OppoViewInfo.dge = msg.Dodge; if (null != delegateShowOpponentViewInfo) { delegateShowOpponentViewInfo(); } }
public uint Execute(PacketDistributed ipacket) { GC_WULIN_OPPONENTVIEW packet = (GC_WULIN_OPPONENTVIEW )ipacket; if (null == packet) { return((uint)PACKET_EXE.PACKET_EXE_ERROR); } //enter your logic WuLinData.ShowOppoentViewInfo(packet); return((uint)PACKET_EXE.PACKET_EXE_CONTINUE); }