Project

Profile

Help

Revision a5c338e8

Added by Vincent Le Goff almost 4 years ago

Put the macros and triggers in the world itself

View differences:

src/game.py
76 76
        self.TTS_on = self.settings["options.TTS.on"]
77 77
        self.TTS_outside = self.settings["options.TTS.outside"]
78 78

  
79
    def open(self, host, port):
79
        # For each world, set the game engine
80
        for world in self.worlds.values():
81
            world.engine = self
82

  
83
    def open(self, host, port, world):
80 84
        """Connect to the specified host and port.
81 85

  
82 86
        This method creates and returns a 'GUIClient' class initialized
83 87
        with the specified information.
84 88

  
85 89
        """
86
        client = GUIClient(host, port, engine=self)
90
        client = GUIClient(host, port, engine=self, world=world)
91
        world.client = client
92
        world.sharp_engine = client.sharp_engine
87 93
        return client

Also available in: Unified diff