예제 #1
0
파일: mapinfo.py 프로젝트: Hakuba/pyseco
    def __init__(self, pyseco):
        pyseco_plugin.__init__(self, pyseco)
        self.register_callback("TrackMania.BeginChallenge")
        self.register_callback("pyseco.mapmanager.EndRound")
        self.register_callback("TrackMania.PlayerConnect")

        self.initialize()
예제 #2
0
파일: livecps.py 프로젝트: Hakuba/pyseco
 def __init__(self, pyseco):
     pyseco_plugin.__init__(self, pyseco)
     self.initialize()
     self.register_callback("TrackMania.PlayerCheckpoint")
     self.register_callback("TrackMania.BeginRace")
     self.register_callback("TrackMania.PlayerConnect")
     self.register_callback("TrackMania.EndRound")
예제 #3
0
파일: records.py 프로젝트: Hakuba/pyseco
    def __init__(self, pyseco):
        pyseco_plugin.__init__(self, pyseco, db=True)
        self.initialize()

        self.pyseco.add_callback_listener("TrackMania.PlayerFinish", self)
        self.pyseco.add_callback_listener("TrackMania.PlayerConnect", self)
        self.pyseco.add_callback_listener("TrackMania.BeginChallenge", self)
        self.pyseco.add_callback_listener("TrackMania.EndRound", self)
예제 #4
0
파일: cpdiff.py 프로젝트: Hakuba/pyseco
    def __init__(self, pyseco):
        pyseco_plugin.__init__(self, pyseco, db=True)
        self.register_callback("TrackMania.BeginChallenge")
        self.register_callback("TrackMania.PlayerCheckpoint")
        self.register_callback("TrackMania.PlayerFinish")

        self.curr_times = dict()

        challenge = self.pyseco.query((), "GetCurrentMapInfo")
        self.new_map(challenge[0][0])
예제 #5
0
 def __init__(self, pyseco):
     pyseco_plugin.__init__(self, pyseco, db=True)
     self.pyseco.add_callback_listener("TrackMania.PlayerConnect", self)
     self.pyseco.add_callback_listener("TrackMania.PlayerDisconnect", self)
     self.pyseco.add_callback_listener("TrackMania.PlayerInfoChanged", self)
     self.initialize()
예제 #6
0
 def __init__(self, pyseco):
     pyseco_plugin.__init__(self, pyseco, db=True)
     self.pyseco.add_callback_listener("TrackMania.PlayerChat", self)
예제 #7
0
파일: manialink.py 프로젝트: Hakuba/pyseco
    def __init__(self, pyseco):
        pyseco_plugin.__init__(self, pyseco)
        self.pyseco.add_callback_listener("TrackMania.BeginChallenge", self)
        self.pyseco.add_callback_listener("TrackMania.EndRound", self)

        self.pyseco.query((), "SendHideManialinkPage")
예제 #8
0
파일: admin.py 프로젝트: Hakuba/pyseco
 def __init__(self, pyseco):
     pyseco_plugin.__init__(self, pyseco)
     self.register_chat_command("admin")