def add_processor(self, processor_instance: Processor, priority=<NUM_LIT:0>) -> None:
assert issubclass(processor_instance.__class__, Processor)<EOL>processor_instance.priority = priority<EOL>processor_instance.world = self<EOL>self._processors.append(processor_instance)<EOL>self._processors.sort(key=lambda proc: proc.priority, reverse=True)<EOL>
Add a Processor instance to the World.

        :param processor_instance: An instance of a Processor,
        subclassed from the Processor class
        :param priority: A higher number is processed first.