mirror of
https://github.com/solero/houdini.git
synced 2024-11-14 14:48:21 +00:00
Placeholder packages for game handlers
This commit is contained in:
parent
d0e67ba14c
commit
cf1c41ecd8
0
Houdini/Handlers/Games/Dance.py
Normal file
0
Houdini/Handlers/Games/Dance.py
Normal file
0
Houdini/Handlers/Games/FindFour.py
Normal file
0
Houdini/Handlers/Games/FindFour.py
Normal file
0
Houdini/Handlers/Games/Mancala.py
Normal file
0
Houdini/Handlers/Games/Mancala.py
Normal file
0
Houdini/Handlers/Games/MatchMaking.py
Normal file
0
Houdini/Handlers/Games/MatchMaking.py
Normal file
0
Houdini/Handlers/Games/Ninja/CardFire.py
Normal file
0
Houdini/Handlers/Games/Ninja/CardFire.py
Normal file
0
Houdini/Handlers/Games/Ninja/CardJitsu.py
Normal file
0
Houdini/Handlers/Games/Ninja/CardJitsu.py
Normal file
0
Houdini/Handlers/Games/Ninja/CardWater.py
Normal file
0
Houdini/Handlers/Games/Ninja/CardWater.py
Normal file
0
Houdini/Handlers/Games/Ninja/__init__.py
Normal file
0
Houdini/Handlers/Games/Ninja/__init__.py
Normal file
0
Houdini/Handlers/Games/SledRace.py
Normal file
0
Houdini/Handlers/Games/SledRace.py
Normal file
0
Houdini/Handlers/Games/TreasureHunt.py
Normal file
0
Houdini/Handlers/Games/TreasureHunt.py
Normal file
0
Houdini/Handlers/Games/__init__.py
Normal file
0
Houdini/Handlers/Games/__init__.py
Normal file
@ -1,9 +1,14 @@
|
|||||||
from Houdini import Handlers
|
from Houdini import Handlers
|
||||||
from Houdini.Handlers import XMLPacket
|
from Houdini.Handlers import XMLPacket
|
||||||
from Houdini.Converters import CredentialsConverter
|
from Houdini.Converters import CredentialsConverter, VersionChkConverter
|
||||||
|
|
||||||
|
|
||||||
@Handlers.handler(XMLPacket('login'))
|
@Handlers.handler(XMLPacket('login'))
|
||||||
async def handle_login(p, credentials: CredentialsConverter):
|
async def handle_login(p, credentials: CredentialsConverter):
|
||||||
username, password = credentials
|
username, password = credentials
|
||||||
p.logger.info('{}:{} is logging in!'.format(username, password))
|
p.logger.info('{}:{} is logging in!'.format(username, password))
|
||||||
|
|
||||||
|
|
||||||
|
@Handlers.handler(XMLPacket('verChk'))
|
||||||
|
async def handle_version_check(p, version: VersionChkConverter):
|
||||||
|
p.logger.info('Version: {}'.format(version))
|
0
Houdini/Handlers/Login/World.py
Normal file
0
Houdini/Handlers/Login/World.py
Normal file
0
Houdini/Handlers/Play/Buddy.py
Normal file
0
Houdini/Handlers/Play/Buddy.py
Normal file
0
Houdini/Handlers/Play/EPF.py
Normal file
0
Houdini/Handlers/Play/EPF.py
Normal file
0
Houdini/Handlers/Play/Igloo.py
Normal file
0
Houdini/Handlers/Play/Igloo.py
Normal file
0
Houdini/Handlers/Play/Ignore.py
Normal file
0
Houdini/Handlers/Play/Ignore.py
Normal file
0
Houdini/Handlers/Play/Item.py
Normal file
0
Houdini/Handlers/Play/Item.py
Normal file
0
Houdini/Handlers/Play/Mail.py
Normal file
0
Houdini/Handlers/Play/Mail.py
Normal file
0
Houdini/Handlers/Play/Moderation.py
Normal file
0
Houdini/Handlers/Play/Moderation.py
Normal file
0
Houdini/Handlers/Play/Music.py
Normal file
0
Houdini/Handlers/Play/Music.py
Normal file
@ -1,12 +0,0 @@
|
|||||||
from Houdini.Handlers import Handlers, XTPacket
|
|
||||||
from Houdini.Converters import RoomConverter
|
|
||||||
|
|
||||||
|
|
||||||
@Handlers.handler(XTPacket('j', 'js'))
|
|
||||||
async def handle_join_world(p, is_moderator: bool, is_mascot: bool, is_member: bool):
|
|
||||||
print(p, is_moderator, is_mascot, is_member)
|
|
||||||
|
|
||||||
|
|
||||||
@Handlers.handler(XTPacket('j', 'jr'))
|
|
||||||
async def handle_join_room(p, room: RoomConverter):
|
|
||||||
print(room)
|
|
0
Houdini/Handlers/Play/Ninja.py
Normal file
0
Houdini/Handlers/Play/Ninja.py
Normal file
0
Houdini/Handlers/Play/Pet.py
Normal file
0
Houdini/Handlers/Play/Pet.py
Normal file
0
Houdini/Handlers/Play/Player.py
Normal file
0
Houdini/Handlers/Play/Player.py
Normal file
0
Houdini/Handlers/Play/Room.py
Normal file
0
Houdini/Handlers/Play/Room.py
Normal file
0
Houdini/Handlers/Play/Setting.py
Normal file
0
Houdini/Handlers/Play/Setting.py
Normal file
0
Houdini/Handlers/Play/Stampbook.py
Normal file
0
Houdini/Handlers/Play/Stampbook.py
Normal file
0
Houdini/Handlers/Play/Toy.py
Normal file
0
Houdini/Handlers/Play/Toy.py
Normal file
0
Houdini/Handlers/Redemption/__init__.py
Normal file
0
Houdini/Handlers/Redemption/__init__.py
Normal file
Loading…
Reference in New Issue
Block a user