예제 #1
0
        public byte[] toBytes()
        {
            int total = this.getMySize();

            byte[] data   = new byte[total];
            int    offset = 0;

            ProtoUtil.IntMemberToBytes(data, 1, ref offset, this.roleId, true, 0);
            ProtoUtil.IntMemberToBytes(data, 2, ref offset, this.magicCode, true, 0);
            ProtoUtil.ListToBytes <SpriteHitedInnerData>(this.enemys, 3, ref offset, data);
            return(data);
        }