code: def _add_world_state(self, global_state: GlobalState):
          
          for hook in self._add_world_state_hooks:
              try:
                  hook(global_state)
              except PluginSkipWorldState:
                  return
  
          self.open_states.append(global_state.world_state)
docs: Stores the world_state of the passed global state in the open states