- Joined
- Aug 7, 2013
- Messages
- 1,338
Hi,
What is the standard data structure (in WC3 mapping) for doing binary recipes with order, i.e.
A + B = C
but B + A = D
I was thinking of using a 2-D array, and thus TableArray from Bribe's Table.
Note that the recipes are arbitrary, so it's impossible to generate the combinations automatically or via macro.
What is the standard data structure (in WC3 mapping) for doing binary recipes with order, i.e.
A + B = C
but B + A = D
I was thinking of using a 2-D array, and thus TableArray from Bribe's Table.
JASS:
TableArray twoD = TableArray[0x2000]
...
set twoD[A].integer[B] = C
set twoD[B].integer[A] = D
set twoD[X].integer[Y] = Z
set twoD[Y].integer[X] = Gamma
...
Note that the recipes are arbitrary, so it's impossible to generate the combinations automatically or via macro.