forked from danielmartin0/PlanetsLib
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi.lua
More file actions
37 lines (28 loc) · 1.09 KB
/
api.lua
File metadata and controls
37 lines (28 loc) · 1.09 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
local technology = require("lib.technology")
local planet = require("lib.planet")
function PlanetsLib:extend(configOrConfigs)
local configs = util.table.deepcopy(configOrConfigs)
if not configs[1] then
configs = { configs }
end
for _, config in ipairs(configs) do
planet.extend(config)
end
end
function PlanetsLib:update(configOrConfigs)
local configs = util.table.deepcopy(configOrConfigs)
if not configs[1] then
configs = { configs }
end
for _, config in ipairs(configs) do
planet.update(config)
end
end
PlanetsLib.technology_icons_planet_cargo_drops = technology.technology_icons_planet_cargo_drops
PlanetsLib.technology_effect_cargo_drops = technology.technology_effect_cargo_drops
PlanetsLib.technology_icons_moon = technology.technology_icons_moon
PlanetsLib.borrow_music = planet.borrow_music
--- This function sets `default_import_location` based on an item name and planet.
--- `default_import_location` is used by the space platform GUI to
--- define the default planet where an item will be imported from.
PlanetsLib.set_default_import_location = planet.set_default_import_location