예제 #1
0
        public static MTX Parse(BinaryReader f)
        {
            MTX info = new MTX();

            info.cnt1  = f.ReadInt32();
            info.text1 = "";
            for (int i = 0; i < info.cnt1; i++)
            {
                info.text1 += L2DatTool.ReadStringSimple_UnicodeInt32Length(f);
                if (i < info.cnt1 - 1)
                {
                    info.text1 += L2DatTool.DELIMITER;
                }
            }
            info.cnt2  = f.ReadInt32();
            info.text2 = "";
            for (int i = 0; i < info.cnt2; i++)
            {
                info.text2 += L2DatTool.ReadStringSimple_UnicodeInt32Length(f);
                if (i < info.cnt2 - 1)
                {
                    info.text2 += L2DatTool.DELIMITER;
                }
            }
            return(info);
        }
예제 #2
0
        public static UNICODE Parse(BinaryReader f)
        {
            UNICODE TmpStr = new UNICODE();

            TmpStr.Text = L2DatTool.ReadStringSimple_UnicodeInt32Length(f);
            return(TmpStr);
        }
예제 #3
0
        public static CNTTXT_PAIR2 Parse(BinaryReader f)
        {
            CNTTXT_PAIR2 info = new CNTTXT_PAIR2();

            info.cnt   = f.ReadInt32();
            info.text1 = "";
            for (int i = 0; i < info.cnt; i++)
            {
                info.text1 += L2DatTool.ReadStringSimple_UnicodeInt32Length(f);
                if (i < info.cnt - 1)
                {
                    info.text1 += L2DatTool.DELIMITER;
                }
            }
            info.value1 = "";
            for (int i = 0; i < info.cnt; i++)
            {
                info.value1 += f.ReadInt32().ToString();
                if (i < info.cnt - 1)
                {
                    info.value1 += L2DatTool.DELIMITER;
                }
            }
            return(info);
        }
예제 #4
0
        public static MTX3 Parse(BinaryReader f)
        {
            MTX3 info = new MTX3();

            info.cnt1     = f.ReadInt32();
            info.text1    = "";
            info.unknown1 = "";
            for (int i = 0; i < info.cnt1; i++)
            {
                info.text1 += L2DatTool.ReadStringSimple_UnicodeInt32Length(f);
                if (i < info.cnt1 - 1)
                {
                    info.text1 += L2DatTool.DELIMITER;
                }

                byte[] temp = f.ReadBytes(2);
                info.unknown1 += BitConverter.ToString(temp);
                if (i < info.cnt1 - 1)
                {
                    info.unknown1 += L2DatTool.DELIMITER;
                }
            }
            info.cnt2  = f.ReadInt32();
            info.text2 = "";
            for (int i = 0; i < info.cnt2; i++)
            {
                info.text2 += L2DatTool.ReadStringSimple_UnicodeInt32Length(f);
                if (i < info.cnt2 - 1)
                {
                    info.text2 += L2DatTool.DELIMITER;
                }
            }
            info.text3 += L2DatTool.ReadStringSimple_UnicodeInt32Length(f);
            return(info);
        }