-
Notifications
You must be signed in to change notification settings - Fork 8
/
telelogistics.lua
40 lines (35 loc) · 1.73 KB
/
telelogistics.lua
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
require "util"
require "config"
--[[Global variables hierarchy in this mod:
global = {
Telelogistics = {
telesendings = {}, array of {
sender = beacon.key; contains a key of a beacon-sender
receiver = beacon.key; contains a key of a beacon-receiver
key = sender .. ">" .. receiver; it's an id for using in gui elements representing this sending
distance; number; the distance between sender and receiver, for calculating energy consumption
filters; dictionary; if nil, no items will be sent
}
}
}
Telelogistics = {}; dictionary
telesendings = {}; list
sender = beacon.key; contains a key of a beacon-sender
receiver = beacon.key; contains a key of a beacon-receiver
key = sender .. ">" .. receiver; it's an id for using in gui elements representing this sending
distance; number; the distance between sender and receiver, for calculating energy consumption
filters; dictionary; if nil, no items will be sent
tick_of_last_check; number of tick when the last periodical check has been performed
Telelogistics = {}; dictionary
config = {}; dictionary
[contents of Telelogistics.config see in config.lua] - not implemented yet
]]
--===================================================================--
--########################## EVENT HANDLERS #########################--
--===================================================================--
function Telelogistics.Ticker()
--
end
--===================================================================--
--############################ FUNCTIONS ############################--
--===================================================================--