def GET(self, id=None): ''' Provides statistics that represent the overall LAN party. Args: None Returns: overview (object): Overall information for the entire LAN party. ''' return stat_mgr.get_stats()
def on_score(self, e): overall_stats = stat_mgr.get_stats() overall_stats.score += e.value
def on_kill(self, e): overall_stats = stat_mgr.get_stats() overall_stats.kills += 1
def on_event(self, e): overall_stats = stat_mgr.get_stats() overall_stats.lines += 1
def on_death(self, e): overall_stats = stat_mgr.get_stats() overall_stats.deaths += 1
def on_connect(self, e): players = model_mgr.get_players(True) overall_stats = stat_mgr.get_stats() overall_stats.players = max(overall_stats.players, len(players))