annotate src/test/csharp/jp.ac.u-ryukyu.ie.cr/jungle-network/operations/NetworkDeleteChildAtOperationTest.cs @ 13:4c8932dad7b2

Add Test and only NetworkTreeOperationLogTest.cs not work.
author Kazuma
date Sun, 23 Oct 2016 13:35:21 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
13
4c8932dad7b2 Add Test and only NetworkTreeOperationLogTest.cs not work.
Kazuma
parents:
diff changeset
1 using UnityEngine;
4c8932dad7b2 Add Test and only NetworkTreeOperationLogTest.cs not work.
Kazuma
parents:
diff changeset
2 using System.Collections;
4c8932dad7b2 Add Test and only NetworkTreeOperationLogTest.cs not work.
Kazuma
parents:
diff changeset
3 using MsgPack;
4c8932dad7b2 Add Test and only NetworkTreeOperationLogTest.cs not work.
Kazuma
parents:
diff changeset
4
4c8932dad7b2 Add Test and only NetworkTreeOperationLogTest.cs not work.
Kazuma
parents:
diff changeset
5 public class NetworkDeleteChildAtOperationTest : MonoBehaviour {
4c8932dad7b2 Add Test and only NetworkTreeOperationLogTest.cs not work.
Kazuma
parents:
diff changeset
6
4c8932dad7b2 Add Test and only NetworkTreeOperationLogTest.cs not work.
Kazuma
parents:
diff changeset
7 // Use this for initialization
4c8932dad7b2 Add Test and only NetworkTreeOperationLogTest.cs not work.
Kazuma
parents:
diff changeset
8 void Start () {
4c8932dad7b2 Add Test and only NetworkTreeOperationLogTest.cs not work.
Kazuma
parents:
diff changeset
9 NetworkDeleteChildAtOperation op = new NetworkDeleteChildAtOperation(1);
4c8932dad7b2 Add Test and only NetworkTreeOperationLogTest.cs not work.
Kazuma
parents:
diff changeset
10 ObjectPacker pack = new ObjectPacker();
4c8932dad7b2 Add Test and only NetworkTreeOperationLogTest.cs not work.
Kazuma
parents:
diff changeset
11 byte[] value = pack.Pack(op);
4c8932dad7b2 Add Test and only NetworkTreeOperationLogTest.cs not work.
Kazuma
parents:
diff changeset
12
4c8932dad7b2 Add Test and only NetworkTreeOperationLogTest.cs not work.
Kazuma
parents:
diff changeset
13 // unpackage
4c8932dad7b2 Add Test and only NetworkTreeOperationLogTest.cs not work.
Kazuma
parents:
diff changeset
14 ObjectPacker unpack = new ObjectPacker();
4c8932dad7b2 Add Test and only NetworkTreeOperationLogTest.cs not work.
Kazuma
parents:
diff changeset
15 NetworkDeleteChildAtOperation mOp = unpack.Unpack<NetworkDeleteChildAtOperation>(value);
4c8932dad7b2 Add Test and only NetworkTreeOperationLogTest.cs not work.
Kazuma
parents:
diff changeset
16 print(mOp.getPosition());
4c8932dad7b2 Add Test and only NetworkTreeOperationLogTest.cs not work.
Kazuma
parents:
diff changeset
17 print(mOp.getCommand());
4c8932dad7b2 Add Test and only NetworkTreeOperationLogTest.cs not work.
Kazuma
parents:
diff changeset
18 }
4c8932dad7b2 Add Test and only NetworkTreeOperationLogTest.cs not work.
Kazuma
parents:
diff changeset
19 }