def read_rcol(self, stream, rcol): s = StreamReader(stream) self.read_tag(stream) self.version = s.u32() self.clip = ExternalResource(s.tgi('ITG')) self.track_mask = ExternalResource(s.tgi('ITG')) cActorSlots = s.i32() assert s.u32() == 0 assert s.u32() == 0 assert s.u32() == 0 self.actor_slots = [ self.SlotAssignment(stream) for i in range(cActorSlots) ] self.actor_iks = [ self.NamespaceSlotSuffix(stream) for i in range(s.i32()) ] assert s.u32() == DEADBEEF self.additive_clip = ExternalResource(s.tgi('ITG')) self.clip_pattern = s.p32(size=16) s.align() self.additive_clip_pattern = s.p32(size=16) s.align() assert s.u32() == DEADBEEF AnimationNode.read_rcol(self, stream, rcol)
def __init__(self, key=None, stream=None, resources=None, name=None): self.version = 0 self.shader_keys = [] self.sub_skin_ramp = ExternalResource() self.tone_ramp = ExternalResource() self.texture_keys = [] self.is_dominant = True PackedResource.__init__(self, key, stream, resources, name)
def __init__(self, key=None, stream=None, resources=None): self.version = self.VERSION.DEFAULT self.clip = ExternalResource(ClipResource.ID) self.track_mask = ExternalResource(TrackMask.ID) self.actor_slots = [] self.actor_iks = [] self.additive_clip = ExternalResource(ClipResource.ID) self.clip_pattern = '' self.additive_clip_pattern = '' AnimationNode.__init__(self, key, stream, resources)
def __init__(self, key): self.version = self.VERSION.DEFAULT self.rig = ExternalResource(ResourceKey()) self.unknown = 1.0 self.reserved = [0] * self.RESERVED_COUNT self.bone_weights = [] RCOL.__init__(self, key)
def __init__(self, key=None, stream=None): self.version = self.VERSION.EXTENDED self.part_name = '' self.blend_type = 0 self.entries = [] self.blend_geometry = ExternalResource(BlendGeometry.ID) PackedResource.__init__(self, key, stream)
def __init__(self, key=None, stream=None): self.version = self.VERSION.DEFAULT self.bounds = BoundingBox() self.flags = 0x00000000 self.routing_footprint = ExternalResource(ResourceKey()) self.entries = [] RCOL.__init__(self, key, stream)
def __init__(self, key=None): RCOL.__init__(self, key) self.version = 0 self.indices = [] self.vertices = [] self.shader = None self.material = MaterialBlock() self.merge_group = 0 self.skin_controller = ExternalResource( ResourceKey(BodySkinController.ID)) self.sort_order = 0 self.vertex_format = self.VertexFormat() self.bones = []
def read(self, stream, resource=None): s = StreamReader(stream) self.version = s.u32() tgi = TGIList(use_length=self.version >= 7, add_eight=True) tgi.begin_read(stream) self.part_name = s.s7(16, '>') self.blend_type = s.u32() if self.version >= 8: key = s.tgi() bgeo = ExternalResource(key=key) self.blend_geometry = bgeo cEntries = s.i32() for i in range(cEntries): entry = self.RegionEntry() entry.region_flags = s.u32() entry.geom_entries = [self.GeomEntry(stream, tgi) for i in range(s.i32())] entry.bone_entries = [self.BoneEntry(stream, tgi) for i in range(s.i32())] self.entries.append(entry) tgi.end_read(stream)
def __init__(self): self.name = "" self.resource = ExternalResource(ResourceKey()) self.values = {} self.patterns = [] self.variable = None
def __init__(self, key=None, stream=None, resources=None): self.version = self.VERSION.DEFAULT self.actor = None self.parameter = None self.prop = ExternalResource() MulticastDecisionGraphNode.__init__(self, key, stream, resources)
def __init__(self, stream=None, tgi=None): self.age_gender_flags = 0 self.amount = 0.0 self.geom = ExternalResource() if not stream == None: self.read(stream, tgi)
def __init__(self, stream=None, resources=None, parent=None): self.index = 0 self.resource = ExternalResource(ResourceKey()) VisualProxy.Entry.__init__(self, stream, resources)
def __init__(self): SamplingTextureStep.__init__(self) self.params['DefaultColor'] = 0xFFFFFFFF self.params['Width'] = 0xFF self.params['Height'] = 0xFF self.params['DefaultFabric'] = ExternalResource()