Skip to main content

PresetLootSet

A class in Root.Township, Alta.Loot.

Asset listing loot to spawn into a group of docks, one random free dock per spawn. Used by PresetLootModule on the server.

Constructors​

MemberWhat it is
PresetLootSet()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

3 private and internal fields
MemberWhat it is
private PresetLootSet.Entry[] entriesThe loot entries, in order.
private static List<PickupDock> tempScratch list of docks still free.
private static List<PickupDock> usedScratch list of docks already filled.

Methods​

MemberWhat it is
void Spawn(PickupDockGroup docks, SpawnData spawnData)Empties the dock group, then for each entry tries its rounds, each into a random unused dock.

Used in​

Members of other types that take, return or hold a PresetLootSet: