def serialize(self, bit_stream: BitStream): bit_stream.write_start() bit_stream.write_bool(self.sw) bit_stream.write_bool(self.sx) bit_stream.write_bool(self.sy) bit_stream.write_bool(self.sz) bit_stream.write_short(self.cx) bit_stream.write_short(self.cy) bit_stream.write_short(self.cz)
def serialize(self, bit_stream: BitStream): bit_stream.write_start() self.aw_object_id.serialize(bit_stream) self.avatar.serialize(bit_stream) self.player_id.serialize(bit_stream) bit_stream.write_str(self.name) bit_stream.write_str(self.bio) bit_stream.write_str(self.secret_code) bit_stream.write_dt(self.create_ts) self.player_avatar_outfit_id.serialize(bit_stream) bit_stream.write_short(self.outfit_no) bit_stream.write_long(self.play_time, nullable=True) bit_stream.write_dt(self.last_play)
def serialize(self, bit_stream: BitStream): bit_stream.write_start() self.aw_object_id.serialize(bit_stream) bit_stream.write_int(len(self.asset_map)) for key in self.asset_map: bit_stream.write_str(key) bit_stream.write_int(len(self.asset_map[key])) for item in self.asset_map[key]: item.serialize(bit_stream) bit_stream.write_int(len(self.asset_packages)) for item in self.asset_packages: item.serialize(bit_stream) bit_stream.write_str(self.dimensions) bit_stream.write_double(self.weight) bit_stream.write_double(self.height) bit_stream.write_short(self.max_outfits) bit_stream.write_str(self.name)
def serialize(self, bit_stream: BitStream): bit_stream.write_start() self.site_info.serialize(bit_stream) bit_stream.write_str(self.session_status.name) self.session_id.serialize(bit_stream) bit_stream.write_long(self.conversation_id) bit_stream.write_str(self.asset_delivery_url) self.player.serialize(bit_stream) bit_stream.write_short(self.max_outfit) bit_stream.write_int(len(self.player_stats)) for ps in self.player_stats: ps.serialize(bit_stream) self.player_info.serialize(bit_stream) bit_stream.write_dt(self.current_server_time) bit_stream.write_dt(self.system_lockout_time) bit_stream.write_dt(self.system_shutdown_time) bit_stream.write_int(self.client_inactivity_timeout) bit_stream.write_str(self.cnl)
def serialize(self, bit_stream: BitStream): bit_stream.write_start() self.aw_object_id.serialize(bit_stream) bit_stream.write_str(self.name) bit_stream.write_long(self.size) bit_stream.write_bytes(self.thumbnail) bit_stream.write_dt(self.publish_timestamp) bit_stream.write_short(self.num_rooms) bit_stream.write_short(self.num_tubes) bit_stream.write_short(self.rating, True) bit_stream.write_bool(self.is_locked) bit_stream.write_bool(self.is_home_maze) bit_stream.write_bool(self.is_published) bit_stream.write_bool(self.is_publish_expired) self.player_id.serialize(bit_stream) bit_stream.write_int(0) # GSFPlayerMazePieces self.home_theme.serialize(bit_stream) self.parent_id.serialize(bit_stream) self.source_id.serialize(bit_stream)
def serialize(self, bit_stream: BitStream): bit_stream.write_start() self.container_aw_object_id.serialize(bit_stream) bit_stream.write_int(len(self.container_asset_map)) for key in self.container_asset_map: bit_stream.write_str(key) bit_stream.write_int(len(self.container_asset_map[key])) for item in self.container_asset_map[key]: item.serialize(bit_stream) bit_stream.write_int(len(self.container_asset_pkg)) for item in self.container_asset_pkg: item.serialize(bit_stream) bit_stream.write_short(self.rotation_days) bit_stream.write_short(self.rotation_rate) self.reporting_level_id.serialize(bit_stream) bit_stream.write_bool(self.paid) bit_stream.write_bool(self.premium) bit_stream.write_bool(self.closed) bit_stream.write_str(self.pricing_info) bit_stream.write_short(self.expiry_period) bit_stream.write_int(self.ordinal) self.expiry_tier_id.serialize(bit_stream)