Zum Inhalt springen

Variables

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

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 function
let my_int = i32::get_var("myVariableName");
set_var("myVariableName", 42);