tModLoader v0.11.8.9
A mod to make and play Terraria mods
Terraria.ModLoader.Config.NPCDefinition Class Reference
+ Inheritance diagram for Terraria.ModLoader.Config.NPCDefinition:
+ Collaboration diagram for Terraria.ModLoader.Config.NPCDefinition:

Public Member Functions

 NPCDefinition ()
 
 NPCDefinition (int type)
 
 NPCDefinition (string key)
 
 NPCDefinition (string mod, string name)
 
- Public Member Functions inherited from Terraria.ModLoader.Config.EntityDefinition
 EntityDefinition ()
 
 EntityDefinition (string key)
 
 EntityDefinition (string mod, string name)
 
override bool Equals (object obj)
 
override int GetHashCode ()
 
TagCompound SerializeData ()
 
override string ToString ()
 
TagCompound SerializeData ()
 

Static Public Member Functions

static NPCDefinition FromString (string s)
 
static NPCDefinition Load (TagCompound tag)
 

Static Public Attributes

static readonly Func< TagCompound, NPCDefinitionDESERIALIZER = Load
 

Properties

override int Type [get]
 
- Properties inherited from Terraria.ModLoader.Config.EntityDefinition
bool IsUnloaded [get]
 
abstract int Type [get]
 

Additional Inherited Members

- Public Attributes inherited from Terraria.ModLoader.Config.EntityDefinition
string mod
 
string name
 

Detailed Description

Definition at line 110 of file EntityDefinition.cs.

Constructor & Destructor Documentation

◆ NPCDefinition() [1/4]

Terraria.ModLoader.Config.NPCDefinition.NPCDefinition ( )

Definition at line 112 of file EntityDefinition.cs.

112: base() { }

◆ NPCDefinition() [2/4]

Terraria.ModLoader.Config.NPCDefinition.NPCDefinition ( int  type)

Definition at line 113 of file EntityDefinition.cs.

113: base(NPCID.GetUniqueKey(type)) { }

◆ NPCDefinition() [3/4]

Terraria.ModLoader.Config.NPCDefinition.NPCDefinition ( string  key)

Definition at line 114 of file EntityDefinition.cs.

114: base(key) { }

◆ NPCDefinition() [4/4]

Terraria.ModLoader.Config.NPCDefinition.NPCDefinition ( string  mod,
string  name 
)

Member Function Documentation

◆ FromString()

static NPCDefinition Terraria.ModLoader.Config.NPCDefinition.FromString ( string  s)
static

◆ Load()

static NPCDefinition Terraria.ModLoader.Config.NPCDefinition.Load ( TagCompound  tag)
static

Member Data Documentation

◆ DESERIALIZER

readonly Func<TagCompound, NPCDefinition> Terraria.ModLoader.Config.NPCDefinition.DESERIALIZER = Load
static

Definition at line 121 of file EntityDefinition.cs.

Property Documentation

◆ Type

override int Terraria.ModLoader.Config.NPCDefinition.Type
get

Definition at line 117 of file EntityDefinition.cs.