Terraria ModLoader  0.11.5
A framework for Terraria mods
Terraria.ModLoader.Config.PrefixDefinition Class Reference
+ Inheritance diagram for Terraria.ModLoader.Config.PrefixDefinition:
+ Collaboration diagram for Terraria.ModLoader.Config.PrefixDefinition:

Public Member Functions

 PrefixDefinition ()
 
 PrefixDefinition (int type)
 
 PrefixDefinition (string key)
 
 PrefixDefinition (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 PrefixDefinition FromString (string s)
 
static PrefixDefinition Load (TagCompound tag)
 

Public Attributes

override int Type => PrefixID.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, PrefixDefinitionDESERIALIZER = Load
 

Additional Inherited Members

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

Detailed Description

Definition at line 126 of file EntityDefinition.cs.

Constructor & Destructor Documentation

Terraria.ModLoader.Config.PrefixDefinition.PrefixDefinition ( )

Definition at line 128 of file EntityDefinition.cs.

128 : base() { }
Terraria.ModLoader.Config.PrefixDefinition.PrefixDefinition ( int  type)

Definition at line 129 of file EntityDefinition.cs.

129 : base(PrefixID.GetUniqueKey((byte)type)) { }
Terraria.ModLoader.Config.PrefixDefinition.PrefixDefinition ( string  key)

Definition at line 130 of file EntityDefinition.cs.

130 : base(key) { }
Terraria.ModLoader.Config.PrefixDefinition.PrefixDefinition ( string  mod,
string  name 
)

Member Function Documentation

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

Member Data Documentation

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

Definition at line 137 of file EntityDefinition.cs.

override int Terraria.ModLoader.Config.PrefixDefinition.Type => PrefixID.TypeFromUniqueKey(mod, name)

Definition at line 133 of file EntityDefinition.cs.