public void addToStreamEx(Bundle stream, MATCHING_INFOS v)
 {
     stream.writeInt32(v.id);
     stream.writeUnicode(v.name);
     stream.writeInt32(v.teamId);
     stream.writeInt32(v.heroId);
     heroIdLst_DataType.addToStreamEx(stream, v.heroIdLst);
 }
Example #2
0
 public void addToStreamEx(Bundle stream, MATCHING_INFOS v)
 {
     stream.writeInt32(v.id);
     stream.writeUnicode(v.name);
     stream.writeUint8(v.roleType);
     stream.writeInt32(v.weaponId);
     stream.writeUint8(v.roomId);
     stream.writeUint8(v.roomPosition);
     stream.writeUint8(v.teamId);
 }
Example #3
0
 public override void onPushMatchPlayersData(MATCHING_INFOS_LIST infos)
 {
     for (int i = 0; i < infos.values.Count; i++)
     {
         MATCHING_INFOS info = infos.values[i];
         Debug.Log("i::" + i + "info.id:::" + info.id);
         matchInfosDict[info.id] = info;
     }
     Debug.Log("matchInfosDict::::count" + matchInfosDict.Count + ",infos::::count:::" + infos.values.Count);
 }
        public MATCHING_INFOS createFromStreamEx(MemoryStream stream)
        {
            MATCHING_INFOS datas = new MATCHING_INFOS();

            datas.id        = stream.readInt32();
            datas.name      = stream.readUnicode();
            datas.teamId    = stream.readInt32();
            datas.heroId    = stream.readInt32();
            datas.heroIdLst = heroIdLst_DataType.createFromStreamEx(stream);
            return(datas);
        }
Example #5
0
        public MATCHING_INFOS createFromStreamEx(MemoryStream stream)
        {
            MATCHING_INFOS datas = new MATCHING_INFOS();

            datas.id           = stream.readInt32();
            datas.name         = stream.readUnicode();
            datas.roleType     = stream.readUint8();
            datas.weaponId     = stream.readInt32();
            datas.roomId       = stream.readUint8();
            datas.roomPosition = stream.readUint8();
            datas.teamId       = stream.readUint8();
            return(datas);
        }