Пример #1
0
        // Token: 0x060026C9 RID: 9929 RVA: 0x0008AFD4 File Offset: 0x000891D4
        public static bool smethod_10(Class177 district, out Struct40?invasion)
        {
            bool result;

            lock (Struct40.object_0)
            {
                invasion = null;
                if (!Struct40.dictionary_3.ContainsKey(district))
                {
                    result = false;
                }
                else
                {
                    Struct40 @struct = Struct40.dictionary_3[district];
                    if (@struct.nullable_0 != null && DateTime.Now.ToUniversalTime() < @struct.nullable_0.Value)
                    {
                        Struct40.smethod_0(district, @struct, null);
                        result = false;
                    }
                    else
                    {
                        invasion = new Struct40?(@struct);
                        result   = true;
                    }
                }
            }
            return(result);
        }
Пример #2
0
 // Token: 0x060026C2 RID: 9922 RVA: 0x0008AB38 File Offset: 0x00088D38
 public static void smethod_3(Class177 district)
 {
     lock (Struct40.object_0)
     {
         if (Struct40.dictionary_3.ContainsKey(district))
         {
             Struct40.smethod_0(district, Struct40.dictionary_3[district], new DateTime?(DateTime.Now));
         }
     }
 }
Пример #3
0
 // Token: 0x060026C1 RID: 9921 RVA: 0x0008AAD8 File Offset: 0x00088CD8
 public static void smethod_2(Class177 district)
 {
     lock (Struct40.object_0)
     {
         if (Struct40.dictionary_3.ContainsKey(district))
         {
             Struct40.smethod_0(district, Struct40.dictionary_3[district], null);
         }
     }
 }
Пример #4
0
 // Token: 0x060026C0 RID: 9920 RVA: 0x0008A9F4 File Offset: 0x00088BF4
 public static void smethod_1(Class177 district, Class464 cog, uint cogsRemaining, bool skelecog, DateTime startTime, out uint?estimatedDuration, out DateTime actualStartTime)
 {
     lock (Struct40.object_0)
     {
         if (Struct40.dictionary_3.ContainsKey(district))
         {
             if (Struct40.dictionary_3[district].class464_0 == cog)
             {
                 actualStartTime   = Struct40.dictionary_3[district].dateTime_0;
                 estimatedDuration = Struct40.dictionary_3[district].nullable_1;
                 return;
             }
             Struct40.smethod_0(district, Struct40.dictionary_3[district], null);
         }
         Struct40 value = new Struct40(cog, cogsRemaining, skelecog, startTime.ToUniversalTime(), estimatedDuration = Struct40.smethod_7(district, cog, cogsRemaining));
         actualStartTime = value.dateTime_0;
         Struct40.dictionary_3.Add(district, value);
     }
 }