@Override
  public void read(DataReader in) throws IOException {
    int entries = in.readInt();

    for (int i = 0; i < entries; i++) {
      long pathID = in.readUnsignedInt();
      T info = createElement();
      in.readStruct(info);
      infoMap.put(pathID, info);
    }
  }
Beispiel #2
0
  @Override
  public void read(DataReader in) throws IOException {
    startPos = Vector3f.read(in);
    dispVertStart = in.readInt();
    dispTriStart = in.readInt();
    power = in.readInt();
    smoothingAngle = in.readFloat();
    unknown = in.readInt();
    contents = in.readInt();
    mapFace = in.readUnsignedShort();
    lightmapAlphaStart = in.readInt();
    lightmapSamplePositionStart = in.readInt();
    in.readBytes(neighborsVin);

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