branchrust_reboot/main/facepunch_assertcancel

10 Commits over 0 Days - ∞cph!

5 Hours Ago
Merge fixes
5 Hours Ago
main -> facepunch_assert
5 Hours Ago
Bug fixes, general cleanup
6 Hours Ago
Assert throws exceptions Check wont print anything - just returns state
Helper methods for: Quickly checking if flags have changed between two flag sets Quickly checking if flags have changed between two flag sets Quickly checking if two entities are the same prefab (removes a bunch of GetEntity and prefabID checks) Quickly checking entity realm Quickly checking if item is in container Quickly checking if item is new
Bunch of jakes suggestions: Renaming Creation of a general Safety class which can check items and throw exceptions if specific issues come up Integrate item safety class Keep assert stuff here as well
main -> facepunch_assert
missed files
assembly definition if i end up convinced to pull this to main
Our own small assertion library. Supports everything you'd expect with minimal overhead. Minimal abstraction. Throws failed conditions in debug.logerror so we can actually use it on staging effectively. Allows us to do assertions on CLIENT/SERVER specifically - takes advantage of our symbols Eg: FAssert.ThatOnServer(test == 5, "Success!")