Class ChangeEntityTemplates
- Namespace
- AlphaFramework.Editor.World.Commands
- Assembly
- AlphaFramework.Editor.dll
Changes the TemplateName property of one or more EntityBase<TCoordinates, TTemplate>s.
public class ChangeEntityTemplates : SimpleCommand, IUndoCommand
- Inheritance
-
objectChangeEntityTemplates
- Implements
- Inherited Members
Constructors
ChangeEntityTemplates(IEnumerable<ITemplated>, string)
Creates a new command for changing the EntityTemplateBase<TSelf> of one or more EntityBase<TCoordinates, TTemplate>s.
public ChangeEntityTemplates(IEnumerable<ITemplated> entities, string template)
Parameters
entitiesIEnumerable<ITemplated>The EntityBase<TCoordinates, TTemplate>s to modify.
templatestringThe name of the new EntityTemplateBase<TSelf> to set.
Methods
OnExecute()
protected override void OnExecute()
OnUndo()
protected override void OnUndo()