예제 #1
0
파일: frame.py 프로젝트: chellmuth/pyrope
 def _parse_existing_actor(self, netstream, actor_type, objects, propertymapper):
     properties = {}
     while netstream.read(BOOL):
         property_id = read_serialized_int(netstream,
                                           propertymapper.get_property_max_id(actor_type))
         property_name = objects[propertymapper.get_property_name(actor_type, property_id)]
         try:
             property_value = read_property_value(property_name, netstream)
         except PropertyParsingError as e:
             e.args += ({"Props_till_err": properties},)
             raise e
         properties[property_name] = property_value
     return properties
예제 #2
0
파일: frame.py 프로젝트: krusmir/pyrope
 def _parse_existing_actor(self, netstream, actor_type, objects, propertymapper):
     properties = {}
     while netstream.read(BOOL):
         property_id = read_serialized_int(netstream,
                                           propertymapper.get_property_max_id(actor_type))
         property_name = objects[propertymapper.get_property_name(actor_type, property_id)]
         try:
             property_value = read_property_value(property_name, netstream)
         except PropertyParsingError as e:
             e.args += ({"Props_till_err": properties},)
             raise e
         properties[property_name] = property_value
     return properties
예제 #3
0
파일: frame.py 프로젝트: shreeshbhat/pyrope
    def _parse_existing_actor(self, actor, netstream, objects, propertymapper):
        actor['state'] = 'existing'
        actor_type = self._actor_alive[actor['id']]

        while netstream.read(BOOL):
            property_id = read_serialized_int(
                netstream, propertymapper.get_property_max_id(actor_type))
            property_name = objects[propertymapper.get_property_name(
                actor_type, property_id)]

            try:
                property_value = read_property_value(property_name, netstream)
            except PropertyParsingError as e:
                e.args += ({"Props_till_err": actor}, )

                raise e

            actor[property_name] = property_value

        return actor
예제 #4
0
    def _parse_existing_actor(self, actor, netstream, objects, propertymapper):
        actor['state'] = 'existing'
        actor_type = self._actor_alive[actor['id']]

        while netstream.read(BOOL):
            property_id = read_serialized_int(
                netstream,
                propertymapper.get_property_max_id(actor_type)
            )
            property_name = objects[propertymapper.get_property_name(actor_type, property_id)]

            try:
                property_value = read_property_value(property_name, netstream)
            except PropertyParsingError as e:
                e.args += ({
                    "Props_till_err": actor
                },)

                raise e

            actor[property_name] = property_value

        return actor