2022-11-09 23:13:48 +07:00
|
|
|
class_name RWClump
|
|
|
|
extends RWChunk
|
2022-11-10 22:31:42 +07:00
|
|
|
|
|
|
|
var atomic_count: int
|
|
|
|
var light_count: int
|
|
|
|
var camera_count: int
|
2022-12-04 17:16:17 +07:00
|
|
|
var frame_list: RWFrameList
|
2022-11-10 22:31:42 +07:00
|
|
|
var geometry_list: RWGeometryList
|
|
|
|
|
|
|
|
func _init(file: FileAccess):
|
|
|
|
super(file)
|
2022-11-17 22:18:23 +07:00
|
|
|
assert(type == ChunkType.CLUMP)
|
2022-11-10 22:31:42 +07:00
|
|
|
RWChunk.new(file)
|
|
|
|
var atomic_count = file.get_32()
|
|
|
|
if version > 0x33000:
|
|
|
|
light_count = file.get_32()
|
|
|
|
camera_count = file.get_32()
|
2022-12-04 17:16:17 +07:00
|
|
|
frame_list = RWFrameList.new(file)
|
2022-11-10 22:31:42 +07:00
|
|
|
geometry_list = RWGeometryList.new(file)
|