We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently to load vanguard/boot.lua we have to perform this song and dance:
vanguard/boot.lua
const Resource::Type *script_resource_type = resource_manager::type_from_name("script"); const Resource::Type::Id script_resource_type_id = resource_manager::id_from_type(script_resource_type); const Resource::Id script_resource_id = Resource::id_from_type_and_name(script_resource_type_id, "vanguard/boot"); ScriptResource *script_resource = (ScriptResource *)resource_manager::load(script_resource_id); while (script_resource->state() != Resource::LOADED);
We should simplify it to something like:
ScriptResource *script_resource = resource_manager::load<ScriptResource *>("vanguard/boot"); while (script_resource->state() != Resource::LOADED);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently to load
vanguard/boot.lua
we have to perform this song and dance:We should simplify it to something like:
The text was updated successfully, but these errors were encountered: