Skip to content

Instantly share code, notes, and snippets.

@tsubaki
tsubaki / DataClass.cs
Created December 14, 2013 02:17
msgpack with unity sample. used msgpack_cli(project=MsgPack.compats.Net.3.5 ,target framework=mono3.5). builded binary https://www.dropbox.com/s/rbnamvknbvwx58h/MsgPack.dll
using MsgPack;
public class DataClass : IPackable, IUnpackable{
public string data;
public int count;
public void UnpackFromMessage (Unpacker unpacker)
{
unpacker.ReadInt32(out count);
unpacker.ReadString(out data);