Mercurial > hg > Database > jungle-sharp
view Test/jungle-network/operations/NetworkTreeOperationLogTest.cs @ 41:bd44baa491a9 default tip
add TestJungleCore.cs
author | Kazuma Takeda |
---|---|
date | Thu, 23 Feb 2017 17:19:55 +0900 |
parents | e954d456665c |
children |
line wrap: on
line source
// using UnityEngine; using System.Collections; using MsgPack; using JungleDB; public class NetworkTreeOperationLogTest : MonoBehaviour { // Use this for initialization void Start () { // not work yet 10/23 13:33 // NetworkAppendChildAtOperation op = new NetworkAppendChildAtOperation(1); // NetworkNodePath path = new NetworkNodePath(); // NodePath npath = (NodePath)path.add(1); // NetworkTreeOperationLog log = new NetworkTreeOperationLog(); // log.add(npath, op); // ObjectPacker pack = new ObjectPacker(); // byte[] value = pack.Pack(log); // // // unpackage // ObjectPacker unpack = new ObjectPacker(); // NetworkTreeOperationLog mOp = unpack.Unpack<NetworkTreeOperationLog>(value); // foreach (var m in mOp) { // print(m.getNodeOperation()); // } } }