Exemple #1
0
    CommandCallbackType GetRankingDetailDataHandle(byte[] dataBuffer, int socketID)
    {
        SMsgInteract_GetPlayerRanking_SC sMsgInteract_GetPlayerRanking_SC = SMsgInteract_GetPlayerRanking_SC.ParsePackage(dataBuffer);

        PlayerRankingDataManager.Instance.RankingDetail = sMsgInteract_GetPlayerRanking_SC;
        UIEventManager.Instance.TriggerUIEvent(UIEventType.ReceiveRankingDetailRes, sMsgInteract_GetPlayerRanking_SC);
        return(CommandCallbackType.Continue);
    }
Exemple #2
0
 public void UpdateAttribute(SMsgInteract_GetPlayerRanking_SC data)
 {
     RoleAttributePanel.ShowAttribute(data);
     ExpLabel.SetText(string.Format("{0}/{1}", data.dwCurExp, data.dwMaxExp));
     ExpSliderBar.sliderValue = (float)data.dwCurExp / (float)data.dwMaxExp;
     VocationSprite.ChangeSprite(data.byKind);
     AtkLabel.SetText(data.dwActorFinght.ToString());
     ShowSirenItem(data.YaoNvData);
 }
Exemple #3
0
//     void   AddRotateComponentForSeconds()
//    {
//           this.m_hero.AddComponent<DragModel>();
//    }

    public void Show(SMsgInteract_GetPlayerRanking_SC data)
    {
        m_data = data;
        gameObject.SetActive(true);
        this.m_hero.transform.localRotation = Quaternion.Euler(new Vector3(0, 180, 0));
        //PlayerChangeWaeponAnim();
        //Invoke("AddRotateComponentForSeconds",1);
        ChangeHeroFashion();
        ChangeHeroWeapon(null);
        PlayerIdleAnim();
    }
Exemple #4
0
 public void ShowAttribute(SMsgInteract_GetPlayerRanking_SC data)
 {
     RoleAtbList[RoleAttributeType.MaxHP].ResetInfo(data.dwMaxHp.ToString());
     RoleAtbList[RoleAttributeType.MaxMP].ResetInfo(data.dwMaxMp.ToString());
     RoleAtbList[RoleAttributeType.ATK].ResetInfo(data.dwAttack.ToString());
     RoleAtbList[RoleAttributeType.DEF].ResetInfo(data.dwdefend.ToString());
     RoleAtbList[RoleAttributeType.HIT].ResetInfo(data.dwNicety.ToString());
     RoleAtbList[RoleAttributeType.EVA].ResetInfo(data.dwJook.ToString());
     RoleAtbList[RoleAttributeType.Crit].ResetInfo(data.dwBurst.ToString());
     RoleAtbList[RoleAttributeType.ResCrit].ResetInfo(data.dwUnBurst.ToString());
 }
Exemple #5
0
 public void ShowForTime(SMsgInteract_GetPlayerRanking_SC data)
 {
     SoundManager.Instance.PlaySoundEffect("Sound_UIEff_PackageAppear");
     for (int i = 0; i < data.dwGoods.Length - 1; i++)//第六个是药品,不用
     {
         EquiptSlotList[i].Init(data.dwGoods[i]);
     }
     SetCameraPanelPosition();
     m_RoleModelPanel.ShowHeroModelView();
     m_RoleModelPanel.AttachEffect(RoleEffectObj);
     m_RoleModelPanel.Show(data);
     UpdateHeroAttribute(data);
     ShowVipEmblem(data.byVipLevel);
     UpdateTitleDisplay((int)data.dwTitleID);
 }
