예제 #1
0
        public void Load(string path, ClientType myClientType)
        {
            this.type = myClientType;
            this.path = path;
            this.list_mesh.Clear();
            this.list_character.Clear();
            this.list_effect.Clear();
            this.list_motion.Clear();
            BinaryReader binaryReader = new BinaryReader(File.Open(path, FileMode.Open), Encoding.GetEncoding("EUC-KR"));
            int          num          = (int)binaryReader.ReadInt16();

            for (int num2 = 0; num2 != num; num2++)
            {
                CHR.Mesh mesh = new CHR.Mesh();
                mesh.read(ref binaryReader);
                this.list_mesh.Add(mesh);
            }
            int num3 = (int)binaryReader.ReadInt16();

            for (int num2 = 0; num2 != num3; num2++)
            {
                CHR.Motion motion = new CHR.Motion();
                motion.read(ref binaryReader);
                this.list_motion.Add(motion);
            }
            int num4 = (int)binaryReader.ReadInt16();

            for (int num2 = 0; num2 != num4; num2++)
            {
                CHR.Effect effect = new CHR.Effect();
                effect.read(ref binaryReader);
                this.list_effect.Add(effect);
            }
            int num5 = (int)binaryReader.ReadInt16();

            for (int num2 = 0; num2 != num5; num2++)
            {
                CHR.Character character = new CHR.Character();
                character.read(ref binaryReader);
                this.list_character.Add(character);
            }
            binaryReader.Close();
        }
예제 #2
0
 public void Load(string path, ClientType myClientType)
 {
     this.type = myClientType;
     this.path = path;
     this.list_mesh.Clear();
     this.list_character.Clear();
     this.list_effect.Clear();
     this.list_motion.Clear();
     BinaryReader binaryReader = new BinaryReader(File.Open(path, FileMode.Open), Encoding.GetEncoding("EUC-KR"));
     int num = (int)binaryReader.ReadInt16();
     for (int num2 = 0; num2 != num; num2++)
     {
         CHR.Mesh mesh = new CHR.Mesh();
         mesh.read(ref binaryReader);
         this.list_mesh.Add(mesh);
     }
     int num3 = (int)binaryReader.ReadInt16();
     for (int num2 = 0; num2 != num3; num2++)
     {
         CHR.Motion motion = new CHR.Motion();
         motion.read(ref binaryReader);
         this.list_motion.Add(motion);
     }
     int num4 = (int)binaryReader.ReadInt16();
     for (int num2 = 0; num2 != num4; num2++)
     {
         CHR.Effect effect = new CHR.Effect();
         effect.read(ref binaryReader);
         this.list_effect.Add(effect);
     }
     int num5 = (int)binaryReader.ReadInt16();
     for (int num2 = 0; num2 != num5; num2++)
     {
         CHR.Character character = new CHR.Character();
         character.read(ref binaryReader);
         this.list_character.Add(character);
     }
     binaryReader.Close();
 }