-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathinit.lua
29 lines (24 loc) · 875 Bytes
/
init.lua
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
-- This file includes common functionality that should be available globally
-- Universal Lua functions applicable to any Lua code
-- These add missing base lua functionality
VFS.Include('common/numberfunctions.lua')
VFS.Include('common/stringFunctions.lua')
VFS.Include('common/tablefunctions.lua')
Json = Json or VFS.Include('common/luaUtilities/json.lua')
VFS.Include('common/springOverrides.lua')
local environment = Script.GetName and Script.GetName() or "LuaParser"
local commonFunctions = {
spring = {
LuaMenu = true,
LuaIntro = true,
LuaParser = true,
LuaRules = true,
LuaGaia = true,
LuaUI = true,
},
}
if commonFunctions.spring[environment] then
local springFunctions = VFS.Include('common/springFunctions.lua')
Spring.Utilities = Spring.Utilities or springFunctions.Utilities
Spring.Debug = Spring.Debug or springFunctions.Debug
end