Skip to content

Add optional group name to DeathLinkService#138

Open
nickdavies wants to merge 1 commit into
ArchipelagoMW:mainfrom
nickdavies:grouped-deathlink
Open

Add optional group name to DeathLinkService#138
nickdavies wants to merge 1 commit into
ArchipelagoMW:mainfrom
nickdavies:grouped-deathlink

Conversation

@nickdavies

Copy link
Copy Markdown

The "DeathLink" connection tag is hardcoded in send, receive-filter, enable, and disable, so world builders could not participate easily participate in in Grouped DeathLink (per-group death pools). Eg DeadCells Custom world switched to making their own. Add an optional group name, exposed via a new CreateDeathLinkService(session, group) overload, that suffixes the tag ("DeathLink" + group).

A null or empty group leaves the tag exactly "DeathLink", so existing clients and the default pool are backward compatible. The existing no-arg overload and all public method signatures are untouched.

Let me know if this isn't a feature you want to make mainline but I was hoping to use this in KSP 1. If you are happy with this approach I can test it out on my custom world before merging

NOTE: I did use AI to generate the test cases but I read them and they seem reasonable.

The "DeathLink" connection tag was hardcoded in send, receive-filter, enable, and disable,
so clients could not participate in Grouped DeathLink (per-group death pools).
Add an optional group name, exposed via a new CreateDeathLinkService(session, group) overload, that suffixes the tag ("DeathLink" + group).

A null or empty group leaves the tag exactly "DeathLink", so existing clients and the default pool are backward compatible. The existing no-arg overload and all public method signatures are untouched.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant