Mercurial > hg > Database > jungle-sharp
comparison Test/jungle-network/operations/NetworkTreeOperationLogTest.cs @ 20:1f99e150f336
fix folder and add Object Mapper.
author | Kazuma Takeda |
---|---|
date | Thu, 15 Dec 2016 22:52:48 +0900 |
parents | |
children | 9588ad364fdd |
comparison
equal
deleted
inserted
replaced
19:0865819106cf | 20:1f99e150f336 |
---|---|
1 using UnityEngine; | |
2 using System.Collections; | |
3 using MsgPack; | |
4 using JungleDB; | |
5 | |
6 public class NetworkTreeOperationLogTest : MonoBehaviour { | |
7 | |
8 // Use this for initialization | |
9 void Start () { // not work yet 10/23 13:33 | |
10 NetworkAppendChildAtOperation op = new NetworkAppendChildAtOperation(1); | |
11 NetworkNodePath path = new NetworkNodePath(); | |
12 NodePath npath = (NodePath)path.add(1); | |
13 | |
14 // NetworkTreeOperationLog log = new NetworkTreeOperationLog(); | |
15 // log.add(npath, op); | |
16 // ObjectPacker pack = new ObjectPacker(); | |
17 // byte[] value = pack.Pack(log); | |
18 // | |
19 // // unpackage | |
20 // ObjectPacker unpack = new ObjectPacker(); | |
21 // NetworkTreeOperationLog mOp = unpack.Unpack<NetworkTreeOperationLog>(value); | |
22 // foreach (var m in mOp) { | |
23 // print(m.getNodeOperation()); | |
24 // } | |
25 } | |
26 } |