|
TModLoader v1.4.4.9
TModLoader source code documentation
|
Intended for mods to use when spawning projectiles periodically from buffs.
More...
Inheritance diagram for Terraria.DataStructures.EntitySource_Buff:
Collaboration diagram for Terraria.DataStructures.EntitySource_Buff:Public Member Functions | |
| EntitySource_Buff (Entity entity, int buffId, int buffIndex, string? context=null) | |
Static Package Functions | |
| static ? IEntitySource | GetGoreFallback () |
| static FallbackSourceRef | PushFallback (IEntitySource source) |
Properties | |
| int | BuffId [get] |
| The type of the buff (T:Terraria.ID.BuffID or M:Terraria.ModLoader.ModContent.BuffType``1) | |
| int | BuffIndex [get] |
The index of the buff in the entity's buffType and buffTime arrays. | |
| Entity | Entity [get] |
| The entity which is the source of the effect or action. In many cases, it makes sense to consider buffs or effects applied to the parent entity, and make changes to the spawned entity. | |
| string? | Context [get] |
| Additional context identifier, particularly useful for set bonuses or accessory affects. See T:Terraria.ID.ItemSourceID and T:Terraria.ID.ProjectileSourceID for vanilla uses. | |
Static Private Attributes | |
| static ? IEntitySource | _goreFallback |
Intended for mods to use when spawning projectiles periodically from buffs.
Note that this can be used for both NPCs and Players
Definition at line 8 of file EntitySource_Buff.cs.