Ok, so this is a shot in the dark but... Is there any way to overload the argument for multidimensional array access to take in custom arguments?
//normal array access
myArray[1][2];
//I have a class with two ints and do this
myArray[int2Var.x][int2Var.y];
//is there any way to overload the array arguments so I can do this to access a two dimensional array?
myArray[int2Var];
I am currently working in Java but I would also like to know if it is at all possible.