//全局函数 也挺多,主要查看了 Lua部分函数和发现了 使用了另外一个LGPL协议的7zip压缩
软件的代码, 学会了如何让Lua C++协同工作。
//实际对象名就是 类的对象, 因为类是说明,而真正运行的时对象。
// 全局函数推测
add_s
addinfo - 添加信息
addk
adjust_assign
adjust_varargs
adjustlocalvars
adjuststack - 调整堆栈
arrayindex - 数组索引
assignment
aux_close
aux_do
aux_getfenv
aux_lines
aux_upvalue
auxgetinfo
auxresume
auxsort
auxupvalue
AddPlayerToRoster - 添加玩家到名册
AddWorldIcon - 添加世界图标
AddWorldText - 添加世界文本
AddWorldUnit - 添加单位到世界
AIException - AI异常
AlliedUnit - 单位结盟
AreMethodsEqual - 方法是否相等?
ArePlayersAllied - 玩加是否结盟
AreTeamsAllied - 队伍是否结盟
Arith
base_open
block
block_follow
body
boolString - 是否字符串?
breakstat
buildop
BoolToString - Bool转字符串
BoxPlaneVerts - 盒子平面顶点
calculateActualSize - 计算实际大小
calculateReportedAddrres - 计算报告地址
calculateReportedSize - 计算报告大小
call_binTM -
call_orderTM
callalert - 调用警告
callallgcTM - 调用所有gcTM
callrethooks
callTM
callTMres
capture_to_close
check
check_capture - 检测捕获
check_conflict - 检测冲突
check_match
checkblock
checkint - 检测整数
checkname - 检测名字
checkopenop
checkPK
checkstacksizes - 检测栈大小
checkSizes - 检测大小
chunk
cleartablekeys - 清理表关键字
cleartablevalues - 清理表值
close_func - 关闭函数
close_state - 关闭状态
code_label - 代码标签
code_params -
codeinop -
codenot
codestring - 代码字符串
computesizes - 计算大小
cond -
constructor - 构造函数
coresume -
correctstack
count_bits_set - 计算位设置
crashCallback - 碰撞回调
create_local - 本地创建
createmeta
currentline
currentpc
CalcBeizer
CanDamage
CheckCustomCmdMods
CheckParseErrors
ClearMatrixStack
ClosestPointOnLine
CompareAllies
CompareBasics
ComparePlayerCPUs
ComparePlayerNames
ComparePlayerPings
CompareProjDist
CompareTatex2
CompareTeamIDs
CrcCalculateDigest
CrcGetDigest
CrcInit
CrcUpdate
CrcUpdateByte
CrcsUpdateUInt16
CrcUpdateUInt32
CrcUpdateUInt64
CrcVerifyDigest
CUnitKilledCB
d2s
debug
debug_realloc
default_panic
defSurfaceCircle
discharge2anyreg
discharge2reg
do1gcTM
doCleanupLogOnFirstRun
doonnewstack
doremote
dumpAllocations
dumpLeakReport
DrawAlphaTest - 绘制Alpha测试
DrawBlending - 绘制混合
DrawBoxShape - 绘制盒子图形
DrawClear - 清理
DrawColor - 绘制颜色
DrawCornerPosts - 绘制
DrawCulling - 绘制Culling
DrawCylinderShape - 绘制圆柱图形
DrawDepthMask - 绘制深度掩码
DrawDepthTest - 绘制深度测试
DrawFreeTexture - 绘制自由纹理
DrawGetTextWidth - 绘制文本宽度
DrawGrid - 绘制网格
DrawInMap2D - 绘制2D图
DrawLighting - 绘制光线
DrawLineStipple - 绘制点线
DrawLineWidth - 绘制线宽
DrawListCreate - 创建列表绘制
DrawListDelete - 删除列表
DrawListRun - 调用列表
DrawLoadIdentity - 单位矩阵
DrawLogicOp -
DrawMaterial - 材质
DrawMatrixMode - 设置矩阵模式
DrawMinMaxBox - 绘制最小和最大盒子
DrawPointSize - 绘制点大小
DrawPolygonMode - 绘制多边形模式
DrawPolygonOffset - 多边形偏离
DrawPopMatrix - 弹出矩阵
DrawPushMatrix - 压入矩阵
DrawResetMatrices - 重置矩阵
DrawResetState - 重置状态
DrawRotate - 旋转矩阵
DrawScale - 缩放矩阵
DrawScissor - 削减
DrawScreenGeometry - 屏幕几何
DrawSensorRange - 绘制传感器范围
DrawShadeModel - 设置着色模式
DrawShape - 绘制图形
DrawText - 绘制文本
DrawTexture - 绘制纹理
DrawTranslate - 平移矩阵
DrawUnitDef - 绘制单位模块
DrawVertexA - 绘制顶点
DrawVolume - 绘制卷积???
DumpBlock
DumpByte
DumpCode
DumpConstants
DumpFunction
DumpHeader
DumpInt
DumpLines
DumpLocals
DumpNumber
DumpSize
DumpString
DumpUpvalues
emptybuffer
end_capture
enterblock
errfile
error_expected
errorfb
exp1
explist1
expr
exprstat
ezgetc
ezread
ErrorMessageBox
f_call
f_Ccall
f_flush
f_lines
f_luaopen
f_parser
f_read
f_seek
f_write
fim
findAllocUnit
floatString
forbody
forlist
fornum
forstat
freeblock
freeexp
freeobj
freereg
freestack
freestate
fRand
funcargs
funcinfo
funcname
funcstat
FileIOComplete
FindCornerText
FindFiles
FindUnit
FloatToSmallString
FloatToString
FullScreenDraw
g_iofile
g_read
g_write
get_compTM
get_executable_name
get_limits
getbinopr
getboolfield
getfield
getfunc
getfuncname
getF
gethook
getHooks
getinfo
getinfile
getjumpcontrol
getlocal
getluaproto
getname_aux
getnum_aux
getobjname
getpath
getref
getsizes
getS
getunopr
getupvalue
gfind
gfind_aux
glBalllisticCircle
glClearErrors
glColorf3
glNormalf3
glSafeDeleteProgram
glTranslatef3
glVertexf3
good_fpu_contrl_registers
GameServerThreadProc
GetActionHotKeys
GetActiveCommand
GetAllyTeamList
GetCameraPos
GetCameraState
GetCameraVectors
GetCategoryTable
GetCategoryTableFromBits
GetCategoryTableFromString
GetCommandQueue
GetConfigInit
GetConfigString
GetCurrentTooltip
GetDefaultCommand
GetDirList
GetDirListVFS
GetFPS
GetFullBuildQueue
GetGroundHeight
GetGroupAIList
GetGroupAIName
GetGroupList
GetGroupUnits
GetGroupUnitsCounts
GetGroupUnitsSorted
GetHAndPFromVector
GetHeadingFromVector
GetInputHeadingFromVector
GetInputReceivers
GetKeyBindings
GetKeyCode
GetKeyState
GetKeySymbol
GetLastFrameSeconds
GetModKeyState
GetMouseCursor
GetMouseState
GetMyAllyTeamID
GetMyPlayerID
GetMyTeamID
GetPlayerInfo
GetPlayerRoster
GetPressedKeys
GetRealBuildQueue
GetSearchOffsetTable
GetSelectedGroup
GetSelectedUnits
GetSelectedUnitsCounts
GetSelectedUnitsSorted
GetTeamInfo
GetTeamList
GetTeamResources - 获取团队资源
GetTeamUnits - 获取团队单位
GetTeamUnitsCounts - 获取团队单位数
GetTeamUnitsSorted - 获取团队单位种类
GetTeamUnitStats - 获取团队单位状态
GetUnitAllyTeam - 单位队伍结盟
GetUnitBuildFacing - 单位构造面
GetUnitDefDemensions - 获取单位模块尺度
GetUnitDefID - 获取单位模块ID
GetUnitExperience - 获取单位经验
GetUnitHeading - 单位标题
GetUnitHealth - 单位生命
GetUnitPosition - 单位位置
GetUnitRadius - 单位半径
GetUnitResources - 单位资源
GetUnitInBox - 单位在盒子里
GetUnitsInCylinder - 单位在圆柱内
GetUnitsInPlanes - 单位在平面内
GetUnitStatus - 获取单位状态
GetUnitStockpile - 单位存储
GetUnitTeam - 获取单位团队
GetVectorFromHAndPExact -
GetVectorFromHeading -
GetVertexArray - 获取向量数组
GiveOrder - 获取
GiveOrderToUnit - 从单位获取命令
GrassSort - 草种类
GrassSortNear - 附近草种类
hash_query - 询问hash表
hashnum - hash数
hookf -
ifstat
inclinenumber - 倾斜数
indexupvalue - 索引向上增长
info_tailcall - 尾巴调用信息
init_exp - 初始化经验
insertCommas - 插入逗号
instantiate_fb
int2fb_aux
invertjump
io_clock - IO时钟
io_close - IO关闭
io_date - IO日期
io_difftime - IO时间差?
io_execute - IO执行
io_exit - IO退出
io_flush - IO刷新
io_gc -
io_getenv
io_input - IO输入
io_lines - IO行
io_open
io_output
io_popen
io_read
io_readline
io_remove
io_renmae
io_setloc
io_time
io_tmpfile
io_tmpname
io_tostring
io_type
io_write
isinstack
InitColor - 初始化颜色
InitCrsTable
InitExtension - 初始化扩展
InterpolateLos - 插值计算Los???
IntToString - 整数转为字符传
IsBetterLeader -
IsFakeError - 欺骗错误
IsUnitInView - 单位在视口内
IsValidDstMode
IsValidSrcMode
jumponcond
kname
l_panic
lastlistfield - 最后列表片
leaveblock - 剩下块
listcode
listfield
listk
listlocals
__llrintf
__llroundf
lmemfind
load_aux
loeadlib
localfunc
localstat
log
log2_aux
lookahead
__lrintf
__lroundf
lua_atpanic - 设置一个恐慌函数
lua_call - 调用一个函数
lua_checkstack - 检测栈
lua_close - 销毁指定Lua状态机中的所有对象
lua_concat
lua_cpcall
lua_dobuffer
lua_dofile
lua_dostring
lua_dump
lua_equal
lua_error - 产生一个Lua错误。错误信息
lua_getfenv - 把索引处值的环境表压入堆栈
lua_getgccount
lua_getgcthreshold
lua_gethook
lua_gethookcount
lua_gethookmask
lua_getinfo
lua_getlocal
lua_getmetatable - 把指定索引指向的值的元表压入堆栈。
lua_getstack
lua_gettable - 把t[k]值压入堆栈。
lua_gettop - 返回栈顶元素索引
lua_getupvalue
lua_insert
lua_iscfunction
lua_isnumber
lua_isstring
lua_isuserdata
lua_lessthan
lua_load
lua_newtable
lua_newthread
lua_newuserdata
lua_next
lua_open
lua_pcall
lua_pushboolean
lua_pushcclosure
lua_pushfstring
lua_pushlightuserdata
lua_pushlstring
lua_pushnil
lua_pushnumber
lua_pushstring
lua_pushupvalues
lua_pushvalue
lua_pushvfstring
lua_rawequal
lua_rawget
lua_rawgeti
lua_rawset
lua_rawseti
lua_remove
lua_replace
lua_resume
lua_setfenv
lua_setgcthreshold
lua_sethook
lua_setlocal
lua_setmetatable
lua_settable
lua_settop
lua_setupvalue
lua_strlen
lua_toboolean
lua_tocfunction
lua_tonumber
lua_topointer
lua_tostring
lua_tothread
lua_touserdata
lua_type
lua_typename
lua_version
lua_xmove
lua_yield
luaA_index
luaA_indexAcceptable
luaA_pushobject
luaB_assert
luaB_auxwrap
luaB_cocreate
luaB_collectgarbage
luaB_coresume
luaB_costatus
luaB_cowrap
luaB_dofile
luaB_error
luaB_foreach
luaB_foreachi
luaB_gcinfo
luaB_getfenv
luaB_getmetatable
luaB_getn
luaB_ipairs
luaB_loadfile
luaB_loadstring
lubB_newproxy
luaB_next
luaB_next
luaB_opentests
luaB_pairs
luaB_pcall
luaB_print
luaB_rawequal
luaB_rawget
luaB_rawset
luaB_rawset
luaB_require
luaB_setfenv
luaB_setmetatable
luaB_setn
luaB_sort
luaB_tinsert
luaB_tonumber
luaB_tostring
luaB_tremove
luaB_type
luaB_xpcall
luaB_unpack
luaB_yield
luaC_callGCTM
luaC_collectgarbage
luaC_link
luaC_separateudata
luaC_sweep
luaD_call
luaD_callhook
luaD_growCI
luaD_growstack
luaD_pcall
luaD_poscall
luaD_precall
luaD_protectedparser
luaD_rewrunprotected
luaD_reallocCI
luaD_reallocstack
luaD_throw
luaE_freethread
luaE_newthread
luaF_close
luaF_findupval
luaF_freeclosure
luaF_freeproto
luaF_getlocalname
luaF_newCclosure
luaF_newLclosure
luaF_newproto
luaG_aritherror
luaG_checknode
luaG_concaterror
luaG_errormsg
luaG_inithooks
luaG_ordererror
luaG_runerror
luaG_symbexec
luaG_typeerror
luaH_free
luaH_get
luaH_getany
luaH_getnum
luaH_getstr
luaH_index
luaH_mainposition
luaH_new
luaH_next
luaH_set
luaH_setnum
luaI_addquoted
luaI_classend
luaI_registerlocalvar
luaI_singlematch
luaK_checkstack
luaK_code
luaK_codeABC
luaK_codeBx
luaK_concat
luaK_condjump
luaK_dischargejpc
luaK_dischargevars
luaK_exp2anyreg
luaK_exp2nextreg
luaK_exp2RK
luaK_exp2val
luaK_fixjump
luaK_fixline
luaK_getjump
luaK_getlabel
luaK_goiffalse
luaK_goiftrue
luaK_indexed
luaK_infix
luaK_jump
luaK_nil
luaK_numberK
luaK_patchlist
luaK_patchlistaux
luaK_patchtohere
luaK_posfix
luaK_prefix
luaK_reserveregs
luaK_self
luaK_setcallreturns
luaK_storevar
luaK_stringK
luaL_addLstring
luaL_addstring
luaL_addvalue
luaL_argerror
luaL_buffinit
luaL_callmeta
luaL_checkany
luaL_checklstring
luaL_checknumber
luaL_checkstack
luaL_checktype
luaL_checkudata
luaL_error
luaL_findstring
luaL_getmetafield
luaL_getmetatable
luaL_getn
luadL_loadbuffer
luaL_loadfile
luaL_newmetatable
luaL_openlib
luaL_optlstring
luaL_optnumber
luaL_prepbuffer
luaL_pushresult
luaL_ref
luaL_setn
luaL_setn
luaL_typerror
luaL_unref
luaL-where
luaM_growaux
luaM_realloc
luaopen_base
luaopen_debug
luaopen_io
luaopen_loadlib
luaopen_math
luaopen_string
luaopen_table
luaO_chunkid
luaO_int2fb
luaO_log2
luaO_pushfstring
luaO_pushvfstring
luaO_rawequalObj
luaO_str2d
luaS_freeall
luaS_newlstr
luaS_newudata
luaS_resize
luaT_gettm
luaT_gettmbyobj
luaT_init
luaU_dump
luaU_endianness
luaU_undump
luaV_concat
luaV_equalval
luaV_execute
luaV_getnotable
luaV_gettable
luaV_index
luaV_lessequal
luaV_lessthan
luaV_settable
luaV_strcmp
luaV_tonumber
luaV_tostring
luaX_checklimit
luaX_error
luaX_errorline
luaX_init
luaX_lex
luaX_lexerror
luaX_setinput
luaX_syntaxerror
luaX_token2str
luaY_field
luaY_index
luaY_parser
luaZ_fill
luaZ_init
luaZ_lookahead
luaZ_openspace
luaZ_read
LinePointDist - 点线距离
LoadBlock -
LoadChunk
LoadCode
LoadConstants - 加载常量
LoadExtensions - 加载扩展
LoadFragmentProgram - 加载片段程序
LoadFunction - 加载函数
LoadHeader - 加载头
LoadInt - 加载整数
LoadLines - 加载线
LoadLocals - 加载局部变量???
LoadNumber - 加载数字
LoadProgram - 加载程序
LoadSignature - 加载信号
LoadSize - 加载大小
LoadStartPicture - 加载起始图片,是读取地图时的吗???
LoadString - 加载字符串
LoadTextVFS - 加载文本虚拟文件系统???
LoadUpvalues - 加载上限值???
LoadVector - 加载向量
LoadVertexProgram - 加载顶点程序
LuaWriter - 加载Writer
LzmaDecode - 7zip_Lzma算法解码
LzmaDecoderProperties - 7zip_Lzma算法解码属性
LzmaReadImp - 7zip_Lzma算法读取加强
m_allocator - 分配内存
m_alwaysLogAll - 所有的日志
m_alwaysValidateAll - 验证所有
m_alwaysWipeAll - 清除所有
m_breakOnAllocation
m_breakOnDealloc - m(内存)中断Dealloc
m_breakOnRealloc - 中断Realloc
m_calcAllUnused - 计算所有未使用地
m_calUnused - 计算未使用地
m_deallocator - 分配
m_dumpAllocUnit - 释放Alloc单位
m_dumpMemoryReport - 释放内存报告
m_getMemoryStatistics - 获取内存统计
m_randomeWipe - 随机擦除
m_reallocator - 重新分配器
m_setOwner - 设置宏使用???
m_validateAddress - 确认地址
m_validateAllAllocUnits - 确认所有分配单元
m_validateAllocaUnit - 确认分配单元
makemask - 设置掩码
mallocstate - 分配状态
mark - 记号
markroot - 记号根
marktmu
markupval
match - 匹配值
match_capture - 匹配捕获
match_class - 匹配类
matchbalance - 匹配平衡
matchbracketclass - 匹配bracket类
math_abs - 数学绝对值
math_acos - 反余弦值
math_asin - 反正弦值
math_atan - 反正切值
math_atan2 -
math_ceil - 返回大于的整数如1.34返回2
math_cos - 余弦
math_deg -
math_exp - 自然对数底的幂
math_floor - 取整
math_frexp - 把浮点数分解成尾数和指数
math_ldexp
math_log
math_log10
math_max
math_min
math_mod
math_pow
math_rad
math_random
math_randomseed
math_sin
math_sqrt
math_tan
max_expand - 最大扩展
mem_query - 内存查询
memorySizeString - 内存大小字符
metatable - 元表
min_expand - 最小扩展
myDelete - 我删除
myNew - 我申请
MakeDemoStartScript - 确定Demo起始脚本
MarkerAddLine - 标记添加行
MarkerAddPoint - 标记添加点
MarkerErasePosition - 标记擦除位置
MayRequireSetMaxSpeedCommand - 也许请求设置最大的命令速度
MultisampleTest - 多采样测试
MultisampleVerify - 多采样校验
MySzInAlloc - 我的Sz可分配
need_value - 需要值
negindex - 否定索引
new_localvar - 新的本地变量
new_locavarstr - 新的本地字符串
newfileh - 新文件
newkey -
newlstr
newstate - 新状态
newuserdata - 新用户数据
next - 下一个
next_power_of_2 -
nil_constant - 零常量
numuse
open_func
ostream_a
ownerString - 自己的字符串
parlist
patchtestreg
pfAlloc
pfDealloc
posrelat
precheck
prefixexp
preinit_state
primaryexp
propagatemarks
push_captures
push_onecapture
pushclosure
pushcomposenmae
pusherror
pushextpath
pushresult
pushstr
pushuserdata
PackBuildQueue
PackCommandQueue
PackUnitsCounts
PackUnitsCounts
PackUnitsSorted
PackUnitsUnsorted
ParseBlendMode
ParseCommand
ParseCustomCmdModes
ParseFloatArray
ParseVertexData
PlaySoundFile - 播放声音文件
Pos2BuildPos
PrintLoadMsg - 打印加载消息
ProgramStringIsNative - 程序字符串是本地的吗?
read_chars - 读取字符串
read_line - 读取行
read_long_string - 读取长字符串
read_number - 读取字
read_numeral - 读取数字
read_string - 读取字符串
readname - 读取名字
reallymarkobject - 真的标记对象么?
recfield - 接收平面???
registerfile - 注册文件
rehash - 重置hash
removekey - 移除key
removevalues - 移除多个值
removevars - 移除变量
repeatstat - 重新???
resetGlobals - 重置全局变量
resize - 重新设置
restore_stack_limit - 重新设置栈限制
resume - 重新占用(执行lua脚本)
resume_error - resume错误
retstat -
ReadZStr - 序列化,保存全部变量值
ResetGLMaterial - 重设GL材质
ResetGLState - 重设GL状态
ResetScreenMatrices - 重设屏幕矩阵
RevertScreenLighting - 重设屏幕光照
Run - 运行
s2d
same_size
scanformat - 扫描格式
searchvar - 扫描var
set2
setarrayvector - 设置数组向量
setboolfield - 设置bool
seterrorobj - 设置错误目标
setfield -
sethook - 设置挂钩
setlocal - 设置本地变量
setnameval - 设置名字值
setnodevector - 设置结点向量
setSurfaceCircelFunc - 设置表面
settabsi -
settabss
setupvalue - 设置值
setyhook -
simpleexp
singlevar - 单个变量
singlevaraux
skip - 跳过
sort_comp
sourceFileStripper
stack_init
stacklevel
start_capture
statement
str_byte
str_char
str_checkname
str_concat
str_dup
str_find
str_format
str_gsub
str_len
str_lower
str_rep
str_sub
str_upper
streflop_acos
streflop_asin
streflop_atan
streflop_atan2
streflop_ceil
streflop_cos
streflop_exp
streflop_fabs
streflop_floor
streflop_fmod
streflop_frexp
streflop_ldexp
streflop_log
streflop_log10
streflop_pow
streflop_random
streflop_seed
streflop_sin
streflop_sqrt
streflop_tan
string_query
subexpr
swabfloat
sweeplist
sweepstrings
SafeAtoF
SafeAtoI
SafeReadDirect
SafeReadDirectByte
SafeReadDirectUInt32
SafeReadDirectUInt64
SafeString
ScriptCallback
SearchOffsetComparator
SelectCycle
SelectUnits
SelectUintByKeys
SelectUnitsByValues
SendCommands
SetArray
SetCameraState
SetConfigInt
SetConfigString
SetMouseCursor
SetShareLevel
SetupScreenLighting
SetupScreenTransform
SetUnitDefIcon
ShareResources
ShieldScriptCallback
ShowLuaError
SkipColorCodes
SpringCamToTerrainCam
SquareToFloat3
StencilDrawSelectBox
StringListStats
StringReplace
StringToLower
StringToLowerInPlace
StringColorCodes
SzAlloc - 7zip分配
SzAllocTemp
SzArchiveDatabaseFree
SzArchiveDatabaseInit
SzArchiveOpen
SzArchiveOpen2
SzArDbExFill
SzArDbExFree
SzArDbExInit
SzArDbGetFolderFullPackSize
SzArDbGetFOlderStreamPos
SzByteBufferCreate
SzByteBufferInit
SzCoderInfoFree
SzCOderInfoInit
SzDecode
SzExtract
SzFileFree
SzFileInit
SzFileReaImp
SzFileSeekImp
SzFolderFindBindPairForInStream
SzFolderFindBIndPairForOutStream
SzFolderFree
SzFolderGetNumOutStreams
SzFolderGetUnPackSize
SzFolderInit
SzFree
SzFreeTemp
SzGetNextFolderItem
SzReadAndDecodePackedStreams
SzReadAndDecodePackedStreams2
SzReadArchiveProerties
SzReadBoolVector
SzReadBoolVector2
SzReadByte
SzReadBytes
SzReadFileNames
SzReadHashDigests
SzReadHeader
SzReadHeader2
SzReadID
SzReadNumber
SzReadNumber32
SzReadPackInfo
SzReadSize
SzReadStreamsInfo
SzReadSubStreamInfo
SzReadSwitch
SzReadUInt32
SzReadUnPackInfo
SzSkeepData
SzSkeepDataSize
SzWaitAttribute
table_query
tag_error
test_do
test_eof
test_then_block
testC
testnext
tofile
traceexec
traverseclosure
traverseproto
traversestack
traversetable
travglobals
tref
tryfuncTM
TestBuildOrder
TestSignatureCondidate
TestSize
TraceScreenRay
udataval
unexpectedEOZ
unmakemask
unref
upvalue
unloadExtensions
UnloadStartPicture
UnloadStartPicture
valismarked
whilestart
wipeWithPattern
writer
WinMain
WorldToScreenCoords
WriteLine
WriteZStr
yieldf