|
楼主 |
发表于 2008-7-26 21:35:31
|
显示全部楼层
哦,那就改为:这JASS是怎么用吧.
[codes=jass]function LocalVars takes nothing returns gamecache
if udg_Cache==null then
call FlushGameCache(InitGameCache("lzf"))
set udg_Cache=InitGameCache("lzf")
endif[/codes]
return udg_Cache
endfunction
//if udg_Cache==null then 这 udg_ 代表什么?用法怎么样的?后面的("lzf")是什么呦?
[codes=jass]function SetHandleInt takes handle h,string s,integer i returns nothing
if i==0 then
call FlushStoredInteger(LocalVars(),I2S(H2I(h)),s)
else
call StoreInteger(LocalVars(),I2S(H2I(h)),s,i)
endif
endfunction
function SetHandleReal takes handle h, string s,real r returns nothing
if r==0 then
call FlushStoredReal(LocalVars(),I2S(H2I(h)),s)
else
call StoreReal(LocalVars(),I2S(H2I(h)),s,r)
endif
endfunction
function GetHandleInt takes handle h ,string s returns integer
return GetStoredInteger(LocalVars(),I2S(H2I(h)),s)
endfunction
function GetHandleReal takes handle h,string s returns real
return GetStoredReal(LocalVars(),I2S(H2I(h)),s)
endfunction
[/codes]
//上面的return后面的那么长的E文,我怎么可能清楚是什么意思呦.问下是什么意思.跟前面所说的一样
//call后面的那些东西, |
|