movedefs.lua
来自「这是整套横扫千军3D版游戏的源码」· LUA 代码 · 共 46 行
LUA
46 行
-------------------------------------------------------------------------------------------------------------------------------------------------------------------- file: movedefs.lua-- brief: moveinfo.tdf lua parser-- author: Dave Rodgers---- Copyright (C) 2007.-- Licensed under the terms of the GNU GPL, v2 or later.------------------------------------------------------------------------------------------------------------------------------------------------------------------local moveInfo = {}local TDF = VFS.Include('gamedata/parse_tdf.lua')local moveTdf, err = TDF.Parse('gamedata/moveinfo.tdf')if (moveTdf == nil) then error('Error parsing moveinfo.tdf: ' .. err)end----------------------------------------------------------------------------------------------------------------------------------------------------------------local i = 0while (true) do local move = moveTdf['class' .. i] if (type(move) ~= 'table') then break end i = i + 1 moveInfo[i] = moveend----------------------------------------------------------------------------------------------------------------------------------------------------------------return moveInfo----------------------------------------------------------------------------------------------------------------------------------------------------------------
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?