Skip to content

Instantly share code, notes, and snippets.

View norman784's full-sized avatar

Norman Paniagua norman784

  • Kiel, Germany
View GitHub Profile
@norman784
norman784 / subnautica_optoctrees.py
Created October 25, 2018 15:02 — forked from AlpyneDreams/subnautica_optoctrees.py
Subnautica Optoctree Batches
def read_int(stream, size=1):
return int.from_bytes(stream.read(size), byteorder='little')
class Node:
def __init__(self, stream):
self.material = read_int(stream)
self.distance = read_int(stream)
self.child = read_int(stream, 2)