def read(self, input_stream): key_count = et.read_int32(input_stream) self.config = con.Config() for i in range(key_count): key = et.read_str(input_stream) value = et.read_str(input_stream) self.config.set_value(key, value)
def read(self, input_stream): self.changed.clear() self.deleted.clear() self.entity_urns.clear() entity_count = et.read_int32(input_stream) for i in range(entity_count): entity_id = wm.EntityID(et.read_int32(input_stream)) entity_urn = et.read_str(input_stream) property_count = et.read_int32(input_stream) for j in range(property_count): property = et.read_property(input_stream) if property is not None: self.add_change(entity_id, entity_urn, property) deleted_count = et.read_int32(input_stream) for i in range(deleted_count): entity_id = wm.EntityID(et.read_int32(input_stream)) self.entity_deleted(entity_id)
def read(self, input_stream): self.value_list = [] list_len = et.read_int32(input_stream) for i in range(list_len): self.value_list.append(et.read_str(input_stream))
def read(self, input_stream): self.value = et.read_str(input_stream)