コード例 #1
0
 public static void RequestTakeSevenDayReward(SevenDayRewardDataEx data)
 {
     if (data == null || data.Data == null || data.Info == null)
     {
         global::Debug.LogError(new object[]
         {
             "Data error"
         });
         return;
     }
     if (data.Data.TakeReward)
     {
         global::Debug.LogError(new object[]
         {
             "Reward taken."
         });
         return;
     }
     if (!data.IsComplete())
     {
         global::Debug.LogError(new object[]
         {
             "SevenDayReward has not Complete."
         });
         return;
     }
     MC2S_TakeSevenDayReward mC2S_TakeSevenDayReward = new MC2S_TakeSevenDayReward();
     mC2S_TakeSevenDayReward.ID = data.Data.ID;
     Globals.Instance.CliSession.Send(722, mC2S_TakeSevenDayReward);
 }
コード例 #2
0
ファイル: CommandParser.cs プロジェクト: floatyears/Decrypt
 private void HandleTakeSevenDayRewardCmd(CommandParser.Command param)
 {
     int iD = 0;
     int.TryParse(param.GetParam(1), out iD);
     MC2S_TakeSevenDayReward mC2S_TakeSevenDayReward = new MC2S_TakeSevenDayReward();
     mC2S_TakeSevenDayReward.ID = iD;
     Globals.Instance.CliSession.Send(722, mC2S_TakeSevenDayReward);
 }