Пример #1
0
 @Override
 void export(ModExporter out) throws IOException {
   super.export(out);
   if (isValid()) {
     out.write(altTextures.size());
     for (AltTexture t : altTextures) {
       t.export(out);
     }
   }
 }
Пример #2
0
 @Override
 void parseData(LImport in, Mod srcMod) throws BadRecord, DataFormatException, BadParameter {
   super.parseData(in, srcMod);
   int numTextures = in.extractInt(4);
   for (int i = 0; i < numTextures; i++) {
     int strLength = Ln.arrayToInt(in.getInts(0, 4));
     AltTexture newText = new AltTexture(new LShrinkArray(in.extract(12 + strLength)), srcMod);
     altTextures.add(newText);
     if (logging()) {
       logMod(
           srcMod,
           "",
           "New Texture Alt -- Name: "
               + newText.name
               + ", texture: "
               + newText.texture
               + ", index: "
               + newText.index);
     }
   }
 }