Rename Factory => itemFactory

This commit is contained in:
Van
2025-09-26 20:03:07 +03:00
parent 2b96db73b2
commit a86b0efe4c
8 changed files with 31 additions and 24 deletions

View File

@@ -105,15 +105,15 @@ function Item:getExtended(defaultDef)
return ChildClass
end
---Returns an instance of the `Factory` class that can be used to mass-register identical items.
---Returns an instance of the `ItemFactory` class that can be used to mass-register identical items.
---@param defaultDef? Item.ItemDefinition
---@return Factory
---@return ItemFactory
function Item:getFactory(defaultDef)
if defaultDef == nil then
defaultDef = self.defaultDef
end
local instance = Core.Factory():new(self, defaultDef)
local instance = Core.ItemFactory():new(self, defaultDef)
return instance
end