forked from Apancore.Studio/simple-makes-complex
idk fix
This commit is contained in:
@@ -4,16 +4,11 @@
|
||||
---@field public path string Path to the mod folder.
|
||||
---@field public Class table A public class that provides a mod.
|
||||
---@field public require fun(FileName:string)
|
||||
Mod = {
|
||||
name = nil,
|
||||
path = nil,
|
||||
require = nil,
|
||||
Class = nil,
|
||||
}
|
||||
Mod = {}
|
||||
|
||||
|
||||
--- Return table with mod name, path and require function.
|
||||
---@return {name: string, path: string, require: fun(FileName : string)}
|
||||
---@return {name: string, path: string, require: fun(FileName : string): table}
|
||||
function Mod.getInfo()
|
||||
local name = core.get_current_modname()
|
||||
local path = core.get_modpath(name)
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
---@class Item
|
||||
---@field itemDef Item.ItemDefinition
|
||||
---@field luantiDef table
|
||||
local Item = {
|
||||
itemDef = nil,
|
||||
luantiDef = nil,
|
||||
}
|
||||
local Item = {}
|
||||
|
||||
---@param itemDef Item.ItemDefinition
|
||||
local function itemDefToLuantiDef(itemDef)
|
||||
@@ -38,7 +35,9 @@ end
|
||||
---@param itemDef Item.ItemDefinition
|
||||
---@return Item
|
||||
function Item:new(itemDef)
|
||||
local instance = {}
|
||||
---@type Item
|
||||
local instance = setmetatable({}, {__index = self})
|
||||
|
||||
local luantiDef = itemDefToLuantiDef(itemDef)
|
||||
local visual = itemDef.settings.visual
|
||||
itemDef.settings.visual = nil
|
||||
|
||||
@@ -21,16 +21,7 @@ local Region3D = require("MapGen.Region.Region3D")
|
||||
---@field layersList table
|
||||
---@field registeredRegions table
|
||||
---@field material table<string, number>
|
||||
local MapGen = {
|
||||
layersByName = nil,
|
||||
layersList = nil,
|
||||
registeredRegions = nil,
|
||||
materials = {
|
||||
impassableWater = nil,
|
||||
impassableSeabed = nil,
|
||||
air = nil,
|
||||
},
|
||||
}
|
||||
local MapGen = {}
|
||||
|
||||
---@return MapGen
|
||||
function MapGen:new()
|
||||
|
||||
@@ -6,13 +6,7 @@ local table, setmetatable = table, setmetatable
|
||||
---@field maxY number
|
||||
---@field regions2D MapGen.Region.Region2D[]
|
||||
---@field regions3D MapGen.Region.Region3D[]
|
||||
local Layer = {
|
||||
name = nil,
|
||||
minY = nil,
|
||||
maxY = nil,
|
||||
regions2D = nil,
|
||||
regions3D = nil,
|
||||
}
|
||||
local Layer = {}
|
||||
|
||||
---@return MapGen.Layer
|
||||
---@param name string
|
||||
|
||||
@@ -3,8 +3,15 @@ local Node = Core.Item:getModClassExtended({
|
||||
--TODO: Че тут писать?
|
||||
})
|
||||
|
||||
|
||||
---@return Node
|
||||
function Node:new()
|
||||
---@type Node
|
||||
local instance
|
||||
|
||||
--TODO: Это надо вообще?
|
||||
|
||||
return instance
|
||||
end
|
||||
|
||||
return Node
|
||||
Reference in New Issue
Block a user