Mod: .getInfo() -> :getInfo()
This commit is contained in:
@@ -5,7 +5,7 @@ Smc = {}
|
||||
---@type boolean
|
||||
Smc.isAsync = false
|
||||
|
||||
local modInfo = Mod.getInfo('smc__system__helper_lib')
|
||||
local modInfo = Mod:getInfo('smc__system__helper_lib')
|
||||
local doFile = modInfo.doFile
|
||||
|
||||
-- Independent of SMC methods
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
---@return Item
|
||||
function Smc.requireItem()
|
||||
---@type Item
|
||||
local class = Mod.getInfo('smc__core__item').require('Item')
|
||||
local class = Mod:getInfo('smc__core__item').require('Item')
|
||||
|
||||
return class
|
||||
end
|
||||
@@ -11,7 +11,7 @@ end
|
||||
---@return Node
|
||||
function Smc.requireNode()
|
||||
---@type Node
|
||||
local class = Mod.getInfo('smc__core__node').require('Node')
|
||||
local class = Mod:getInfo('smc__core__node').require('Node')
|
||||
|
||||
return class
|
||||
end
|
||||
@@ -19,7 +19,7 @@ end
|
||||
---@return Tool
|
||||
function Smc.requireTool()
|
||||
---@type Tool
|
||||
local class = Mod.getInfo('smc__core__tool').require('Tool')
|
||||
local class = Mod:getInfo('smc__core__tool').require('Tool')
|
||||
|
||||
return class
|
||||
end
|
||||
@@ -27,7 +27,7 @@ end
|
||||
---@return Plant
|
||||
function Smc.requirePlant()
|
||||
---@type Plant
|
||||
local class = Mod.getInfo('smc__core__plant').require('Plant')
|
||||
local class = Mod:getInfo('smc__core__plant').require('Plant')
|
||||
|
||||
return class
|
||||
end
|
||||
@@ -35,7 +35,7 @@ end
|
||||
---@return ItemFactory
|
||||
function Smc.requireItemFactory()
|
||||
---@type ItemFactory
|
||||
local class = Mod.getInfo('smc__core__item_factory').require('ItemFactory')
|
||||
local class = Mod:getInfo('smc__core__item_factory').require('ItemFactory')
|
||||
|
||||
return class
|
||||
end
|
||||
@@ -43,7 +43,7 @@ end
|
||||
---@return TileSheet
|
||||
function Smc.requireTileSheet()
|
||||
---@type TileSheet
|
||||
local class = Mod.getInfo('smc__core__tilesheet').require('TileSheet')
|
||||
local class = Mod:getInfo('smc__core__tilesheet').require('TileSheet')
|
||||
|
||||
return class
|
||||
end
|
||||
@@ -51,7 +51,7 @@ end
|
||||
---@return BaseUI
|
||||
function Smc.requireBaseUI()
|
||||
---@type BaseUI
|
||||
local class = Mod.getInfo('smc__core__base_ui').require('BaseUI')
|
||||
local class = Mod:getInfo('smc__core__base_ui').require('BaseUI')
|
||||
|
||||
return class
|
||||
end
|
||||
@@ -59,7 +59,7 @@ end
|
||||
---@return Formspec
|
||||
function Smc.requireFormspec()
|
||||
---@type Formspec
|
||||
local class = Mod.getInfo('smc__core__formspec').require('Formspec')
|
||||
local class = Mod:getInfo('smc__core__formspec').require('Formspec')
|
||||
|
||||
return class
|
||||
end
|
||||
@@ -67,7 +67,7 @@ end
|
||||
---@return ProgressionSystem
|
||||
function Smc.requireProgressionSystem()
|
||||
---@type ProgressionSystem
|
||||
local class = Mod.getInfo('smc__core__progression_system').require('ProgressionSystem')
|
||||
local class = Mod:getInfo('smc__core__progression_system').require('ProgressionSystem')
|
||||
|
||||
return class
|
||||
end
|
||||
@@ -75,7 +75,7 @@ end
|
||||
---@return CraftSystem
|
||||
function Smc.requireCraftSystem()
|
||||
---@type CraftSystem
|
||||
local class = Mod.getInfo('smc__core__craft_system').require('CraftSystem')
|
||||
local class = Mod:getInfo('smc__core__craft_system').require('CraftSystem')
|
||||
|
||||
return class
|
||||
end
|
||||
@@ -83,7 +83,7 @@ end
|
||||
---@return PlayerInventoryUI
|
||||
function Smc.requirePlayerInventoryUI()
|
||||
---@type PlayerInventoryUI
|
||||
local class = Mod.getInfo('smc__ui__player_inventory').require('PlayerInventoryUI')
|
||||
local class = Mod:getInfo('smc__ui__player_inventory').require('PlayerInventoryUI')
|
||||
|
||||
return class
|
||||
end
|
||||
@@ -91,7 +91,7 @@ end
|
||||
---@return BaseProcessingStation
|
||||
function Smc.requireBaseProcessingStation()
|
||||
---@type BaseProcessingStation
|
||||
local class = Mod.getInfo('smc__core__base_processing_station').require('BaseProcessingStation')
|
||||
local class = Mod:getInfo('smc__core__base_processing_station').require('BaseProcessingStation')
|
||||
|
||||
return class
|
||||
end
|
||||
@@ -99,7 +99,7 @@ end
|
||||
---@return ProcessingContainerStation
|
||||
function Smc.requireProcessingContainerStation()
|
||||
---@type ProcessingContainerStation
|
||||
local class = Mod.getInfo('smc__core__processing_container_station').require('ProcessingContainerStation')
|
||||
local class = Mod:getInfo('smc__core__processing_container_station').require('ProcessingContainerStation')
|
||||
|
||||
return class
|
||||
end
|
||||
@@ -107,7 +107,7 @@ end
|
||||
---@return ProcessingFuelStation
|
||||
function Smc.requireProcessingFuelStation()
|
||||
---@type ProcessingFuelStation
|
||||
local class = Mod.getInfo('smc__core__processing_fuel_station').require('ProcessingFuelStation')
|
||||
local class = Mod:getInfo('smc__core__processing_fuel_station').require('ProcessingFuelStation')
|
||||
|
||||
return class
|
||||
end
|
||||
@@ -116,7 +116,7 @@ end
|
||||
---@return Events
|
||||
function Smc.requireEvents(eventsType)
|
||||
---@type Events
|
||||
local class = Mod.getInfo('smc__system__events').require('Events.'..eventsType)
|
||||
local class = Mod:getInfo('smc__system__events').require('Events.'..eventsType)
|
||||
|
||||
return class
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user