-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathBlockTypes.lua
More file actions
60 lines (44 loc) · 1.52 KB
/
Copy pathBlockTypes.lua
File metadata and controls
60 lines (44 loc) · 1.52 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
51
52
53
54
55
56
57
58
59
60
--- BlockTypes library for easier use of block types.
...
--- Impervious block type. ("impervious")
IMPERVIOUS = "impervious"
--- Weak block type. ("weak")
WEAK = "weak"
--- Active block type. ("active")
ACTIVE = "active"
--- Start block type. ("start")
START = "start"
--- Inactive block type. ("inactive")
INACTIVE = "inactive"
--- Change block type. ("change")
CHANGE = "change"
--- Move block type. ("move")
MOVE = "move"
--- Water block type. ("water")
WATER = "water"
--- Reactor block type. ("reactor")
REACTOR = "reactor"
--- Generator block type. ("generator")
GENERATOR = "generator"
--- Inactive lua block type. ("lua inactive")
INACTIVE_LUA = "lua inactive"
--- Water lua block type. ("lua water")
WATER_LUA = "lua water"
--- Checks if a block type string is of an active block type.
--- @param type The block type string
--- @treturn boolean Returns whether the block type string is of an active block type.
--- @usage isActive = BlockTypes.isActive(block.type)
function isActive(type)
end
--- Checks if a block type string is of an inactive block type.
--- @param type The block type string
--- @treturn boolean Returns whether the block type string is of an inactive block type.
--- @usage isInactive = BlockTypes.isInactive(block.type)
function isInactive(type)
end
--- Checks if a block type string is of a water block type.
--- @param type The block type string
--- @treturn boolean Returns whether the block type string is of a water block type.
--- @usage isWater = BlockTypes.isWater(block.type)
function isWater(type)
end