Edit of asset "Godot Optional" Accepted
Old/Current | New/Edit | |
---|---|---|
Title | Godot Optional | Godot Optional |
Description |
Introduces to Godot types inspired by the Rust programming language. - Option explicitly denotes that a value can be a null and must be handled - Result explicitly denotes that an operation can fail and must be handled - Custom Errors that carry with them details about the exception, including a cause and display message! It also acts as a place to have a centralized list of errors specific to your application, as GlobalScope.Error doesn't cover most cases. - TimedVars that keep track of when they were created, and can delete themselves after a set amount of time. - Enum structs (experimental): Enums that aren't just integers, but also carry user defined data with them! Good for state handling! Examples, documentation, and playground (see examples/misc) also included! PRs are welcome!! |
Introduces to Godot types inspired by the Rust programming language. - Option explicitly denotes that a value can be a null and must be handled - Result explicitly denotes that an operation can fail and must be handled - Custom Errors carry with them details about the exception, leading to better error handling! It also acts as a place to have a centralized list of errors specific to your application, as @GlobalScope.Error doesn't cover most cases. |
Category | Scripts | Tools |
License | MIT | MIT |
Repository Provider | GitHub | GitHub |
Repository Url | https://github.com/WhoStoleMyCoffee/godot-optional | https://github.com/WhoStoleMyCoffee/godot-optional |
Issues Url | https://github.com/WhoStoleMyCoffee/godot-optional/issues | https://github.com/WhoStoleMyCoffee/godot-optional/issues |
Godot version | Godot 4.2 | Godot 4.1 |
Version String | 3.0 | 1.0 |
Download Commit | 5ae3ca920e8d91d5604b530cf2e3e1650f0d35e2 | 01a892244e5f26a0edda4c9ca4818ef22b584223 |
Download Url (Computed) | https://github.com/WhoStoleMyCoffee/godot-optional/archive/5ae3ca920e8d91d5604b530cf2e3e1650f0d35e2.zip | https://github.com/WhoStoleMyCoffee/godot-optional/archive/01a892244e5f26a0edda4c9ca4818ef22b584223.zip |
Icon Url |
https://raw.githubusercontent.com/WhoStoleMyCoffee/godot-optional/main/icon.png
|
https://raw.githubusercontent.com/WhoStoleMyCoffee/godot-optional/main/icon.png
|
Preview Insert | ||
---|---|---|
Type | image | |
Image/Video URL |
https://raw.githubusercontent.com/WhoStoleMyCoffee/godot-optional/main/screenshots/example_attack.png
|
|
Thumbnail |
|
Preview Insert | ||
---|---|---|
Type | image | |
Image/Video URL |
https://raw.githubusercontent.com/WhoStoleMyCoffee/godot-optional/main/screenshots/example_file.png
|
|
Thumbnail |
|
Preview Insert | ||
---|---|---|
Type | image | |
Image/Video URL |
https://raw.githubusercontent.com/WhoStoleMyCoffee/godot-optional/main/screenshots/example_custom_errors.png
|
|
Thumbnail |
|