Exemple #1
0
 public void LoadStatistic(ref COMDT_WEAL_CON_DATA dat)
 {
     for (ushort i = 0; i < dat.wWealNum; i = (ushort)(i + 1))
     {
         COMDT_WEAL_CON_DATA_DETAIL conData  = dat.astWealDetail[i];
         ExeTaskActivity            activity = this.GetActivity(COM_WEAL_TYPE.COM_WEAL_CONDITION, conData.dwWealID) as ExeTaskActivity;
         if (activity != null)
         {
             activity.LoadInfo(conData);
         }
     }
 }
 public void LoadStatistic(ref COMDT_WEAL_CON_DATA dat)
 {
     for (ushort num = 0; num < dat.wWealNum; num += 1)
     {
         COMDT_WEAL_CON_DATA_DETAIL cOMDT_WEAL_CON_DATA_DETAIL = dat.astWealDetail[(int)num];
         ExeTaskActivity            exeTaskActivity            = this.GetActivity(COM_WEAL_TYPE.COM_WEAL_CONDITION, cOMDT_WEAL_CON_DATA_DETAIL.dwWealID) as ExeTaskActivity;
         if (exeTaskActivity != null)
         {
             exeTaskActivity.LoadInfo(cOMDT_WEAL_CON_DATA_DETAIL);
         }
     }
 }
Exemple #3
0
        public void DrawReward()
        {
            CSPkg msg = NetworkModule.CreateDefaultCSPKG(0x9c7);

            msg.stPkgData.stDrawWealReq.bWealType = (byte)this._owner.Type;
            msg.stPkgData.stDrawWealReq.dwWealID  = this._owner.ID;
            uint         iD    = this.ID;
            ExeTaskPhase phase = this as ExeTaskPhase;

            if (phase != null)
            {
                ExeTaskActivity owner = phase.Owner as ExeTaskActivity;
                if ((owner != null) && owner.IsSingleConfig())
                {
                    iD = phase.FakeID;
                }
            }
            msg.stPkgData.stDrawWealReq.dwPeriodID = iD;
            Singleton <NetworkModule> .GetInstance().SendLobbyMsg(ref msg, true);
        }