少年修仙传客户端代码仓库
hch
2025-06-12 204ef05a831c9484e2abc561d27ecbff7c797453
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
using UnityEngine;
using System.Collections;
 
//A5 04 玩家领取奖励 #tagCMPlayerGetReward
 
class IL_CA504_tagCMPlayerGetReward : GameNetPackBasic
{
    public byte RewardType;    //奖励类型
    public uint DataEx;    //附带信息
    public byte DataExStrLen;    //附加字符信息长度
    public string DataExStr;    //附加字符信息
 
    public IL_CA504_tagCMPlayerGetReward()
    {
        combineCmd = (ushort)0x03FE;
        _cmd = (ushort)0xA504;
    }
 
    public override void WriteToBytes()
    {
        WriteBytes(RewardType, NetDataType.BYTE);
        WriteBytes(DataEx, NetDataType.DWORD);
        WriteBytes(DataExStrLen, NetDataType.BYTE);
        WriteBytes(DataExStr, NetDataType.Chars, DataExStrLen);
    }
 
}