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
-
ChangeEntityTemplates
- Implements
- Inherited Members
- Extension Methods
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
entities
IEnumerable<ITemplated>The EntityBase<TCoordinates, TTemplate>s to modify.
template
stringThe name of the new EntityTemplateBase<TSelf> to set.
Methods
OnExecute()
Template method to perform the desired action.
protected override void OnExecute()
OnUndo()
Template method to undo the changes made by OnExecute().
protected override void OnUndo()