-
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
c8e0602
commit f382487
Showing
61 changed files
with
224 additions
and
229 deletions.
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 was deleted.
Oops, something went wrong.
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
4 changes: 2 additions & 2 deletions
4
Packets/Commands/Client/Buy_Token_Doubler.py → ...Client/LogicPurchaseDoubleCoinsCommand.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
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
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
4 changes: 2 additions & 2 deletions
4
Packets/Commands/Client/Select_Starpower.py → .../Client/LogicSetPlayerStarpowerCommand.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
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
2 changes: 1 addition & 1 deletion
2
...s/Commands/Server/Change_Name_Callback.py → ...ds/Server/LogicChangeAvatarNameCommand.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
This file was deleted.
Oops, something went wrong.
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,61 @@ | ||
from Utils.Reader import BSMessageReader | ||
from Packets.Commands.Client.LogicSetPlayerThumbnailCommand import LogicSetPlayerThumbnailCommand | ||
from Packets.Commands.Client.LogicSetPlayerNameColorCommand import LogicSetPlayerNameColorCommand | ||
from Packets.Commands.Client.LogicPurchaseBoxCommand import LogicPurchaseBoxCommand | ||
from Packets.Commands.Client.LogicPurchaseOfferCommand import LogicPurchaseOfferCommand | ||
from Packets.Commands.Client.LogicSelectSkinCommand import LogicSelectSkinCommand | ||
from Packets.Commands.Client.LogicSetPlayerStarpowerCommand import LogicSetPlayerStarpowerCommand | ||
from Packets.Commands.Client.LogicPurchaseHeroLvlUpMaterialCommand import LogicPurchaseHeroLvlUpMaterialCommand | ||
from Packets.Commands.Client.LogicPurchaseDoubleCoinsCommand import LogicPurchaseDoubleCoinsCommand | ||
|
||
|
||
|
||
class EndClientTurn(BSMessageReader): | ||
def __init__(self, client, player, initial_bytes): | ||
super().__init__(initial_bytes) | ||
self.client = client | ||
self.player = player | ||
|
||
def decode(self): | ||
self.read_Vint() | ||
self.read_Vint() | ||
self.read_Vint() | ||
self.read_Vint() | ||
self.commandID = self.read_Vint() | ||
|
||
|
||
def process(self): | ||
if self.commandID == 500 or self.commandID == 517 or self.commandID == 535: | ||
LogicPurchaseBoxCommand.decode(self) | ||
LogicPurchaseBoxCommand.process(self) | ||
|
||
elif self.commandID == 519: | ||
LogicPurchaseOfferCommand.decode(self) | ||
LogicPurchaseOfferCommand.process(self) | ||
|
||
elif self.commandID == 505: | ||
LogicSetPlayerThumbnailCommand.decode(self) | ||
LogicSetPlayerThumbnailCommand.process(self) | ||
|
||
elif self.commandID == 506: | ||
LogicSelectSkinCommand.decode(self) | ||
LogicSelectSkinCommand.process(self) | ||
|
||
elif self.commandID == 521: | ||
LogicPurchaseHeroLvlUpMaterialCommand.decode(self) | ||
LogicPurchaseHeroLvlUpMaterialCommand.process(self) | ||
|
||
elif self.commandID == 509: | ||
LogicPurchaseDoubleCoinsCommand.decode(self) | ||
LogicPurchaseDoubleCoinsCommand.process(self) | ||
|
||
elif self.commandID == 527: | ||
LogicSetPlayerNameColorCommand.decode(self) | ||
LogicSetPlayerNameColorCommand.process(self) | ||
|
||
elif self.commandID == 529: | ||
LogicSetPlayerStarpowerCommand.decode(self) | ||
LogicSetPlayerStarpowerCommand.process(self) | ||
|
||
elif self.commandID >= 0: | ||
print("Command ID", self.commandID, "is not handled!") |
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,44 @@ | ||
from Packets.Messages.Client.Login.ClientHelloMessage import ClientHelloMessage | ||
from Packets.Messages.Client.Login.LoginMessage import LoginMessage | ||
from Packets.Messages.Client.Alliance.ChatToAllianceStreamMessage import ChatToAllianceStreamMessage | ||
from Packets.Messages.Client.KeepAliveMessage import KeepAliveMessage | ||
from Packets.Messages.Client.Gameroom.TeamCreateMessage import TeamCreateMessage | ||
from Packets.Messages.Client.Battle.GoHomeFromOfflinePractiseMessage import GoHomeFromOfflinePractiseMessage | ||
from Packets.Messages.Client.Gameroom.TeamLeaveMessage import TeamLeaveMessage | ||
from Packets.Messages.Client.Home.AskProfileMessage import AskProfileMessage | ||
from Packets.Messages.Client.Alliance.AskForAllianceDataMessage import AskForAllianceDataMessage | ||
from Packets.Messages.Client.Gameroom.TeamSetLocationMessage import TeamSetLocationMessage | ||
from Packets.Messages.Client.Gameroom.TeamChangeMemberSettingsMessage import TeamChangeMemberSettingsMessage | ||
from Packets.Messages.Client.AnalyticsEventMessage import AnalyticsEventMessage | ||
from Packets.Messages.Client.Battle.AskForBattleEndMessage import AskForBattleEndMessage | ||
from Packets.Messages.Client.SetNameMessage import SetNameMessage | ||
from Packets.Messages.Client.Home.GetLeaderboardMessage import GetLeaderboardMessage | ||
from Packets.Messages.Client.Home.AvatarNameCheckRequestMessage import AvatarNameCheckRequestMessage | ||
from Packets.Messages.Client.Gameroom.TeamUseGadgetMessage import TeamUseGadgetMessage | ||
from Packets.Messages.Client.Gameroom.Do_Not_Distrub_Message import DoNotDistrubMessage | ||
from Packets.Messages.Client.Home.PlayerStatusMessage import PlayerStatusMessage | ||
from Packets.LogicCommandManager import EndClientTurn | ||
|
||
packets = { | ||
10100: ClientHelloMessage, | ||
10101: LoginMessage, | ||
10108: KeepAliveMessage, | ||
10110: AnalyticsEventMessage, | ||
10212: SetNameMessage, | ||
14102: EndClientTurn, | ||
14109: GoHomeFromOfflinePractiseMessage, | ||
14110: AskForBattleEndMessage, | ||
14113: AskProfileMessage, | ||
14403: GetLeaderboardMessage, | ||
14302: AskForAllianceDataMessage, | ||
14315: ChatToAllianceStreamMessage, | ||
14350: TeamCreateMessage, | ||
14353: TeamLeaveMessage, | ||
14363: TeamSetLocationMessage, | ||
14354: TeamChangeMemberSettingsMessage, | ||
14372: TeamUseGadgetMessage, | ||
14600: AvatarNameCheckRequestMessage, | ||
14366: PlayerStatusMessage, | ||
14777: DoNotDistrubMessage, | ||
|
||
} |
2 changes: 1 addition & 1 deletion
2
...Alliance/Ask_For_Alliance_Data_Message.py → ...ent/Alliance/AskForAllianceDataMessage.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
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
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
...sages/Client/Battle/Battle_End_Message.py → ...s/Client/Battle/AskForBattleEndMessage.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
Oops, something went wrong.