OpenDream icon indicating copy to clipboard operation
OpenDream copied to clipboard

Adds `MustGetValueAs[Type]()`

Open ike709 opened this issue 3 years ago • 0 comments

Yes these are essentially the same thing as GetValueAs[Type](), but converting them guarantees that they're being audited and converted to the Try variant as-needed. Plus IMO the name makes it clearer that it'll throw if it fails.

In this PR I also convert various GetValueAs[Type]() usages until I lost interest.

May conflict with https://github.com/OpenDreamProject/OpenDream/pull/873 but I'm fine with that getting merged first and me fixing any conflicts in this PR.

ike709 avatar Oct 28 '22 00:10 ike709