Exemple #1
0
 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 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 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;
 }
Exemple #9
0
 public DeletePathObjectTypeCommand(WorldEditor worldEditor, PathObjectTypeContainer parent, PathObjectTypeNode pathObjectTypeNode)
 {
     this.app                = worldEditor;
     this.parent             = parent;
     this.pathObjectTypeNode = pathObjectTypeNode;
 }
Exemple #10
0
 public DeletePathObjectTypeCommandFactory(WorldEditor app, PathObjectTypeContainer parent, PathObjectTypeNode pathObjectType)
 {
     this.app            = app;
     this.parent         = parent;
     this.pathObjectType = pathObjectType;
 }
Exemple #11
0
 public void Remove(PathObjectTypeNode pathObjectType)
 {
     pathObjectTypes.Remove(pathObjectType);
     pathObjectType.RemoveFromTree();
 }
Exemple #12
0
 public EditPathObjectTypeCommandFactory(WorldEditor app, IWorldObject parent, PathObjectTypeNode pathObjectTypeNode)
 {
     this.app                = app;
     this.parent             = parent;
     this.pathObjectTypeNode = pathObjectTypeNode;
 }
Exemple #13
0
 public void Add(PathObjectTypeNode pathObjectType)
 {
     pathObjectTypes.Add(pathObjectType);
     pathObjectType.AddToTree(node);
 }
Exemple #14
0
 public void Execute()
 {
     pathObjectTypeNode = new PathObjectTypeNode(app, parent, pathObjectType);
     parent.Add(pathObjectTypeNode);
 }