20
|
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
|
28
|
10 // NetworkAppendChildAtOperation op = new NetworkAppendChildAtOperation(1);
|
|
11 // NetworkNodePath path = new NetworkNodePath();
|
|
12 // NodePath npath = (NodePath)path.add(1);
|
20
|
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 }
|