Exemplo n.º 1
0
 public override long WriteReplacer(AssetsFileWriter writer)
 {
     writer.Write((short)1); //replacer type
     writer.Write((byte)0);  //file type (0 bundle, 1 assets)
     writer.WriteCountStringInt16(oldName);
     writer.WriteCountStringInt16(newName);
     writer.Write(hasSerializedData);
     return(writer.Position);
 }
        public override long WriteReplacer(AssetsFileWriter writer)
        {
            writer.Write((short)4); //replacer type
            writer.Write((byte)0);  //file type (0 bundle, 1 assets)
            writer.WriteCountStringInt16(oldName);
            writer.WriteCountStringInt16(newName);
            writer.Write((byte)1); //probably hasSerializedData
            writer.Write((long)assetReplacers.Count);
            foreach (AssetsReplacer replacer in assetReplacers)
            {
                replacer.WriteReplacer(writer);
            }

            return(writer.Position);
        }
Exemplo n.º 3
0
 public override long WriteReplacer(AssetsFileWriter writer)
 {
     writer.Write((short)0); //replacer type
     writer.Write((byte)0);  //file type (0 bundle, 1 assets)
     writer.WriteCountStringInt16(name);
     return(writer.Position);
 }