少年修仙传客户端代码仓库
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
using UnityEngine;
using System.Collections;
 
// B3 10 送礼物 #tagCMSendGifts
 
public class IL_CB310_tagCMSendGifts : GameNetPackBasic {
    public uint TagPlayerID;    // 目标玩家ID
    public ushort GiftNum;    // 赠送礼物编号
    public uint GiftCount;    // 赠送礼物数量
    public byte IsAutoBuy;    // 是否自动购买
 
    public IL_CB310_tagCMSendGifts () {
        combineCmd = (ushort)0x03FE;
        _cmd = (ushort)0xB310;
    }
 
    public override void WriteToBytes () {
        WriteBytes (TagPlayerID, NetDataType.DWORD);
        WriteBytes (GiftNum, NetDataType.WORD);
        WriteBytes (GiftCount, NetDataType.DWORD);
        WriteBytes (IsAutoBuy, NetDataType.BYTE);
    }
 
}