Mercurial > libervia-backend
annotate frontends/src/wix/constants.py @ 717:358018c5c398
plugins (games): more factorization and flexibility for launching and joining games:
- "MUC user joined", "MUC user left" and class XMPPHandler are managed directly in RoomGame
- renamed __init__ parameters 'player_init_data' to 'player_init' and 'options' to 'game_init'
- pass the players list in radiocol method 'createGame' and signal 'radiocolStarted' (needed for invitation system and for UI players identification)
- added some parameters to manage who can invite, who can join, who to wait for... managed with check***Auth methods
- joining a game that is already launched may be possible, regarding these parameters and the invitation list
- leave and join a game again is partly managed: new tarot round is launched, we should keep playing the same round instead
author | souliane <souliane@mailoo.org> |
---|---|
date | Thu, 21 Nov 2013 15:49:53 +0100 |
parents | 0806a65a5fa9 |
children | 6246eb6d64a0 |
rev | line source |
---|---|
227 | 1 import sys,os.path |
72 | 2 import __builtin__ |
227 | 3 import sat_frontends.wix |
4 | |
5 wix_root = os.path.dirname(sat_frontends.wix.__file__) | |
72 | 6 |
191 | 7 __builtin__.__dict__['APP_NAME'] = "Wix" |
227 | 8 __builtin__.__dict__['LICENCE_PATH'] = os.path.join(wix_root,"COPYING") |
72 | 9 |
10 __builtin__.__dict__['msgOFFLINE'] = _("offline") | |
11 __builtin__.__dict__['msgONLINE'] = _("online") | |
12 __builtin__.__dict__['const_DEFAULT_GROUP'] = "Unclassed" | |
13 __builtin__.__dict__['const_STATUS'] = [("", _("Online"), None), | |
14 ("chat", _("Free for chat"), "green"), | |
15 ("away", _("AFK"), "brown"), | |
16 ("dnd", _("DND"), "red"), | |
17 ("xa", _("Away"), "red")] |