Poodletooth-iLand/toontown/dna/DNAUtil.py
2015-03-03 17:10:12 -05:00

9 lines
230 B
Python

from panda3d.core import LVector4f
def dgiExtractString8(dgi):
return dgi.extractBytes(dgi.getUint8())
def dgiExtractColor(dgi):
a, b, c, d = (dgi.getUint8() / 255.0 for _ in xrange(4))
return LVector4f(a, b, c, d)