コード例 #1
0
    public void ReqGetReward(ref List <uint> lstIds)
    {
        stReqGetRewardDataUserCmd_CS cmd = new GameCmd.stReqGetRewardDataUserCmd_CS();

        cmd.id.AddRange(lstIds);
        NetService.Instance.Send(cmd);
    }
コード例 #2
0
 public void Execute(GameCmd.stReqGetRewardDataUserCmd_CS cmd)
 {
     if (cmd.is_get)
     {
         for (int i = 0; i < cmd.id.Count; i++)
         {
             DataManager.Manager <WelfareManager>().UpdateWelfaregGotReward(cmd.id[i], i == cmd.id.Count - 1 ? true : false);
         }
     }
 }