예제 #1
0
        internal void UpdateXSoulEquip()
        {
            XSoulInfo <XSoulPartInfo> xsoul = m_User.GetXSoulInfo();

            //LogSystem.Debug("-----UpdateXSoulEquip" + xsoul.GetAllXSoulPartData().Count);
            foreach (var pair in xsoul.GetAllXSoulPartData())
            {
                XSoulPartInfo part_info = pair.Value;
                if (part_info == null)
                {
                    //LogSystem.Debug("----UpdateXSoulEquip: part is null!");
                    continue;
                }
                //LogSystem.Debug("-----UpdateXSoulEquip: part:{0} level:{1}", pair.Key, part_info.XSoulPartItem.Level);
                if (part_info.IsEquipModelChanged())
                {
                    string wear_node_and_name = part_info.GetWearNodeAndName();
                    string new_equip          = part_info.GetLevelModel();
                    if (!string.IsNullOrEmpty(new_equip))
                    {
                        GfxSystem.ChangeEquip(Actor, wear_node_and_name, new_equip);
                        part_info.SetCurShowedModel(new_equip);
                    }
                }
            }
        }
예제 #2
0
        private void Release()
        {
            XSoulInfo <XSoulPartInfo> xsoul = m_User.GetXSoulInfo();

            foreach (var pair in xsoul.GetAllXSoulPartData())
            {
                XSoulPartInfo part_info = pair.Value;
                if (part_info == null)
                {
                    continue;
                }
                part_info.SetCurShowedModel("");
            }
        }