public override byte[] toBinary() { writer = new st.net.NetBase.ByteWriter(); ushort lenother_bonfire_list = (ushort)other_bonfire_list.Count; writer.write_short(lenother_bonfire_list); for (int i_other_bonfire_list = 0; i_other_bonfire_list < lenother_bonfire_list; i_other_bonfire_list++) { st.net.NetBase.other_bonfire_list listData = other_bonfire_list[i_other_bonfire_list]; listData.toBinary(writer); } return(writer.data); }
/// <summary> /// 填充数据 /// </summary> /// <param name="_info"></param> public void FillInfo(st.net.NetBase.other_bonfire_list _info) { if (_info == null) { guildBonfireInfo = null; return; } else { guildBonfireInfo = _info; } RefreshMarketItem(); }
public override void fromBinary(byte[] binary) { reader = new st.net.NetBase.ByteReader(binary); ushort lenother_bonfire_list = reader.Read_ushort(); other_bonfire_list = new List <st.net.NetBase.other_bonfire_list>(); for (int i_other_bonfire_list = 0; i_other_bonfire_list < lenother_bonfire_list; i_other_bonfire_list++) { st.net.NetBase.other_bonfire_list listData = new st.net.NetBase.other_bonfire_list(); listData.fromBinary(reader); other_bonfire_list.Add(listData); } }