Esempio n. 1
0
 private static void WriteClnd(Clnd clnd, BinaryWriter writer)
 {
     writer.Write(clnd.magic1);
     writer.Write(clnd.name.ToCharArray());
     writer.Write(clnd.magic2);
     writer.Write(clnd.count);
     writer.Write(clnd.clgmType);
     writer.Write(clnd.unk2);
     WriteClgm(clnd.clgm, clnd.clgmType, writer);
     writer.Write(clnd.unk3);
     writer.Write(clnd.unk4);
     writer.Write(clnd.unk5);
 }
Esempio n. 2
0
        private static Clnd ReadClnd(BinaryReader reader)
        {
            var clnd = new Clnd {
                magic1   = reader.ReadUInt32(),
                name     = new string(reader.ReadChars(4)),
                magic2   = reader.ReadUInt32(),
                count    = reader.ReadUInt32(),
                clgmType = reader.ReadUInt32(),
                unk2     = reader.ReadByte()
            };

            clnd.clgm = ReadClgm(clnd.count, clnd.clgmType, reader);
            clnd.unk3 = reader.ReadByte();
            clnd.unk4 = reader.ReadByte();
            clnd.unk5 = reader.ReadByte();
            return(clnd);
        }