Exemplo n.º 1
0
Arquivo: Info.cs Projeto: wnd2da/aion
 public void Clear()
 {
     클래스 = null;
     오른손 = 왼손 = null;
     상의  = 어깨 = 장갑 = 하의 = 신발 = null;
     머리  = 목걸이 = 귀고리1 = 귀고리2 = 반지1 = 반지2 = 허리띠 = 날개 = null;
     타이틀 = null;
     이디안 = 음식 = 캔디 = null;
     세트효과목록.Clear();
     마석목록.Clear();
     주문서목록.Clear();
     스킬목록.Clear();
     FullFileName = null;
     OnlyFileName = null;
     Desc         = null;
 }
Exemplo n.º 2
0
 private void LoadTitle()
 {
     TitleList = new Dictionary <string, EntityTitle>();
     string[] urls = GenerateDataFile.fileListPC;
     for (int i = 0; i < urls.Length; i++)
     {
         XmlDocument xml = new XmlDocument();
         xml.Load(GenerateDataFile.dataPath + "\\" + urls[i]);
         XmlElement  root = xml.DocumentElement;
         XmlNodeList list = root.ChildNodes;
         foreach (XmlNode node in list)
         {
             EntityTitle title = new EntityTitle(this, node);
             if (title.ViewName == null)
             {
                 continue;
             }
             this.TitleList.Add(title.Name, title);
         }
         XMLEventHandler(this, new XMLEventArgs(XMLEvent.타이틀, urls[i]));
     }
 }
Exemplo n.º 3
0
Arquivo: Info.cs Projeto: wnd2da/aion
        public void SetNull(int rowIndex)
        {
            switch (rowIndex)
            {
            case 2: 오른손 = null; return;

            case 3: 왼손 = null; return;

            case 4: 상의 = null; return;

            case 5: 어깨 = null; return;

            case 6: 장갑 = null; return;

            case 7: 하의 = null; return;

            case 8: 신발 = null; return;

            case 9: 머리 = null; return;

            case 10: 목걸이 = null; return;

            case 11: 귀고리1 = null; return;

            case 12: 귀고리2 = null; return;

            case 13: 반지1 = null; return;

            case 14: 반지2 = null; return;

            case 15: 허리띠 = null; return;

            case 16: 날개 = null; return;

            case 17: 타이틀 = null; return;

            case 18: 이디안 = null; return;

            case 19: 음식 = null; return;

            case 20: 캔디 = null; return;
            }

            int count세트효과목록     = 세트효과목록.Count;
            int count마석목록       = 마석목록.Count;
            int count주문서목록      = 주문서목록.Count;
            int count스킬목록       = 스킬목록.Count;
            int start세트효과목록     = Information.RowIndex세트효과;
            int startIndex마석목록  = 0;
            int startIndex주문서목록 = 0;
            int startIndex스킬목록  = 0;

            if (count세트효과목록 == 0 || count세트효과목록 == 1)
            {
                startIndex마석목록 = start세트효과목록 + 1; // 22
            }
            else
            {
                startIndex마석목록 = start세트효과목록 + 1 + (count세트효과목록 - 1);
            }

            if (count마석목록 == 0 || count마석목록 == 1)
            {
                startIndex주문서목록 = startIndex마석목록 + 1;
            }
            else
            {
                startIndex주문서목록 = startIndex마석목록 + 1 + (count마석목록 - 1);
            }


            if (count주문서목록 == 0 || count주문서목록 == 1)
            {
                startIndex스킬목록 = startIndex주문서목록 + 1;
            }
            else
            {
                startIndex스킬목록 = startIndex주문서목록 + 1 + (count주문서목록 - 1);
            }

            if (rowIndex >= start세트효과목록 && rowIndex < startIndex마석목록)
            {
            }
            else if (rowIndex >= startIndex마석목록 && rowIndex < startIndex주문서목록)
            {
                //마석
                int index = rowIndex - startIndex마석목록;
                if (마석목록.Count > 0)
                {
                    마석목록.RemoveAt(index);
                }
            }
            else if (rowIndex >= startIndex주문서목록 && rowIndex < startIndex스킬목록)
            {
                //주문서
                int index = rowIndex - startIndex주문서목록;
                if (주문서목록.Count > 0)
                {
                    주문서목록.RemoveAt(index);
                }
            }
            else if (rowIndex >= startIndex스킬목록)
            {
                //주문서
                int index = rowIndex - startIndex스킬목록;
                if (스킬목록.Count > 0)
                {
                    스킬목록.RemoveAt(index);
                }
            }
        }