- Joined
- Jul 10, 2007
- Messages
- 6,306
struct ListTest
there?static
,they aren't using the this
except method move
local unit u = CreateUnit(...)
local thistype this = GetUnitUserData(u)
local thistype node = add() //o-o, yes, I just added a node directly to the unit
method add takes nothing returns thistype
//allocate node
local thistype node = thistype(0).next
if (0 == node) then
set node = count + 1
set count = node
else
set thistype(0).next = node
endif