public override byte[] toBinary() { writer = new st.net.NetBase.ByteWriter(); ushort lentreasure_info = (ushort)treasure_info.Count; writer.write_short(lentreasure_info); for (int i_treasure_info = 0; i_treasure_info < lentreasure_info; i_treasure_info++) { st.net.NetBase.treasure_list listData = treasure_info[i_treasure_info]; listData.toBinary(writer); } return(writer.data); }
public override byte[] toBinary() { writer = new st.net.NetBase.ByteWriter(); ushort lenreward = (ushort)reward.Count; writer.write_short(lenreward); for (int i_reward = 0; i_reward < lenreward; i_reward++) { st.net.NetBase.treasure_list listData = reward[i_reward]; listData.toBinary(writer); } return(writer.data); }