Beispiel #1
0
    public override void SetReadyPartInfo()
    {
        NrPersonInfoUser personInfoUser = this.GetPersonInfoUser();
        NrCharBasePart   basePart       = personInfoUser.GetBasePart();
        NrEquipItemInfo  equipItemInfo  = personInfoUser.GetSoldierInfo(0).GetEquipItemInfo();

        this.m_kPartControl.CollectPartInfo(basePart, equipItemInfo);
    }
Beispiel #2
0
    public void SendPacket_CreateAvatar(NrCharUser kCharAvatar, string strSupporterName)
    {
        WS_CREATE_CHAR_REQ wS_CREATE_CHAR_REQ = new WS_CREATE_CHAR_REQ();
        NrPersonInfoUser   nrPersonInfoUser   = kCharAvatar.GetPersonInfo() as NrPersonInfoUser;

        if (nrPersonInfoUser == null)
        {
            return;
        }
        TKString.StringChar(nrPersonInfoUser.GetCharName(), ref wS_CREATE_CHAR_REQ.szCharName);
        TKString.StringChar(strSupporterName, ref wS_CREATE_CHAR_REQ.szSupporterName);
        wS_CREATE_CHAR_REQ.i32CharKind = nrPersonInfoUser.GetKind(0);
        wS_CREATE_CHAR_REQ.kBasePart.SetData(nrPersonInfoUser.GetBasePart());
        SendPacket.GetInstance().SendObject(16777252, wS_CREATE_CHAR_REQ);
    }
Beispiel #3
0
    public override void SetPersonInfo(NrPersonInfoBase pkPersonInfo)
    {
        if (pkPersonInfo == null)
        {
            return;
        }
        base.SetPersonInfo(pkPersonInfo);
        NrPersonInfoUser nrPersonInfoUser = pkPersonInfo as NrPersonInfoUser;

        if (nrPersonInfoUser == null)
        {
            return;
        }
        if (this.m_kCharBasicPart == null)
        {
            return;
        }
        this.m_kCharBasicPart.SetData(nrPersonInfoUser.GetBasePart());
        this.m_kSubChar.Set(nrPersonInfoUser.m_kSubChar);
        this.m_i64LastLoginTime = nrPersonInfoUser.m_i64LastLoginTime;
    }