Mercurial > hg > Database > jungle-sharp
annotate src/test/csharp/jp.ac.u-ryukyu.ie.cr/jungle-network/operations/NetworkDeleteAttributeOperationTest.cs @ 17:01a08cf4b2d9
Liq Files
author | Kazuma |
---|---|
date | Mon, 07 Nov 2016 01:05:24 +0900 |
parents | 4c8932dad7b2 |
children |
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 NetworkDeleteAttributeOperationTest : 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 NetworkDeleteAttributeOperation op = new NetworkDeleteAttributeOperation("hoge"); |
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 NetworkDeleteAttributeOperation mOp = unpack.Unpack<NetworkDeleteAttributeOperation>(value); |
4c8932dad7b2
Add Test and only NetworkTreeOperationLogTest.cs not work.
Kazuma
parents:
diff
changeset
|
16 print(mOp.getKey()); |
4c8932dad7b2
Add Test and only NetworkTreeOperationLogTest.cs not work.
Kazuma
parents:
diff
changeset
|
17 } |
4c8932dad7b2
Add Test and only NetworkTreeOperationLogTest.cs not work.
Kazuma
parents:
diff
changeset
|
18 } |