-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add trade request functionality to GameNetwork
- Implemented the `requestTrade` method in `GameNetwork` to facilitate sending trade requests between players. - The trade request now includes the trade offer details and the responder player's ID. - Added the "game-client:requestTrade" event emission to handle the trade request data. - Updated UI interactions to handle incoming trade requests, allowing players to accept or reject the trades. - Integrated trade response handling to notify the server of the player's decision.
- Loading branch information
Showing
1 changed file
with
70 additions
and
4 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