-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommon.lua
More file actions
38 lines (30 loc) · 1 KB
/
Copy pathcommon.lua
File metadata and controls
38 lines (30 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
-- Ideally this file would not be needed, here we put any methods/consts that
-- need to be manually overloaded outside of base classes/types.
---@meta _
---@class df
df = {}
-- Core methods
---@param message string
function dfhack.print(message) end
---@param message string
function dfhack.printerr(message) end
---@param message string
---@param level? integer
---@param verbose? boolean
function dfhack.error(message, level, verbose) end
-- Pen methods
-- Creates a new `dfhack.pen` object.
---@param base dfhack.pen|dfhack.color
---@param pen_or_fg? dfhack.pen|dfhack.color
---@param bg? dfhack.color
---@param bold? boolean
---@return dfhack.pen
function dfhack.pen.make(base, pen_or_fg, bg, bold) end
-- Returns `base` or `pen_or_fg` directly if they are already a valid
-- `dfhack.pen` object.
---@param base dfhack.pen|dfhack.color
---@param pen_or_fg? dfhack.pen|dfhack.color
---@param bg? dfhack.color
---@param bold? boolean
---@return dfhack.pen
function dfhack.pen.parse(base, pen_or_fg, bg, bold) end