public static bool TryLoadData(EnhancedDistrictServicesSerializableData loader, out Datav4 data)
 {
     if (loader.TryLoadData(m_id, null, out Datav4 target))
     {
         data = target;
         return(true);
     }
     else
     {
         data = null;
         return(false);
     }
 }
Пример #2
0
 public static bool TryLoadData(EnhancedDistrictServicesSerializableData loader, out Datav4 data)
 {
     if (loader.TryLoadData(m_id, new Datav2Binder(), out Datav2 target))
     {
         if (target != null)
         {
             data = target.Upgrade().Upgrade();
             return(true);
         }
         else
         {
             data = null;
             return(false);
         }
     }
     else
     {
         data = null;
         return(false);
     }
 }