branchrust_reboot/main/hackweekmay26_sexier_setflagcancel
2 Commits over 0 Days - ∞cph!
Fix a bunch of SetFlag usages which were potentially doing multiple unnecessary SendNetworkUpdate invokes
Add a disposable struct to be able to define a scope in which we want to listen for flag changes and then do a network update at the end of the scope if flags changed
Update SetFlag to accept a specific update/send type. Makes it less easy to make the mistake of doing multiple send network updates in one go and allows for some neater one-line invokes
Added some SetFlags methods that accept multiple flag set arguments, allows setting multiple flag values in one go before doing a single send and avoids multiple invokes of OnFlagsChanged