AlphaFramework API
1.0.3
|
A common base for entity templates (collection of components used as a prototype for constructing new entities). Defines the behavior and look for a certain class of EntityBase<TCoordinates,TTemplate>. More...
Public Member Functions | |
override TSelf | Clone () |
Creates a deep copy of this EntityTemplateBase<TSelf>. More... | |
Public Member Functions inherited from AlphaFramework.World.Templates.Template< TSelf > | |
override string | ToString () |
Public Attributes | |
Collection< Render > | Render => _render |
Controls how this class of entities shall be rendered. More... | |
Properties | |
Movement | Movement [get, set] |
Controls the basic movement parameters. More... | |
Properties inherited from AlphaFramework.World.Templates.Template< TSelf > | |
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 |
Additional Inherited Members | |
Static Public Member Functions inherited from AlphaFramework.World.Templates.Template< TSelf > | |
static void | LoadAll () |
Loads the list of Template<TSelf>s from FileName. More... | |
Static Public Attributes inherited from AlphaFramework.World.Templates.Template< TSelf > | |
static string | FileName => typeof(TSelf).Name + "s.xml" |
The XML file Template<TSelf> instances are stored in. More... | |
A common base for entity templates (collection of components used as a prototype for constructing new entities). Defines the behavior and look for a certain class of EntityBase<TCoordinates,TTemplate>.
TSelf | : | EntityTemplateBase<TSelf> |
|
inlinevirtual |
Creates a deep copy of this EntityTemplateBase<TSelf>.
Reimplemented from AlphaFramework.World.Templates.Template< TSelf >.
Collection<Render> AlphaFramework.World.Templates.EntityTemplateBase< TSelf >.Render => _render |
Controls how this class of entities shall be rendered.
|
getset |
Controls the basic movement parameters.