--- Activates the client and their modules
-- @author QueuedResonance 2022

local Client = {
	AnimationUtils = require("ZomboLewd/ZomboLewdAnimationUtils"),
	--Commands = require("ZomboLewd/ZomboLewdCommands"),
	Callbacks = require("ZomboLewd/ZomboLewdCallbacks"),
	ContextMenu = require("ZomboLewd/ZomboLewdContextMenu"),
	AnimationHandler = require("ZomboLewd/ZomboLewdAnimationHandler"),
	ClothHandler = require("ZomboLewd/ZomboLewdClothHandler"),
	ZombieHandler = require("ZomboLewd/ZomboLewdZombieHandler"),
}

local function Init()
	--- Injects the Client data to all modules so they too can access the other modules without going through global
	for name, module in pairs(Client) do
		module.Client = Client
	end
end

Init()

--- Helper function to determine if this is a solo or multiplayer game
function Client:IsMultiplayer()
	return getWorld():getGameMode() == "Multiplayer"
end

return Client