Guest User

Untitled

a guest
Sep 17th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
D 0.28 KB | None | 0 0
  1.     bool map(bool delegate(NbtNode) cb) {
  2.         static bool callback(nbt_node* node, void* aux)
  3.         {
  4.             auto dg = *cast(typeof(cb)*)aux;
  5.             return dg(new NbtNode(node));
  6.         }
  7.        
  8.         return check_nbt!nbt_map(node, &callback, &cb);
  9.     }
Add Comment
Please, Sign In to add comment