lua.wetgenes.gamecake.fun.yarn.prefabs
prefabs = require("wetgenes.gamecake.fun.yarn.prefabs").create(items)
This module contains only one function which can be used to create an prefabs instance and the rest of this documentation concerns the return from this create function, not the module itself.
lua.wetgenes.gamecake.fun.yarn.prefabs.set
prefab = prefabs:get(name)
prefab = prefabs:get(name,prefab)
Build and return a table with all prefab values inherited from all its parents. Optionally pass in a prefab to override values and also have it returned.
If name doesn't exist at any level and a table is not passed in then nil will be returned.
Names are hierarchical, separated by dots, see items.iterate_dotnames