All the structs have default methods (create, destroy, allocate...).
^ http://www.thehelper.net/forums/showthread.php?t=127853
then, If you have:
billy and john are the same struct, but each is unique and have an unique index number (wich you obtain with .allocate)
.allocate method gives the struct its unique instance number (when you reach the instance limit, it will return 0).
^ http://www.thehelper.net/forums/showthread.php?t=127853
then, If you have:
JASS:
local Data billy = Data.create(u1, u2)
local Data john = Data.create(u3, u4)
billy and john are the same struct, but each is unique and have an unique index number (wich you obtain with .allocate)