tModLoader v2024.10
A mod to make and play Terraria mods
Passes.ScatterCustom Class Reference

Inherits GenPass.

Public Member Functions

 ScatterCustom (string name, double loadWeight, int count, CustomPerUnitAction perUnit=null)
 
void SetCustomAction (CustomPerUnitAction perUnit)
 
- Public Member Functions inherited from GenPass
 GenPass (string name, double loadWeight)
 
void Apply (GenerationProgress progress, GameConfiguration configuration)
 
void Disable ()
 
- Public Member Functions inherited from GenBase
delegate bool CustomPerUnitAction (int x, int y, params object[] args)
 

Protected Member Functions

override void ApplyPass (GenerationProgress progress, GameConfiguration configuration)
 
abstract void ApplyPass (GenerationProgress progress, GameConfiguration configuration)
 

Additional Inherited Members

- Public Attributes inherited from GenPass
string Name
 
double Weight
 
- Properties inherited from GenPass
bool Enabled = true [get]
 
- Properties inherited from GenBase
static UnifiedRandom _random [get]
 
static ref Tilemap _tiles [get]
 
static int _worldHeight [get]
 
static int _worldWidth [get]
 

Member Function Documentation

◆ ApplyPass()

override void Passes.ScatterCustom.ApplyPass ( GenerationProgress  progress,
GameConfiguration  configuration 
)
protectedvirtual

Implements GenPass.