📄 movedefs.lua
字号:
-------------------------------------------------------------------------------------------------------------------------------------------------------------------- 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -