Terraria ModLoader  0.11.4
A framework for 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 mod, string name)
 
 EntityDefinition (string key)
 
override bool Equals (object obj)
 
override int GetHashCode ()
 
TagCompound SerializeData ()
 
override string ToString ()
 

Static Public Member Functions

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

Public Attributes

override int Type => NPCID.TypeFromUniqueKey(mod, name)
 
- Public Attributes inherited from Terraria.ModLoader.Config.EntityDefinition
bool IsUnloaded => Type == 0 && !(mod == "Terraria" && name == "None" || mod == "" && name == "")
 
string mod
 
string name
 

Static Public Attributes

static readonly Func< TagCompound, NPCDefinitionDESERIALIZER = Load
 

Additional Inherited Members

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

Detailed Description

Definition at line 110 of file EntityDefinition.cs.

Constructor & Destructor Documentation

Terraria.ModLoader.Config.NPCDefinition.NPCDefinition ( )

Definition at line 112 of file EntityDefinition.cs.

112 : base() { }
Terraria.ModLoader.Config.NPCDefinition.NPCDefinition ( int  type)

Definition at line 113 of file EntityDefinition.cs.

113 : base(NPCID.GetUniqueKey(type)) { }
Terraria.ModLoader.Config.NPCDefinition.NPCDefinition ( string  key)

Definition at line 114 of file EntityDefinition.cs.

114 : base(key) { }
Terraria.ModLoader.Config.NPCDefinition.NPCDefinition ( string  mod,
string  name 
)

Member Function Documentation

static NPCDefinition Terraria.ModLoader.Config.NPCDefinition.FromString ( string  s)
static
static NPCDefinition Terraria.ModLoader.Config.NPCDefinition.Load ( TagCompound  tag)
static

Member Data Documentation

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

Definition at line 121 of file EntityDefinition.cs.

override int Terraria.ModLoader.Config.NPCDefinition.Type => NPCID.TypeFromUniqueKey(mod, name)

Definition at line 117 of file EntityDefinition.cs.