tModLoader v2025.02
A mod to make and play Terraria mods
All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
EntitySource_WorldEvent Class Reference

Inconsistently used by vanilla when spawning more exotic things like the lunatic pillars, cultist ritual, fairies etc.
Don't expect this to distinguish between NPCs spawned due to an event/invasion. Most of those use EntitySource_SpawnNPC More...

Inherits IEntitySource.

Public Member Functions

 EntitySource_WorldEvent (string? context=null)
 

Properties

string? Context [get]
 Additional context identifier, particularly useful for set bonuses or accessory affects. See ItemSourceID and ProjectileSourceID for vanilla uses More...
 
- Properties inherited from IEntitySource
string? Context [get]
 Additional context identifier, particularly useful for set bonuses or accessory affects. See ItemSourceID and ProjectileSourceID for vanilla uses More...
 

Detailed Description

Inconsistently used by vanilla when spawning more exotic things like the lunatic pillars, cultist ritual, fairies etc.
Don't expect this to distinguish between NPCs spawned due to an event/invasion. Most of those use EntitySource_SpawnNPC

Property Documentation

◆ Context

string? EntitySource_WorldEvent.Context
get

Additional context identifier, particularly useful for set bonuses or accessory affects. See ItemSourceID and ProjectileSourceID for vanilla uses

Implements IEntitySource.