Advertisement
PaleoCrafter

Untitled

Jun 10th, 2015
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.56 KB | None | 0 0
  1. for (m <- value.meshes.indices) {
  2.   val mesh = value.meshes(m)
  3.   file.writeInt32(mesh.id)
  4.   file.writeString(mesh.name)
  5.   file.writeInt32(mesh.textures.length)
  6.   for (t <- mesh.textures.indices) {
  7.     val texture = mesh.textures(t)
  8.     file.writeString(texture.name)
  9.     file.writeString(texture.fileName)
  10.   }
  11. }
  12. for {
  13.   mesh <- value.meshes
  14.   _ = file.writeInt32(mesh.id)
  15.   _ = file.writeString(mesh.name)
  16.   _ = file.writeInt32(mesh.textures.length)
  17.   texture <- mesh.textures
  18.   _ = file.writeString(texture.name)
  19.   _ = file.writeString(texture.fileName)
  20. } ()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement