public void ReqGetReward(ref List <uint> lstIds) { stReqGetRewardDataUserCmd_CS cmd = new GameCmd.stReqGetRewardDataUserCmd_CS(); cmd.id.AddRange(lstIds); NetService.Instance.Send(cmd); }
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); } } }