Class RoundArtifactSpawner
- Namespace
- DefaultNamespace
- Assembly
- Assembly-CSharp.dll
public class RoundArtifactSpawner : MonoBehaviour
- Inheritance
-
RoundArtifactSpawner
- Inherited Members
-
- Extension Methods
-
Constructors
RoundArtifactSpawner()
public RoundArtifactSpawner()
Fields
artifactSpawnerPrefab
public GameObject artifactSpawnerPrefab
Field Value
- GameObject
me
public static RoundArtifactSpawner me
Field Value
- RoundArtifactSpawner
possibleSpawns
public Item[] possibleSpawns
Field Value
- Item[]
testDay
Field Value
- int
Methods
Awake()
CreateArtifactSpawners(List<Item>)
public void CreateArtifactSpawners(List<Item> artifacts)
Parameters
artifacts List<Item>
GetArtifact(ref int, Item[], float)
public static Item GetArtifact(ref int budget, Item[] possibleSpawns, float rarestPurchase)
Parameters
budget int
possibleSpawns Item[]
rarestPurchase float
Returns
- Item
GetArtifactsToSpawn(int, float)
public List<Item> GetArtifactsToSpawn(int budget, float rarestPurchase)
Parameters
budget int
rarestPurchase float
Returns
- List<Item>
GetRandPointWithWeight()
public static Vector3 GetRandPointWithWeight()
Returns
- Vector3
GetRandomArtifactByRarity(Item[])
public static Item GetRandomArtifactByRarity(Item[] possibleSpawns)
Parameters
possibleSpawns Item[]
Returns
- Item
PrintArtifactsPerDay(int, int)
public void PrintArtifactsPerDay(int day, int times)
Parameters
day int
times int
SpawnRound(int, float)
public void SpawnRound(int budget, float rarestPurchase)
Parameters
budget int
rarestPurchase float
Start()
public IEnumerator Start()
Returns
- IEnumerator