Jump to content

What is "deps" for?


HomShaBom

Recommended Posts

What is the deps parameter for in the Prefab constructor?

Prefab = Class( function(self, name, fn, assets, deps)    self.name = name or ""    self.path = name or nil    self.name = string.sub(name, string.find(name, "[^/]*$"))    self.desc = ""    self.fn = fn    self.assets = assets or {}    self.deps = deps or {}end)

I see in some prefabs it contains the names of related prefabs, but I can't tell what the purpose is. Like for the "bee" prefab, deps contains "honey" and "stinger". I know those are possible drops for killing a bee, but the lootdropper component is responsible for determining the loot, not deps. So what does deps do?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...