From cf1c41ecd8dedc6f6dccedf8b24f6a0e7e69158c Mon Sep 17 00:00:00 2001 From: Ben Date: Thu, 25 Apr 2019 17:30:59 +0100 Subject: [PATCH] Placeholder packages for game handlers --- Houdini/Handlers/Games/Dance.py | 0 Houdini/Handlers/Games/FindFour.py | 0 Houdini/Handlers/Games/Mancala.py | 0 Houdini/Handlers/Games/MatchMaking.py | 0 Houdini/Handlers/Games/Ninja/CardFire.py | 0 Houdini/Handlers/Games/Ninja/CardJitsu.py | 0 Houdini/Handlers/Games/Ninja/CardWater.py | 0 Houdini/Handlers/Games/Ninja/__init__.py | 0 Houdini/Handlers/Games/SledRace.py | 0 Houdini/Handlers/Games/TreasureHunt.py | 0 Houdini/Handlers/Games/__init__.py | 0 Houdini/Handlers/Login/Login.py | 7 ++++++- Houdini/Handlers/Login/World.py | 0 Houdini/Handlers/Play/Buddy.py | 0 Houdini/Handlers/Play/EPF.py | 0 Houdini/Handlers/Play/Igloo.py | 0 Houdini/Handlers/Play/Ignore.py | 0 Houdini/Handlers/Play/Item.py | 0 Houdini/Handlers/Play/Mail.py | 0 Houdini/Handlers/Play/Moderation.py | 0 Houdini/Handlers/Play/Music.py | 0 Houdini/Handlers/Play/Navigation.py | 12 ------------ Houdini/Handlers/Play/Ninja.py | 0 Houdini/Handlers/Play/Pet.py | 0 Houdini/Handlers/Play/Player.py | 0 Houdini/Handlers/Play/Room.py | 0 Houdini/Handlers/Play/Setting.py | 0 Houdini/Handlers/Play/Stampbook.py | 0 Houdini/Handlers/Play/Toy.py | 0 Houdini/Handlers/Redemption/__init__.py | 0 30 files changed, 6 insertions(+), 13 deletions(-) create mode 100644 Houdini/Handlers/Games/Dance.py create mode 100644 Houdini/Handlers/Games/FindFour.py create mode 100644 Houdini/Handlers/Games/Mancala.py create mode 100644 Houdini/Handlers/Games/MatchMaking.py create mode 100644 Houdini/Handlers/Games/Ninja/CardFire.py create mode 100644 Houdini/Handlers/Games/Ninja/CardJitsu.py create mode 100644 Houdini/Handlers/Games/Ninja/CardWater.py create mode 100644 Houdini/Handlers/Games/Ninja/__init__.py create mode 100644 Houdini/Handlers/Games/SledRace.py create mode 100644 Houdini/Handlers/Games/TreasureHunt.py create mode 100644 Houdini/Handlers/Games/__init__.py create mode 100644 Houdini/Handlers/Login/World.py create mode 100644 Houdini/Handlers/Play/Buddy.py create mode 100644 Houdini/Handlers/Play/EPF.py create mode 100644 Houdini/Handlers/Play/Igloo.py create mode 100644 Houdini/Handlers/Play/Ignore.py create mode 100644 Houdini/Handlers/Play/Item.py create mode 100644 Houdini/Handlers/Play/Mail.py create mode 100644 Houdini/Handlers/Play/Moderation.py create mode 100644 Houdini/Handlers/Play/Music.py create mode 100644 Houdini/Handlers/Play/Ninja.py create mode 100644 Houdini/Handlers/Play/Pet.py create mode 100644 Houdini/Handlers/Play/Player.py create mode 100644 Houdini/Handlers/Play/Room.py create mode 100644 Houdini/Handlers/Play/Setting.py create mode 100644 Houdini/Handlers/Play/Stampbook.py create mode 100644 Houdini/Handlers/Play/Toy.py create mode 100644 Houdini/Handlers/Redemption/__init__.py diff --git a/Houdini/Handlers/Games/Dance.py b/Houdini/Handlers/Games/Dance.py new file mode 100644 index 0000000..e69de29 diff --git a/Houdini/Handlers/Games/FindFour.py b/Houdini/Handlers/Games/FindFour.py new file mode 100644 index 0000000..e69de29 diff --git a/Houdini/Handlers/Games/Mancala.py b/Houdini/Handlers/Games/Mancala.py new file mode 100644 index 0000000..e69de29 diff --git a/Houdini/Handlers/Games/MatchMaking.py b/Houdini/Handlers/Games/MatchMaking.py new file mode 100644 index 0000000..e69de29 diff --git a/Houdini/Handlers/Games/Ninja/CardFire.py b/Houdini/Handlers/Games/Ninja/CardFire.py new file mode 100644 index 0000000..e69de29 diff --git a/Houdini/Handlers/Games/Ninja/CardJitsu.py b/Houdini/Handlers/Games/Ninja/CardJitsu.py new file mode 100644 index 0000000..e69de29 diff --git a/Houdini/Handlers/Games/Ninja/CardWater.py b/Houdini/Handlers/Games/Ninja/CardWater.py new file mode 100644 index 0000000..e69de29 diff --git a/Houdini/Handlers/Games/Ninja/__init__.py b/Houdini/Handlers/Games/Ninja/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/Houdini/Handlers/Games/SledRace.py b/Houdini/Handlers/Games/SledRace.py new file mode 100644 index 0000000..e69de29 diff --git a/Houdini/Handlers/Games/TreasureHunt.py b/Houdini/Handlers/Games/TreasureHunt.py new file mode 100644 index 0000000..e69de29 diff --git a/Houdini/Handlers/Games/__init__.py b/Houdini/Handlers/Games/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/Houdini/Handlers/Login/Login.py b/Houdini/Handlers/Login/Login.py index 5b46bcf..8103d6f 100644 --- a/Houdini/Handlers/Login/Login.py +++ b/Houdini/Handlers/Login/Login.py @@ -1,9 +1,14 @@ from Houdini import Handlers from Houdini.Handlers import XMLPacket -from Houdini.Converters import CredentialsConverter +from Houdini.Converters import CredentialsConverter, VersionChkConverter @Handlers.handler(XMLPacket('login')) async def handle_login(p, credentials: CredentialsConverter): username, password = credentials 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)) \ No newline at end of file diff --git a/Houdini/Handlers/Login/World.py b/Houdini/Handlers/Login/World.py new file mode 100644 index 0000000..e69de29 diff --git a/Houdini/Handlers/Play/Buddy.py b/Houdini/Handlers/Play/Buddy.py new file mode 100644 index 0000000..e69de29 diff --git a/Houdini/Handlers/Play/EPF.py b/Houdini/Handlers/Play/EPF.py new file mode 100644 index 0000000..e69de29 diff --git a/Houdini/Handlers/Play/Igloo.py b/Houdini/Handlers/Play/Igloo.py new file mode 100644 index 0000000..e69de29 diff --git a/Houdini/Handlers/Play/Ignore.py b/Houdini/Handlers/Play/Ignore.py new file mode 100644 index 0000000..e69de29 diff --git a/Houdini/Handlers/Play/Item.py b/Houdini/Handlers/Play/Item.py new file mode 100644 index 0000000..e69de29 diff --git a/Houdini/Handlers/Play/Mail.py b/Houdini/Handlers/Play/Mail.py new file mode 100644 index 0000000..e69de29 diff --git a/Houdini/Handlers/Play/Moderation.py b/Houdini/Handlers/Play/Moderation.py new file mode 100644 index 0000000..e69de29 diff --git a/Houdini/Handlers/Play/Music.py b/Houdini/Handlers/Play/Music.py new file mode 100644 index 0000000..e69de29 diff --git a/Houdini/Handlers/Play/Navigation.py b/Houdini/Handlers/Play/Navigation.py index 43ca83b..e69de29 100644 --- a/Houdini/Handlers/Play/Navigation.py +++ b/Houdini/Handlers/Play/Navigation.py @@ -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) diff --git a/Houdini/Handlers/Play/Ninja.py b/Houdini/Handlers/Play/Ninja.py new file mode 100644 index 0000000..e69de29 diff --git a/Houdini/Handlers/Play/Pet.py b/Houdini/Handlers/Play/Pet.py new file mode 100644 index 0000000..e69de29 diff --git a/Houdini/Handlers/Play/Player.py b/Houdini/Handlers/Play/Player.py new file mode 100644 index 0000000..e69de29 diff --git a/Houdini/Handlers/Play/Room.py b/Houdini/Handlers/Play/Room.py new file mode 100644 index 0000000..e69de29 diff --git a/Houdini/Handlers/Play/Setting.py b/Houdini/Handlers/Play/Setting.py new file mode 100644 index 0000000..e69de29 diff --git a/Houdini/Handlers/Play/Stampbook.py b/Houdini/Handlers/Play/Stampbook.py new file mode 100644 index 0000000..e69de29 diff --git a/Houdini/Handlers/Play/Toy.py b/Houdini/Handlers/Play/Toy.py new file mode 100644 index 0000000..e69de29 diff --git a/Houdini/Handlers/Redemption/__init__.py b/Houdini/Handlers/Redemption/__init__.py new file mode 100644 index 0000000..e69de29