少年修仙传客户端代码仓库
hch
2025-03-03 28785d6ddf9c08e49527ede9405c7b6c93c6ed32
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using UnityEngine;
using System.Collections;
 
// B3 14 社交人群伴侣信息 #tagGCSocialCouples
 
public class IL_HB314_tagGCSocialCouples : GameNetPackBasic {
    public ushort Count;
    public  tagGCSocialCouple[] Player;    //size = Count
 
    public IL_HB314_tagGCSocialCouples () {
        _cmd = (ushort)0xB314;
    }
 
    public override void ReadFromBytes (byte[] vBytes) {
        TransBytes (out Count, vBytes, NetDataType.WORD);
        Player = new tagGCSocialCouple[Count];
        for (int i = 0; i < Count; i ++) {
            Player[i] = new tagGCSocialCouple();
            TransBytes (out Player[i].PlayerID, vBytes, NetDataType.DWORD);
            TransBytes (out Player[i].CoupleID, vBytes, NetDataType.DWORD);
        }
    }
 
    public struct tagGCSocialCouple {
        public uint PlayerID;
        public uint CoupleID;        //伴侣ID
    }
 
}