找回密码
 点一下
查看: 971|回复: 2

这些什么意思啊

[复制链接]
发表于 2010-9-14 19:23:06 | 显示全部楼层 |阅读模式
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
发表于 2010-9-14 21:43:54 | 显示全部楼层
好像是jass吧...
回复

使用道具 举报

发表于 2010-9-15 07:09:13 | 显示全部楼层
1.24的兼容修改,1.20版本升级上来的图就这样
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 点一下

本版积分规则

Archiver|移动端|小黑屋|地精研究院

GMT+8, 2024-11-25 04:19 , Processed in 0.031480 second(s), 18 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表