![]() |
tModLoader v2022.09
A mod to make and play Terraria mods
|
Classes implementing EntityDefinition serve to function as a way to save and load the identities of various Terraria objects. Only the identity is preserved, no other data such as stack size, damage, etc. These classes are well suited for ModConfig, but can be saved and loaded in a TagCompound as well. More...
Inherits Terraria.ModLoader.IO.TagSerializable.
Inherited by Terraria.ModLoader.Config.ItemDefinition, Terraria.ModLoader.Config.NPCDefinition, Terraria.ModLoader.Config.PrefixDefinition, and Terraria.ModLoader.Config.ProjectileDefinition.
Public Member Functions | |
EntityDefinition (string key) | |
EntityDefinition (string mod, string name) | |
override bool | Equals (object obj) |
override int | GetHashCode () |
TagCompound | SerializeData () |
override string | ToString () |
TagCompound | SerializeData () |
Public Attributes | |
string | Mod |
string | Name |
Properties | |
bool | IsUnloaded [get] |
abstract int | Type [get] |
Classes implementing EntityDefinition serve to function as a way to save and load the identities of various Terraria objects. Only the identity is preserved, no other data such as stack size, damage, etc. These classes are well suited for ModConfig, but can be saved and loaded in a TagCompound as well.
TagCompound Terraria.ModLoader.Config.EntityDefinition.SerializeData | ( | ) |
Implements Terraria.ModLoader.IO.TagSerializable.