Variables
With variables you can influence for example animations and sounds. When you try to get a variable which is not set, the variable will be initialized with its default value (for example 0 for numerical types).
// explicitly type the get_var functionlet my_int = i32::get_var("myVariableName");// explicitly type the bindinglet my_int: i32 = get_var("myVariableName");
// in case the variable type can be inferredlet my_int = get_var("myVariableName");
set_var("myVariableName", 42);