-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreference.lua
More file actions
50 lines (41 loc) · 1.08 KB
/
Copy pathreference.lua
File metadata and controls
50 lines (41 loc) · 1.08 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
39
40
41
42
43
44
45
46
47
48
49
50
---@meta _
-- Object references
--
-- See: https://docs.dfhack.org/en/stable/docs/dev/Lua%20API.html#typed-object-references
---@class DFObject: DFBase
---@field _kind 'primitive'|'struct'|'container'|'bitfield'
---@field _type DFType|string
local DFObject
-- Allocates a new instance of the same type, and copies data from the current object
---@nodiscard
---@generic T: DFObject
---@param self T
---@return T
function DFObject:new() end
---@return boolean|nil
function DFObject:delete() end
---@generic T: DFObject
---@param self T
---@param object T|table
function DFObject:assign(object) end
---@generic T: DFObject
---@param self T
---@param index integer
---@param step? integer
---@return T
function DFObject:_displace(index, step) end
---@class DFPrimitive: DFObject
---@field [0] any
---@field value any
---@field ref_target any|nil
local DFPrimitive
---@class DFStruct: DFObject
---@field _kind 'struct'
local DFStruct
---@nodiscard
---@param field string
---@return table
function DFStruct:_field(field) end
---@class DFBitfield: DFObject
---@field _kind 'bitfield'
---@field whole integer