Update from 22.06.2025: add MapGen mod outline, fix some require() issues
This commit is contained in:
@@ -1 +0,0 @@
|
||||
name = core__dynamic_recipe
|
||||
1
mods/CORE/EntityModular/mod.conf
Normal file
1
mods/CORE/EntityModular/mod.conf
Normal file
@@ -0,0 +1 @@
|
||||
name = core__entity_modular
|
||||
@@ -0,0 +1,5 @@
|
||||
local Item = Mod:new()
|
||||
|
||||
Item.Class = Item.require('Item')
|
||||
|
||||
Api.addModToGlobalSpace(Item, 'Core.Item')
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
name = core__item
|
||||
depends = api__system
|
||||
|
||||
41
mods/CORE/Item/src/Item.lua
Normal file
41
mods/CORE/Item/src/Item.lua
Normal file
@@ -0,0 +1,41 @@
|
||||
local Item = {}
|
||||
|
||||
--- @class ItemDefinition
|
||||
--- @field settings table
|
||||
local ItemDefinition = {
|
||||
settings = {
|
||||
name = '',
|
||||
title = '',
|
||||
description = '',
|
||||
visual = '', -- '3d' | 'flat'
|
||||
},
|
||||
callbacks = {
|
||||
...
|
||||
},
|
||||
}
|
||||
|
||||
--- @param itemDef ItemDefinition
|
||||
local function itemDefToLuantiDef(itemDef)
|
||||
local s = itemDef.settings
|
||||
local c = itemDef.callbacks
|
||||
local luantiDef = table.copy(c)
|
||||
|
||||
return luantiDef
|
||||
end
|
||||
|
||||
local function register3dItem(luantiDef)
|
||||
local ld = luantiDef
|
||||
core.register_node(ld.name, {
|
||||
description = ld.description
|
||||
})
|
||||
end
|
||||
|
||||
local function registerFlatItem(luantiDef)
|
||||
|
||||
end
|
||||
|
||||
function Item:new(itemDef)
|
||||
local item = {}
|
||||
|
||||
|
||||
end
|
||||
@@ -1 +0,0 @@
|
||||
name = core__modular_entity
|
||||
@@ -1 +0,0 @@
|
||||
name = core__modular_structure
|
||||
@@ -1 +1,2 @@
|
||||
name = core__node
|
||||
depends = core__item
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
name = core__node_factory
|
||||
depends = core__item_factory
|
||||
|
||||
1
mods/CORE/RecipeDynamic/mod.conf
Normal file
1
mods/CORE/RecipeDynamic/mod.conf
Normal file
@@ -0,0 +1 @@
|
||||
name = core__recipe_dynamic
|
||||
1
mods/CORE/RecipeStatic/mod.conf
Normal file
1
mods/CORE/RecipeStatic/mod.conf
Normal file
@@ -0,0 +1 @@
|
||||
name = core__recipe_static
|
||||
@@ -1 +0,0 @@
|
||||
name = core__static_recipe
|
||||
1
mods/CORE/StructureModular/mod.conf
Normal file
1
mods/CORE/StructureModular/mod.conf
Normal file
@@ -0,0 +1 @@
|
||||
name = core__structure_modular
|
||||
Reference in New Issue
Block a user