Exemple #6
0
    public uint                dwJook;              //闪避值

    public static SMsgInteract_GetPlayerRanking_SC ParsePackage(byte[] dataBuffer)
    {
        SMsgInteract_GetPlayerRanking_SC sMsgInteract_GetPlayerRanking_SC = new SMsgInteract_GetPlayerRanking_SC();
        int offset = 0;

        offset += PackageHelper.ReadData(dataBuffer.Skip(offset).ToArray(), out sMsgInteract_GetPlayerRanking_SC.dwActorID);
        offset += PackageHelper.ReadData(dataBuffer.Skip(offset).ToArray(), out sMsgInteract_GetPlayerRanking_SC.szActorName, 19);
        offset += PackageHelper.ReadData(dataBuffer.Skip(offset).ToArray(), out sMsgInteract_GetPlayerRanking_SC.byKind);
        offset += PackageHelper.ReadData(dataBuffer.Skip(offset).ToArray(), out sMsgInteract_GetPlayerRanking_SC.byVipLevel);
        offset += PackageHelper.ReadData(dataBuffer.Skip(offset).ToArray(), out sMsgInteract_GetPlayerRanking_SC.byActorLevel);
        offset += PackageHelper.ReadData(dataBuffer.Skip(offset).ToArray(), out sMsgInteract_GetPlayerRanking_SC.dwTitleID);
        offset += PackageHelper.ReadData(dataBuffer.Skip(offset).ToArray(), out sMsgInteract_GetPlayerRanking_SC.dwFashionID);
        offset += PackageHelper.ReadData(dataBuffer.Skip(offset).ToArray(), out sMsgInteract_GetPlayerRanking_SC.dwActorFinght);
        offset += PackageHelper.ReadData(dataBuffer.Skip(offset).ToArray(), out sMsgInteract_GetPlayerRanking_SC.dwEquipFight);
        offset += PackageHelper.ReadData(dataBuffer.Skip(offset).ToArray(), out sMsgInteract_GetPlayerRanking_SC.dwYaoNvFight);
        offset += PackageHelper.ReadData(dataBuffer.Skip(offset).ToArray(), out sMsgInteract_GetPlayerRanking_SC.dwCurExp);
        offset += PackageHelper.ReadData(dataBuffer.Skip(offset).ToArray(), out sMsgInteract_GetPlayerRanking_SC.dwMaxExp);
        sMsgInteract_GetPlayerRanking_SC.YaoNvData = new SYaoNvRankingData[5];
        for (int j = 0; j < 5; j++)
        {
            offset += PackageHelper.ReadData(dataBuffer.Skip(offset).ToArray(), out sMsgInteract_GetPlayerRanking_SC.YaoNvData[j].byYaoNvId);
            offset += PackageHelper.ReadData(dataBuffer.Skip(offset).ToArray(), out sMsgInteract_GetPlayerRanking_SC.YaoNvData[j].byYaoNvLevel);
        }
        sMsgInteract_GetPlayerRanking_SC.dwGoods = new SEquipInfo[6];
        for (int i = 0; i < 5; i++)
        {
            offset += PackageHelper.ReadData(dataBuffer.Skip(offset).ToArray(), out sMsgInteract_GetPlayerRanking_SC.dwGoods[i].dwGoodsID);
            offset += PackageHelper.ReadData(dataBuffer.Skip(offset).ToArray(), out sMsgInteract_GetPlayerRanking_SC.dwGoods[i].byStrengLevel);
            offset += PackageHelper.ReadData(dataBuffer.Skip(offset).ToArray(), out sMsgInteract_GetPlayerRanking_SC.dwGoods[i].byStartLevel);
        }
        offset += PackageHelper.ReadData(dataBuffer.Skip(offset).ToArray(), out sMsgInteract_GetPlayerRanking_SC.dwAttack);
        offset += PackageHelper.ReadData(dataBuffer.Skip(offset).ToArray(), out sMsgInteract_GetPlayerRanking_SC.dwdefend);
        offset += PackageHelper.ReadData(dataBuffer.Skip(offset).ToArray(), out sMsgInteract_GetPlayerRanking_SC.dwMaxHp);
        offset += PackageHelper.ReadData(dataBuffer.Skip(offset).ToArray(), out sMsgInteract_GetPlayerRanking_SC.dwMaxMp);
        offset += PackageHelper.ReadData(dataBuffer.Skip(offset).ToArray(), out sMsgInteract_GetPlayerRanking_SC.dwBurst);
        offset += PackageHelper.ReadData(dataBuffer.Skip(offset).ToArray(), out sMsgInteract_GetPlayerRanking_SC.dwUnBurst);
        offset += PackageHelper.ReadData(dataBuffer.Skip(offset).ToArray(), out sMsgInteract_GetPlayerRanking_SC.dwNicety);
        offset += PackageHelper.ReadData(dataBuffer.Skip(offset).ToArray(), out sMsgInteract_GetPlayerRanking_SC.dwJook);

        return(sMsgInteract_GetPlayerRanking_SC);
    }
Exemple #7
0
 void UpdateHeroAttribute(SMsgInteract_GetPlayerRanking_SC data)
 {
     NameLabel.SetText(Encoding.UTF8.GetString(data.szActorName));
     ForceLabel.SetText(data.dwActorFinght.ToString());
     Levellabel.SetText(string.Format("Lv:{0}", data.byActorLevel));
 }