AlphaFramework API
1.0.3
|
A set of data used as a prototype for constructing new objects at runtime. More...
Public Member Functions | |
override string | ToString () |
virtual TSelf | Clone () |
Creates a deep copy of this TSelf . More... | |
Static Public Member Functions | |
static void | LoadAll () |
Loads the list of Template<TSelf>s from FileName. More... | |
Static Public Attributes | |
static string | FileName => typeof(TSelf).Name + "s.xml" |
The XML file Template<TSelf> instances are stored in. More... | |
Properties | |
string | Name [get, set] |
The name of this class. Used in map files as a reference. Must be unique and is case-sensitive! More... | |
Color | HighlightColor [get] |
The color to highlight this class with in list representations. Color.Empty for no highlighting. More... | |
string | Description [get, set] |
A short English description of this class for developers. More... | |
static NamedCollection< TSelf > | All [get] |
A list of all loaded Template<TSelf>s. More... | |
Properties inherited from NanoByte.Common.INamed< TSelf > | |
string | Name |
Properties inherited from NanoByte::Common::Controls::IHighlightColor | |
Color | HighlightColor |
A set of data used as a prototype for constructing new objects at runtime.
TSelf | The type of the class itself. |
TSelf | : | Template<TSelf> |
|
inlinevirtual |
Creates a deep copy of this TSelf .
Implements NanoByte::Common::ICloneable< T >.
Reimplemented in AlphaFramework.World.Templates.EntityTemplateBase< TSelf >.
|
inlinestatic |
Loads the list of Template<TSelf>s from FileName.
|
static |
The XML file Template<TSelf> instances are stored in.
|
staticget |
A list of all loaded Template<TSelf>s.
|
getset |
A short English description of this class for developers.
|
get |
The color to highlight this class with in list representations. Color.Empty for no highlighting.
|
getset |
The name of this class. Used in map files as a reference. Must be unique and is case-sensitive!