HelperLib: add require methods

This commit is contained in:
Van
2026-02-27 20:34:37 +03:00
parent c47ab6ac3c
commit 51e6763457
12 changed files with 54 additions and 52 deletions

View File

@@ -1,10 +1,4 @@
local itemRequire = Mod.getInfo('smc__core__item').require
---@type Item
local Item = itemRequire('Item')
---@type ItemFactory
local ItemFactory = Mod.getInfo('smc__core__item_factory').require('ItemFactory')
local Item, ItemFactory = Smc.requireItem(), Smc.requireItemFactory()
---@class Node : Item
---@field defaultDef Node.NodeDefinition