Mercurial > hg > Database > jungle-sharp
view Test/jungle-network/operations/NetworkAppendChildOperationTest.cs @ 38:e954d456665c
library is made by rake
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 22 Feb 2017 16:58:10 +0900 |
parents | 1f99e150f336 |
children |
line wrap: on
line source
// using UnityEngine; using System.Collections; using MsgPack; using JungleDB; // http://qiita.com/snaka/items/8da9f89deeef17b1923a // message pack refarence URL. public class NetworkAppendChildOperationTest : MonoBehaviour { // Use this for initialization void Start () { NetworkAppendChildAtOperation op = new NetworkAppendChildAtOperation(1); ObjectPacker pack = new ObjectPacker(); byte[] value = pack.Pack(op); // unpackage ObjectPacker unpack = new ObjectPacker(); NetworkAppendChildAtOperation mOp = unpack.Unpack<NetworkAppendChildAtOperation>(value); print(mOp.getPosition()); // add position 1 , get what number? } }