Example #1
0
        public static void Write(DSBinaryWriter bin, ExternalMtdParam p)
        {
            bin.Write(p.UnknownA01);
            bin.Write(p.UnknownA02);
            bin.Write(p.UnknownA03);
            bin.Write(p.UnknownA04);


            bin.WriteDelimiter(0xA3);


            bin.WriteMtdName(p.Name, 0x35);
            bin.Write(p.UnknownB);


            bin.WriteDelimiter(0x35);


            bin.Write(p.ShaderDataIndex);
        }
Example #2
0
        public static ExternalMtdParam Read(DSBinaryReader bin)
        {
            var p = new ExternalMtdParam();

            p.UnknownA01 = bin.ReadInt32();
            p.UnknownA02 = bin.ReadInt32();
            p.UnknownA03 = bin.ReadInt32();
            p.UnknownA04 = bin.ReadInt32();


            bin.ReadMtdDelimiter();


            p.Name     = bin.ReadMtdName();
            p.UnknownB = bin.ReadInt32();


            bin.ReadMtdDelimiter();


            p.ShaderDataIndex = bin.ReadInt32();

            return(p);
        }