public EditPathObjectTypeCommand(WorldEditor worldEditor, IWorldObject parent, PathObjectTypeNode pathObjectTypeNode, PathObjectType beforePathObjectType, PathObjectType afterPathObjectType) { this.app = worldEditor; this.parent = parent; this.pathObjectTypeNode = pathObjectTypeNode; this.beforePathObjectType = beforePathObjectType; this.afterPathObjectType = afterPathObjectType; }
public void Execute() { pathObjectTypeNode = new PathObjectTypeNode(app, parent, pathObjectType); parent.Add(pathObjectTypeNode); }
public void Remove(PathObjectTypeNode pathObjectType) { pathObjectTypes.Remove(pathObjectType); pathObjectType.RemoveFromTree(); }
public void Add(PathObjectTypeNode pathObjectType) { pathObjectTypes.Add(pathObjectType); pathObjectType.AddToTree(node); }
public EditPathObjectTypeCommandFactory(WorldEditor app, IWorldObject parent, PathObjectTypeNode pathObjectTypeNode) { this.app = app; this.parent = parent; this.pathObjectTypeNode = pathObjectTypeNode; }
public DeletePathObjectTypeCommandFactory(WorldEditor app, PathObjectTypeContainer parent, PathObjectTypeNode pathObjectType) { this.app = app; this.parent = parent; this.pathObjectType = pathObjectType; }
public DeletePathObjectTypeCommand(WorldEditor worldEditor, PathObjectTypeContainer parent, PathObjectTypeNode pathObjectTypeNode) { this.app = worldEditor; this.parent = parent; this.pathObjectTypeNode = pathObjectTypeNode; }