globals
private integer array data
private constant integer SIZE_INDEX = 15
endglobals
function Save2D takes integer index1, integer index2, integer int returns nothing
set data[index1 * SIZE_INDEX + index2] = int
endfunction
function Load2D takes integer index1, integer index2 returns integer
return data[index1 * SIZE_INDEX + index2]
endfunction