New answers tagged units
It's called a Hash data structure aka an associative array. It is often used to represent a sparse array. For instance like in your case, a huge world with myriads of tiles, that is sparsely occupied by only hundreds or thousands of units. It is very fast because it knows where to look for values (in your case units) with a certain key (in your case ...
Top 50 recent answers are included