branchrust_reboot/main/facepunch_assertcancel
10 Commits over 0 Days - ∞cph!
Bug fixes, general cleanup
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
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!")