Esempio n. 1
0
    public void DisplayNames(bool bMakeName)
    {
        for (short num = 1; num <= 3; num += 1)
        {
            int charID = NrTSingleton <NkCharManager> .Instance.m_kCharAccountInfo.GetCharID((int)num);

            NrCharUser nrCharUser = NrTSingleton <NkCharManager> .Instance.GetChar(charID) as NrCharUser;

            if (nrCharUser == null)
            {
                this.ShowHideCharName((int)num, false);
            }
            else
            {
                this.ShowHideCharName((int)num, true);
                if (bMakeName)
                {
                    this.SetCharName((int)num, nrCharUser.GetPersonInfo().GetLevel(0L), nrCharUser.GetPersonInfo().GetCharName(), nrCharUser.GetCharKindInfo().GetCHARKIND_INFO().CharTribe, nrCharUser.GetPersonInfo().GetPersonID(), nrCharUser.GetCharKindInfo().GetCHARKIND_INFO().CHARKIND);
                }
                else
                {
                    TsLog.Log("Test bMakeName == false", new object[0]);
                    this.ShowHideCharName((int)num, bMakeName);
                }
            }
        }
    }