comparison src/main/csharp/jp.ac.u-ryukyu.ie.cr/jungle-network/operations/NetworkDeleteChildAtOperation.cs @ 12:b71d9ea6bd8e

Add Network Operation Class. this codes can not test yet.
author Kazuma
date Sun, 23 Oct 2016 12:25:57 +0900
parents
children
comparison
equal deleted inserted replaced
11:220433691c2e 12:b71d9ea6bd8e
1 using UnityEngine;
2 using System.Collections;
3
4 public class NetworkDeleteChildAtOperation : NodeOperation {
5
6 private int Position;
7
8 public NetworkDeleteChildAtOperation () {
9
10 }
11
12 public NetworkDeleteChildAtOperation(int pos) {
13 this.Position = pos;
14 }
15
16 public Command getCommand () {
17 return Command.DELETE_CHILD;
18 }
19
20 public Either<Error, TreeNode> invoke (TreeNode target) {
21 return target.getChildren().deleteChildAt(this.Position);
22 }
23
24 public int getPosition () {
25 return this.Position;
26 }
27
28 public string getKey() {
29 return null;
30 }
31
32 public byte[] getValue () {
33 return null;
34 }
35 }