1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-12 10:04:40 +02:00
RedMew/control.lua

72 lines
2.1 KiB
Lua
Raw Normal View History

2018-11-26 03:07:03 +02:00
-- Omitting the math library is a very bad idea
2018-10-02 10:08:57 +02:00
require 'utils.math'
2018-09-23 00:25:13 +02:00
2018-11-26 03:07:03 +02:00
-- Map layout and config dictate the map you play and the settings in it
local config = require 'config'
2018-05-22 00:48:41 +02:00
require 'map_layout'
2018-08-13 17:04:02 +02:00
2018-11-11 09:20:07 +02:00
-- Specific to RedMew hosts, can be disabled safely if not hosting on RedMew servers
require 'features.server'
require 'features.server_commands'
2018-09-21 20:48:12 +02:00
2018-11-11 09:20:07 +02:00
-- Library modules which, if missing, will cause other feature modules to fail
require 'features.base_data'
require 'features.player_create'
2018-11-11 09:20:07 +02:00
require 'features.user_groups'
2018-11-26 03:07:03 +02:00
-- Feature modules, each can be disabled safely
if config.auto_deconstruct.enabled then
require 'features.autodeconstruct'
end
if config.hodor.enabled or config.auto_respond.enabled or config.mentions.enabled then
require 'features.chat_triggers'
end
2018-11-11 09:20:07 +02:00
require 'features.corpse_util'
2018-11-26 03:07:03 +02:00
require 'features.custom_commands'
2018-11-11 23:02:04 +02:00
require 'features.donator_messages'
require 'features.train_saviour'
if config.fish_market.enabled then
require 'features.fish_market'
end
2018-11-11 23:02:04 +02:00
require 'features.free_item_logging'
if config.nuke_control.enabled then
require 'features.nuke_control'
end
2018-11-11 09:20:07 +02:00
require 'features.player_colors'
if config.reactor_meltdown.enabled then
require 'features.reactor_meltdown'
end
2018-11-11 09:20:07 +02:00
require 'features.train_station_names'
require 'features.walkabout'
2018-11-11 09:20:07 +02:00
if global.config.performance.enabled then
require 'features.performance'
end
2018-11-11 09:20:07 +02:00
-- GUIs the order determines the order they appear from left to right.
2018-11-26 03:07:03 +02:00
-- These can be safely disabled if you want less GUI items.
-- Some map presets will add GUI modules themselves.
require 'features.gui.info'
if config.player_list.enabled then
require 'features.gui.player_list'
end
if config.poll.enabled then
require 'features.gui.poll'
end
if config.tag_group.enabled then
require 'features.gui.tag_group'
end
if config.tasklist.enabled then
require 'features.gui.tasklist'
end
if config.blueprint_helper.enabled then
require 'features.gui.blueprint_helper'
end
if config.paint.enabled then
require 'features.gui.paint'
end
if config.score.enabled then
require 'features.gui.score'
end
2018-11-11 09:20:07 +02:00
require 'features.gui.popup'