|
DOTA里看到的
function H2I takes handle h returns integer
return GetHandleId( h )
endfunction
function GetUnit takes handle table,string s returns unit
return LoadUnitHandle(udg_TragedyGC,H2I(table),StringHash(s))
endfunction
function GetTexttag takes handle table,string s returns texttag
return LoadTextTagHandle(udg_TragedyGC,H2I(table),StringHash(s))
endfunction
function GetLightning takes handle table,string s returns lightning
return LoadLightningHandle(udg_TragedyGC,H2I(table),StringHash(s))
endfunction
function GetEffect takes handle table,string s returns effect
return LoadEffectHandle(udg_TragedyGC,H2I(table),StringHash(s))
endfunction
function GetItem takes handle table,string s returns item
return LoadItemHandle(udg_TragedyGC,H2I(table),StringHash(s))
endfunction
function GetTrigger takes handle table,string s returns trigger
return LoadTriggerHandle(udg_TragedyGC,H2I(table),StringHash(s))
endfunction
function GetTriggerAction takes handle table,string s returns triggeraction
return LoadTriggerActionHandle(udg_TragedyGC,H2I(table),StringHash(s))
endfunction
function GetInteger takes handle table,string s returns integer
return LoadInteger(udg_TragedyGC,H2I(table),StringHash(s))
endfunction
function GetReal takes handle table,string s returns real
return LoadReal(udg_TragedyGC,H2I(table),StringHash(s))
endfunction
function GetGroup takes handle table,string s returns group
return LoadGroupHandle(udg_TragedyGC,H2I(table),StringHash(s))
endfunction
function SetHandle takes handle t,string s, unit h returns nothing
call SaveUnitHandle(udg_TragedyGC,H2I(t),StringHash(s),h)
endfunction
function SetTexttag takes handle t,string s, texttag h returns nothing
call SaveTextTagHandle(udg_TragedyGC,H2I(t),StringHash(s),h)
endfunction
function SetTrigger takes handle t,string s, trigger h returns nothing
call SaveTriggerHandle(udg_TragedyGC,H2I(t),StringHash(s),h)
endfunction
function SetItem takes handle t,string s, item h returns nothing
call SaveItemHandle(udg_TragedyGC,H2I(t),StringHash(s),h)
endfunction
function SetGroup takes handle t,string s, group h returns nothing
call SaveGroupHandle(udg_TragedyGC,H2I(t),StringHash(s),h)
endfunction
function SetLightning takes handle t,string s, lightning h returns nothing
call SaveLightningHandle(udg_TragedyGC,H2I(t),StringHash(s),h)
endfunction
function SetEffect takes handle t,string s, effect h returns nothing
call SaveEffectHandle(udg_TragedyGC,H2I(t),StringHash(s),h)
endfunction
function SetInteger takes handle table,string s, integer i returns nothing
call SaveInteger(udg_TragedyGC,H2I(table),StringHash(s),i)
endfunction
function SetReal takes handle table,string s, real r returns nothing
call SaveReal(udg_TragedyGC,H2I(table),StringHash(s),r)
endfunction
function SetTriggerAction takes handle table,string s, triggeraction h returns nothing
call SaveTriggerActionHandle(udg_TragedyGC,H2I(table),StringHash(s),h)
endfunction |
|