tModLoader  0.12 Alpha
A mod to make and play Terraria mods
Terraria.DataStructures.PlayerDeathReason Class Reference

Public Member Functions

NetworkText GetDeathText (string deadPlayerName)
 
void WriteSelfTo (BinaryWriter writer)
 

Static Public Member Functions

static PlayerDeathReason ByCustomReason (string reasonInEnglish)
 
static PlayerDeathReason ByNPC (int index)
 
static PlayerDeathReason ByOther (int type)
 
static PlayerDeathReason ByPlayer (int index)
 
static PlayerDeathReason ByProjectile (int playerIndex, int projectileIndex)
 
static PlayerDeathReason FromReader (BinaryReader reader)
 
static PlayerDeathReason LegacyDefault ()
 
static PlayerDeathReason LegacyEmpty ()
 

Properties

ref string SourceCustomReason [get]
 
ref int SourceItemPrefix [get]
 
ref int SourceItemType [get]
 
ref int SourceNPCIndex [get]
 
ref int SourceOtherIndex [get]
 
ref int SourcePlayerIndex [get]
 
ref int SourceProjectileIndex [get]
 
int? SourceProjectileType [get, set]