Mercurial > hg > Database > jungle-sharp
comparison src/main/csharp/jp.ac.u-ryukyu.ie.cr/jungle/store/operations/DeleteChildAtOperation.cs @ 0:dec15de2c6ff
first commit
author | Kazuma |
---|---|
date | Tue, 21 Jun 2016 17:11:12 +0900 |
parents | |
children | 4d08270a61c8 02b2ab7bffe6 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:dec15de2c6ff |
---|---|
1 using UnityEngine; | |
2 using System.Collections; | |
3 using System; | |
4 | |
5 public class DeleteChildAtOperation : NodeOperation { | |
6 private int pos; | |
7 | |
8 public DeleteChildAtOperation(int _pos) | |
9 { | |
10 pos = _pos; | |
11 } | |
12 | |
13 | |
14 public Command getCommand() | |
15 { | |
16 return Command.DELETE_CHILD; | |
17 } | |
18 | |
19 public Either<Error, TreeNode> invoke(TreeNode _target) | |
20 { | |
21 return _target.getChildren().deleteChildAt(pos); | |
22 } | |
23 | |
24 public int getPosition() | |
25 { | |
26 return pos; | |
27 } | |
28 | |
29 public string getKey() | |
30 { | |
31 return null; | |
32 } | |
33 | |
34 public GameObject getValue() | |
35 { | |
36 return null; | |
37 } | |
38 | |
39 } |