Skip to content

Commit

Permalink
Updated modules in main
Browse files Browse the repository at this point in the history
  • Loading branch information
Timo Smit committed Jan 28, 2017
1 parent 72f5b32 commit 539be1e
Showing 1 changed file with 34 additions and 23 deletions.
57 changes: 34 additions & 23 deletions luamods/wolfadmin/main.lua
Expand Up @@ -15,25 +15,22 @@
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.

local constants
local util
local events
local timers
local settings

local db

local admin
local balancer
local bans
local history
local mutes
local rules

local auth

local db

local commands

local game
local bots
local fireteams
local game
local sprees
local teams
local voting
Expand All @@ -42,6 +39,17 @@ local greetings
local players
local stats

local bits
local constants
local events
local files
local logs
local pagination
local settings
local tables
local timers
local util

local version = "1.2.0-dev"
local release = "TBD"

Expand Down Expand Up @@ -79,25 +87,22 @@ function et_InitGame(levelTime, randomSeed, restartMap)
-- load modules
require (wolfa_getLuaPath()..".util.debug")

constants = require (wolfa_getLuaPath()..".util.constants")
util = require (wolfa_getLuaPath()..".util.util")
events = require (wolfa_getLuaPath()..".util.events")
timers = require (wolfa_getLuaPath()..".util.timers")
settings = require (wolfa_getLuaPath()..".util.settings")

db = require (wolfa_getLuaPath()..".db.db")

admin = require (wolfa_getLuaPath()..".admin.admin")
balancer = require (wolfa_getLuaPath()..".admin.balancer")
bans = require (wolfa_getLuaPath()..".admin.bans")
history = require (wolfa_getLuaPath()..".admin.history")
mutes = require (wolfa_getLuaPath()..".admin.mutes")
rules = require (wolfa_getLuaPath()..".admin.rules")

auth = require (wolfa_getLuaPath()..".auth.auth")

db = require (wolfa_getLuaPath()..".db.db")

commands = require (wolfa_getLuaPath()..".commands.commands")

game = require (wolfa_getLuaPath()..".game.game")
bots = require (wolfa_getLuaPath()..".game.bots")
game = require (wolfa_getLuaPath()..".game.game")
fireteams = require (wolfa_getLuaPath()..".game.fireteams")
sprees = require (wolfa_getLuaPath()..".game.sprees")
teams = require (wolfa_getLuaPath()..".game.teams")
voting = require (wolfa_getLuaPath()..".game.voting")
Expand All @@ -106,6 +111,17 @@ function et_InitGame(levelTime, randomSeed, restartMap)
players = require (wolfa_getLuaPath()..".players.players")
stats = require (wolfa_getLuaPath()..".players.stats")

bits = require (wolfa_getLuaPath()..".util.bits")
constants = require (wolfa_getLuaPath()..".util.constants")
events = require (wolfa_getLuaPath()..".util.events")
files = require (wolfa_getLuaPath()..".util.files")
logs = require (wolfa_getLuaPath()..".util.logs")
pagination = require (wolfa_getLuaPath()..".util.pagination")
settings = require (wolfa_getLuaPath()..".util.settings")
tables = require (wolfa_getLuaPath()..".util.tables")
timers = require (wolfa_getLuaPath()..".util.timers")
util = require (wolfa_getLuaPath()..".util.util")

-- register the module
et.RegisterModname("WolfAdmin "..wolfa_getVersion())
et.trap_SendConsoleCommand(et.EXEC_APPEND, "sets mod_wolfadmin "..wolfa_getVersion()..";")
Expand Down Expand Up @@ -143,11 +159,6 @@ function et_ClientCommand(clientId, cmdText)
return events.trigger("onClientCommand", clientId, cmdText)
end

-- gameState
-- 0 - game (also when paused)
-- 1 - warmup
-- 2 - unknown
-- 3 - intermission
function et_RunFrame(levelTime)
local gameState = tonumber(et.trap_Cvar_Get("gamestate"))

Expand Down

0 comments on commit 539be1e

Please sign in to comment.