Exemple #1
0
 @Override
 public void write(LumpDataOutput lo) throws IOException {
   for (int j = 0; j < 2; j++) {
     for (int k = 0; k < 4; k++) {
       lo.writeFloat(textureVecsTexels[j][k]);
     }
   }
   for (int j = 0; j < 2; j++) {
     for (int k = 0; k < 4; k++) {
       lo.writeFloat(lightmapVecsLuxels[j][k]);
     }
   }
   lo.write(unknown);
   lo.writeInt(EnumConverter.toInteger(flags));
   lo.writeInt(texdata);
 }
Exemple #2
0
 @Override
 public void read(LumpDataInput li) throws IOException {
   for (int j = 0; j < 2; j++) {
     for (int k = 0; k < 4; k++) {
       textureVecsTexels[j][k] = li.readFloat();
     }
   }
   for (int j = 0; j < 2; j++) {
     for (int k = 0; k < 4; k++) {
       lightmapVecsLuxels[j][k] = li.readFloat();
     }
   }
   li.readFully(unknown);
   flags = EnumConverter.fromInteger(SurfaceFlag.class, li.readInt());
   texdata = li.readInt();
 }