Ejemplo n.º 1
0
  @Override
  public void write(DataWriter out) throws IOException {
    int entries = infoMap.size();
    out.writeInt(entries);

    for (Map.Entry<Long, T> infoEntry : infoMap.entrySet()) {
      long pathID = infoEntry.getKey();
      ObjectInfo info = infoEntry.getValue();
      out.writeUnsignedInt(pathID);
      out.writeStruct(info);
    }
  }
Ejemplo n.º 2
0
  @Override
  public void write(DataWriter out) throws IOException {
    Vector3f.write(out, startPos);
    out.writeInt(dispVertStart);
    out.writeInt(dispTriStart);
    out.writeInt(power);
    out.writeFloat(smoothingAngle);
    out.writeInt(unknown);
    out.writeInt(contents);
    out.writeUnsignedShort(mapFace);
    out.writeInt(lightmapAlphaStart);
    out.writeInt(lightmapSamplePositionStart);
    out.writeBytes(neighborsVin);

    for (int i = 0; i < allowedVerts.length; i++) {
      out.writeInt(allowedVerts[i]);
    }
  }