-
Notifications
You must be signed in to change notification settings - Fork 2
/
builtins_3411-r5.js
209 lines (179 loc) · 5.05 KB
/
builtins_3411-r5.js
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
module.exports = {
guesses: {
},
types: {
null: 'null',
_G: 'table',
df: {
_type: '__df',
global: {
_type: '__global',
},
},
coord2d: {
_type: 'coord2d',
x: 'number',
y: 'number',
z: 'number',
},
MessagePack: {
_type: 'MessagePack',
NIL: 'null',
},
'JSON': {
_type: 'JSON',
_methods: {
'decode': 'table',
},
},
os: {
_type: 'os',
clock: { _type:'function', _node:'number' },
},
/*string: {
_type: 'string',
upper: { _type:'function', _node:'string' },
},*/
dfhack: {
type: '__dfhack',
DF_VERSION: 'string',
matinfo: {
_type: 'dfhack.matinfo',
type: 'number',
index: 'number',
material: 'df.material',
mode: 'number',
subtype: 'number',
inorganic: 'df.inorganic_raw',
creature: 'df.creature_raw',
plant: 'df.plant_raw',
figure: 'df.historical_figure',
_methods: {
'getCraftClass': 'df.craft_material_class',
},
},
},
native: {
itemcache: {
cats: {
_array: 'native.type_category',
}
},
type_category: {
count: 'number',
busy: 'number',
groups_index: {
_array: 'native.group_info',
},
},
group_info: {
type: 'df.item_type',
subtype: 'number',
mat_type: 'number',
mat_index: 'number',
title: 'string',
count: 'number',
items: { _array:'df.item' },
flags_all: 'df.item_flags',
flags_some: 'df.item_flags',
}
},
},
functions: {
error: 'none',
tostring: 'string',
tonumber: 'number',
print: 'none',
type: 'string',
'math.abs': 'number',
'math.floor': 'number',
'math.ceil': 'number',
'math.min': 'number',
'math.max': 'number',
'math.random': 'number',
'table.insert': 'none',
'table.remove': 'none',
'table.sort': 'none',
'table.concat': 'string',
'table.pack': 'table',
'table.unpack': { _type:'tuple', _tuple:[] },
'string.gsub': 'string',
'string.sub': 'string',
'string.byte': 'number',
'string.char': 'string',
'string.find': 'number',
'string.lower': 'string',
'bit32.band': 'number',
'bit32.lshift': 'number',
'bit32.rshift': 'number',
'bit32.bnot': 'number',
'dfhack.getOSType': 'string',
'dfhack.df2utf': 'string',
'dfhack.isMapLoaded': 'bool',
'dfhack.timeout': 'none',
'dfhack.gui.getCurViewscreen': 'df.viewscreen',
'dfhack.units.getProfessionName': 'string',
'dfhack.units.isCitizen': 'bool',
'dfhack.units.isOwnCiv': 'bool',
'dfhack.units.getVisibleName': 'df.language_name',
'dfhack.units.getProfessionColor': 'number',
'dfhack.units.getNemesis': 'df.nemesis_record',
'dfhack.units.getPosition': { _type:'tuple', _tuple:['number', 'number', 'number'] },
'dfhack.units.getCasteProfessionName': 'string',
'dfhack.units.setNickname': 'none',
'dfhack.items.getGeneralRef': 'df.general_ref',
'dfhack.items.getDescription': 'string',
'dfhack.items.getItemBaseValue': 'number',
'dfhack.items.getValue': 'number',
'dfhack.items.getContainedItems': { _type:'df.item[]', _array:'df.item' },
'dfhack.items.getPosition': { _type:'tuple', _tuple:['number', 'number', 'number'] },
'dfhack.items.getContainer': 'df.item',
'dfhack.items.getHolderUnit': 'df.unit',
'dfhack.matinfo.decode': 'dfhack.matinfo',
'dfhack.matinfo.find': 'dfhack.matinfo',
'dfhack.matinfo.matches': 'bool',
'dfhack.job.getName': 'string',
'dfhack.job.getWorker': 'df.unit',
'dfhack.job.getGeneralRef': 'df.general_ref',
'dfhack.job.removeWorker': 'none',
'dfhack.maps.getRegionBiome': 'df.region_map_entry',
'dfhack.maps.getBlock': 'df.map_block',
'dfhack.maps.getTileBlock': 'df.map_block',
'dfhack.maps.getTileType': 'df.tiletype',
'dfhack.burrows.setAssignedUnit': 'none',
'dfhack.internal.memmove': 'none',
'dfhack.internal.getRebaseDelta': 'number',
'dfhack.internal.setAddress': 'none',
'dfhack.internal.getAddress': 'number',
'dfhack.TranslateName': 'string',
'dfhack.buildings.deconstruct': 'none',
'dfhack.buildings.setOwner': 'none',
'dfhack.buildings.findAtTile': 'df.building',
'dfhack.buildings.getStockpileContents': { _type:'df.item[]', _array:'df.item' },
'dfhack.gui.getSelectedUnit': 'df.unit',
'dfhack.gui.getSelectedBuilding': 'df.building',
'dfhack.screen.getKeyDisplay': 'string',
'dfhack.run_command_silent': { _type:'tuple', _tuple:['string', 'number'] },
'utils.call_with_string': 'string',
'utils.insert_sorted': 'none',
'utils.erase_sorted': 'none',
'utils.erase_sorted_key': 'none',
'utils.insert_or_update': 'none',
'gui.simulateInput': 'none',
'string.utf8capitalize': 'string',
'native.verify_pwd': 'bool',
'native.check_wtoken': 'bool',
'native.update_wtoken': 'number',
'native.set_timer': 'none',
'native.itemcache_init': 'none',
'native.itemcache_free': 'none',
'native.itemcache_get': 'native.itemcache',
'native.itemcache_get_category': 'native.type_category',
'native.itemcache_search': 'native.group_info[]',
'mp.pack': 'string',
'mkmodule': 'none',
'printall': 'none',
'deflatelua.inflate_zlib': 'none',
},
parent: null,
};