public override void fromBinary(byte[] binary) { reader = new st.net.NetBase.ByteReader(binary); ushort lentreasure_info = reader.Read_ushort(); treasure_info = new List <st.net.NetBase.treasure_list>(); for (int i_treasure_info = 0; i_treasure_info < lentreasure_info; i_treasure_info++) { st.net.NetBase.treasure_list listData = new st.net.NetBase.treasure_list(); listData.fromBinary(reader); treasure_info.Add(listData); } }
public override void fromBinary(byte[] binary) { reader = new st.net.NetBase.ByteReader(binary); ushort lenreward = reader.Read_ushort(); reward = new List <st.net.NetBase.treasure_list>(); for (int i_reward = 0; i_reward < lenreward; i_reward++) { st.net.NetBase.treasure_list listData = new st.net.NetBase.treasure_list(); listData.fromBinary(reader); reward.Add(listData); } }