refactor: rename imports

BREAKING!
Since the folder name determines the import name (i.e. lib.callbacks), use better names and lowerCamelCase.
This commit is contained in:
Linden
2022-02-28 16:30:58 +11:00
parent aceacbcdae
commit aeccbece09
6 changed files with 82 additions and 83 deletions

View File

@@ -2,19 +2,18 @@ if not _VERSION:find('5.4') then
error('^1Lua 5.4 must be enabled in the resource manifest!^0', 3)
end
-----------------------------------------------------------------------------------------------
-- Module
-----------------------------------------------------------------------------------------------
-- env
local lualib = 'ox_lib'
local file = IsDuplicityVersion() and 'server' or 'client'
-- micro-optimise
local rawget = rawget
local rawset = rawset
local LoadResourceFile = LoadResourceFile
local file = IsDuplicityVersion() and 'server' or 'client'
local rawset = rawset
local rawget = rawget
local function loadModule(self, module)
local dir = ('imports/%s'):format(module)