Skip to content

Add support for entity SIDs in entity container whitelists/blacklists#55

Open
earthwise01 wants to merge 1 commit intoCommunalHelper:devfrom
earthwise01:allow-entity-sids
Open

Add support for entity SIDs in entity container whitelists/blacklists#55
earthwise01 wants to merge 1 commit intoCommunalHelper:devfrom
earthwise01:allow-entity-sids

Conversation

@earthwise01
Copy link
Copy Markdown

Currently, entity containers store their whitelist/blacklist as List<Tuple<string, int>>s of pairs of short type names and specific indices of that type inside the container to affect.

This PR reworks them to use Dictionary<string, HashSet<int>>s instead to hopefully improve performance for longer lists, and to use Entity.SourceData.Name/EntityRegistry.GetKnownSidsFromType to check for the SIDs of entities along with their short type names.

The attachTo field of attached containers has also been updated to support entity SIDs, and all Lönn plugins/tooltips have been updated accordingly.

@earthwise01 earthwise01 changed the title Add support for entity SIDs in entity container whitelists/blacklists. Add support for entity SIDs in entity container whitelists/blacklists Apr 7, 2026
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