-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Broadcast and map scan improvements (#801)
* Allow broadcasting to more channels * Lamb sauce * Check for guild before broadcasting to guild * More helpful erroring * Catch broadcasts from new distro types * Only check channel name for the `CHANNEL` distro type * Cleanup * Housekeeping * Appease the great old one * Separate methods from distributions Would rather have broadcast methods be independent of the actual distribution type used for the transmission. The TRP3_BroadcastMethod enumeration that was really only intended for internal use has been moved to TRP3_API to signal it's now intended to be used elsewhere more publicly. The contents of the enum have changed to only include World, Guild, and Group options. These get mapped to appropriate comms channels by the broadcast code. The client feature flag for comms has been altered to just be a boolean for detecting channel support; as all the code that uses this feature was specifically just checking "is it a channel" it makes sense to just have that be a boolean flag. * Add additional checks for group membership As we're testing if the player is in a guild before sending on that channel, it makes sense to apply a similar check for group messages. We'll handle the downlevelling of RAID to PARTY manually as part of this - it simplifies the checks a bit and also gives us some insurance in case the underlying API one day stops redirecting RAID to PARTY for us. * Exclude headers on P2P messages * Scan for guild members only on shift-click This is temporary - probably gonna change this later on * Lamb sauce * Add guild-only scanner and rework local map scanners * Allow scanners to specify an override broadcastMethod * Clarifying comment on why securecall(error) * Rework message assembling Making it slightly more efficient and killing that boolean parameter that was just added, as well as improving error handling a bit and generally just making myself feel good. * Safely dispatch broadcast callbacks * Don't hard error on nil assemble returns * Remove comms tracking variables These have been historically inaccurate it seems - in send cases the header length is being duplicated on broadcast messages, and on P2P messages the header is being added despite no header being present. As nothing is using these - and there's better ways to measure comms bandwidth - will just nuke. * Remove seven parameter limit on messages Have a feeling this will awkwardly bite us one day if we find we want to add some extra data to an existing command and find every client on the network won't see the additional parameter... * Header before command * Guild member map scan strings * Hide guild member scan when not in a guild * yeet * Cleanup * Change icon for guild member scan * Update CanScan conditions for Classic --------- Co-authored-by: Daniel Yates <[email protected]>
- Loading branch information
1 parent
dff142f
commit 6268029
Showing
6 changed files
with
203 additions
and
109 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 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
Oops, something went wrong.