-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c4a6dd9
commit 88bc2ff
Showing
4 changed files
with
59 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from Packets.Messages.Server.Battle.Match_Making_Cancelled_Message import MatchMakingCancelledMessage | ||
|
||
|
||
from Utils.Reader import BSMessageReader | ||
|
||
|
||
class PlayerStatusMessage(BSMessageReader): | ||
def __init__(self, client, player, initial_bytes): | ||
super().__init__(initial_bytes) | ||
self.player = player | ||
self.client = client | ||
|
||
|
||
def decode(self): | ||
self.status = self.read_Vint() | ||
|
||
|
||
def process(self): | ||
if self.status == 4 or self.status == 12: | ||
MatchMakingCancelledMessage(self.client, self.player).send() | ||
|
16 changes: 16 additions & 0 deletions
16
Packets/Messages/Server/Battle/Match_Making_Cancelled_Message.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from Utils.Writer import Writer | ||
from Database.DataBase import DataBase | ||
|
||
class MatchMakingCancelledMessage(Writer): | ||
|
||
def __init__(self, client, player): | ||
super().__init__(client) | ||
self.id = 20406 | ||
self.player = player | ||
|
||
|
||
def encode(self): | ||
pass | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,20 @@ | ||
{"Gems": 99999, "Gold": 99999, "Tickets": 99999, "Starpoints": 99999, "BrawlBoxTokens": 5000, "BigBoxTokens": 5000, "Trophies": 5000, "BrawlerTrophies": 500, "BrawlerTrophiesForRank": 500, "BrawlerPowerLevel": 8, "BrawlerUpgradePoints": 0, "ThemeID": 11, "ShowPacketsInLog": false, "Maintenance": false, "MaintenanceTime": 3600, "Patch": false, "PatchUrl": "http://192.168.0.103:8080/", "UpdateUrl": "https://github.com/PhoenixFire6879/Classic-Brawl"} | ||
{ | ||
"Gems": 99999, | ||
"Gold": 99999, | ||
"Tickets": 99999, | ||
"Starpoints": 99999, | ||
"BrawlBoxTokens": 5000, | ||
"BigBoxTokens": 5000, | ||
"Trophies": 5000, | ||
"BrawlerTrophies": 500, | ||
"BrawlerTrophiesForRank": 500, | ||
"BrawlerPowerLevel": 8, | ||
"BrawlerUpgradePoints": 0, | ||
"ThemeID": 11, | ||
"ShowPacketsInLog": false, | ||
"Maintenance": false, | ||
"MaintenanceTime": 3600, | ||
"Patch": false, | ||
"PatchUrl": "http://192.168.0.103:8080/", | ||
"UpdateUrl": "https://github.com/PhoenixFire6879/Classic-Brawl" | ||
} |