Skip to content

Reduce boiler plate code for bit sets, optimize it a bit as well - #139

Merged
marchc1 merged 9 commits into
SourceDotNET:mainfrom
ZehMatt:player-bitvec
Oct 8, 2026
Merged

marchc1 merged 9 commits into
SourceDotNET:mainfrom
ZehMatt:player-bitvec

Conversation

@ZehMatt

@ZehMatt ZehMatt commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

I renamed them from BitVec to BitSet, I know one can debate its essentially the same and it actually is but I prefer "set" when its just used to mark slots where a bit vector is typically referred to a value representation of N bits. Also I had to setup another source generator to get rid of that boiler plate code, really frustrating that in C# one can't just have using PlayerBitSet = BitSet<uint, 128>.

Also for the first time we finally have now some tests, so there will be now a test project in where we can expand everything we want tested.

@marchc1
marchc1 merged commit 8c6705f into SourceDotNET:main Oct 8, 2026
4 checks passed
@ZehMatt
ZehMatt deleted the player-bitvec branch October 8, 2026 06:23
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.

2 participants