Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Raikish |
Hi community.
I’m comming from Java and i want to knwo if GDscript supports something like HashMap.
HashMap it’s a class from java that allow us to add some value to a key array. And then you can find the value knowing the key. I found in C# is named Dictionary, It’s not the same but works similar.
HashMap<String, Number> map = new HashMap<>();
map.put("test", 30);
System.out.println(map.get("test")); // prints 30
Any help will be appreciated