Splitting NodeDefinition into settings and callbacks, updating annotations to 5.16
This commit is contained in:
@@ -1,38 +1,6 @@
|
||||
---Version: 5.16
|
||||
--- @meta
|
||||
|
||||
|
||||
--- @class TileAnimationDefinition: table
|
||||
local TileAnimationDefinition = {
|
||||
--- @type string one of {"vertical_frames"|"sheet_2d"}
|
||||
type = "",
|
||||
|
||||
--- Width of a frame in pixels.
|
||||
--- Only for `type == "vertical_frames"`
|
||||
--- @type number
|
||||
aspect_w = 16,
|
||||
|
||||
--- Height of a frame in pixels
|
||||
--- Only for `type == "vertical_frames"`
|
||||
--- @type number
|
||||
aspect_h = 16,
|
||||
|
||||
--- Full loop length
|
||||
--- Only for `type == "vertical_frames"`
|
||||
--- @type number
|
||||
length = 3.0,
|
||||
|
||||
--- Width in number of frames
|
||||
--- Only for `type == "sheet_2d"`
|
||||
--- @type number
|
||||
frames_w = 5,
|
||||
|
||||
--- Height in number of frames
|
||||
--- Only for `type == "sheet_2d"`
|
||||
--- @type number
|
||||
frames_h = 3,
|
||||
|
||||
--- Length of a single frame
|
||||
--- Only for `type == "sheet_2d"`
|
||||
--- @type number
|
||||
frame_length = 0.5,
|
||||
}
|
||||
---@alias TileAnimationDefinition
|
||||
---|{type:'vertical_frames', aspect_w:integer, aspect_h:integer, length:integer}
|
||||
---|{type:'sheet_2d', frames_w:integer, frames_h:integer, frame_length:integer}
|
||||
|
||||
Reference in New Issue
Block a user