32 lines
583 B
Python
32 lines
583 B
Python
from ctypes import *
|
|
|
|
|
|
class Vector3(Structure):
|
|
_fields_ = [
|
|
('x', c_float),
|
|
('y', c_float),
|
|
('z', c_float),
|
|
]
|
|
|
|
|
|
class Quaternion(Structure):
|
|
_fields_ = [
|
|
('x', c_float),
|
|
('y', c_float),
|
|
('z', c_float),
|
|
('w', c_float),
|
|
]
|
|
|
|
|
|
class Section(Structure):
|
|
_fields_ = [
|
|
('name', c_char * 20),
|
|
('type_flags', c_int32),
|
|
('data_size', c_int32),
|
|
('data_count', c_int32)
|
|
]
|
|
|
|
def __init__(self, *args, **kw):
|
|
super().__init__(*args, **kw)
|
|
self.type_flags = 1999801
|