Ejemplo n.º 1
0
        // Token: 0x06000075 RID: 117 RVA: 0x00006C54 File Offset: 0x00004E54
        public static void SetDRResponseData(Pawn pawn, string m, string d, int last, List <string> master, int num, out List <string> newMaster)
        {
            newMaster = new List <string>();
            string newValue = MSPainlessData.ConvertToDRRData(m, last, num);

            if (master != null)
            {
                bool beenSet = false;
                if (master.Count > 0)
                {
                    foreach (string Response in master)
                    {
                        string hdefname = MSPainlessData.HFromDRResponse(Response);
                        int    numof    = MSPainlessData.NumFromDRResponse(Response);
                        if (hdefname == m && numof == num)
                        {
                            GenCollection.AddDistinct <string>(newMaster, newValue);
                            beenSet = true;
                        }
                        else
                        {
                            int    time     = MSPainlessData.LTFromDRResponse(Response);
                            string oldValue = MSPainlessData.ConvertToDRRData(hdefname, time, numof);
                            GenCollection.AddDistinct <string>(newMaster, oldValue);
                        }
                    }
                }
                if (!beenSet)
                {
                    GenCollection.AddDistinct <string>(newMaster, newValue);
                }
            }
        }
Ejemplo n.º 2
0
 // Token: 0x06000074 RID: 116 RVA: 0x00006BD8 File Offset: 0x00004DD8
 public static int GetDRResponseLastTick(Pawn pawn, string m, List <string> responseList, int num)
 {
     if (responseList != null && responseList.Count > 0)
     {
         foreach (string response in responseList)
         {
             string hdefname = MSPainlessData.HFromDRResponse(response);
             int    numof    = MSPainlessData.NumFromDRResponse(response);
             if (hdefname == m && numof == num)
             {
                 return(MSPainlessData.LTFromDRResponse(response));
             }
         }
         return(0);
     }
     return(0);
 }