Class EntityTemplateBase<TSelf>
- Namespace
- AlphaFramework.World.Templates
- Assembly
- AlphaFramework.World.dll
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>.
public abstract class EntityTemplateBase<TSelf> : Template<TSelf>, INamed, IHighlightColor, ICloneable, IComparable<TSelf> where TSelf : EntityTemplateBase<TSelf>
Type Parameters
TSelf
- Inheritance
-
Template<TSelf>EntityTemplateBase<TSelf>
- Implements
-
IComparable<TSelf>
- Derived
- Inherited Members
- Extension Methods
Properties
Movement
Controls the basic movement parameters.
[Browsable(false)]
public Movement? Movement { get; set; }
Property Value
Render
Controls how this class of entities shall be rendered.
[Browsable(false)]
public Collection<Render> Render { get; }
Property Value
Methods
Clone()
Creates a deep copy of this EntityTemplateBase<TSelf>.
public override TSelf Clone()
Returns
- TSelf
The cloned EntityTemplateBase<TSelf>.