Mercurial > hg > Database > jungle-sharp
comparison 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 |
comparison
equal
deleted
inserted
replaced
16:8f1ce942abfc | 17:01a08cf4b2d9 |
---|---|
1 using UnityEngine; | |
2 using System.Collections; | |
3 using MsgPack; | |
4 | |
5 public class NetworkDeleteAttributeOperationTest : MonoBehaviour { | |
6 | |
7 // Use this for initialization | |
8 void Start () { | |
9 NetworkDeleteAttributeOperation op = new NetworkDeleteAttributeOperation("hoge"); | |
10 ObjectPacker pack = new ObjectPacker(); | |
11 byte[] value = pack.Pack(op); | |
12 | |
13 // unpackage | |
14 ObjectPacker unpack = new ObjectPacker(); | |
15 NetworkDeleteAttributeOperation mOp = unpack.Unpack<NetworkDeleteAttributeOperation>(value); | |
16 print(mOp.getKey()); | |
17 } | |
18 } |