private void AddDistrictColor2(byte district, DistrictPolicies.Policies policy, byte alpha, bool inArea, ref Color32 color2)
 {
     if ((district & 16) != 0)
     {
         color2.r = (byte)Mathf.Max((int)color2.r, (int)alpha);
     }
     else
     {
         color2.r = (byte)Mathf.Min((int)color2.r, (int)(255 - alpha));
     }
     if ((district & 32) != 0)
     {
         color2.g = (byte)Mathf.Max((int)color2.g, (int)alpha);
     }
     else
     {
         color2.g = (byte)Mathf.Min((int)color2.g, (int)(255 - alpha));
     }
     if ((district & 64) != 0)
     {
         color2.b = (byte)Mathf.Max((int)color2.b, (int)alpha);
     }
     else
     {
         color2.b = (byte)Mathf.Min((int)color2.b, (int)(255 - alpha));
     }
     if (policy != DistrictPolicies.Policies.None)
     {
         if (DistrictManager.instance.m_districts.m_buffer[(int)district].IsPolicySet(policy) && (inArea || district != 0))
         {
             color2.a = (byte)Mathf.Max((int)color2.a, (int)alpha);
         }
         else
         {
             color2.a = (byte)Mathf.Min((int)color2.a, (int)(255 - alpha));
         }
     }
     else
     {
         color2.a = (byte)Mathf.Min((int)color2.a, (int)(255 - alpha));
     }
 }
        public static void GetAccumulation(CommercialBuildingAI thisAI, Randomizer r, int productionRate, int taxRate, DistrictPolicies.CityPlanning cityPlanningPolicies, DistrictPolicies.Taxation taxationPolicies, out int entertainment, out int attractiveness)
        {
            entertainment = 0;
            attractiveness = 0;

            Debug.LogWarning("GetAccumulation is not overridden!");
        }
 public static void HandleFire(CommercialBuildingAI thisAI, ushort buildingID, ref Building data, ref Building.Frame frameData, DistrictPolicies.Services policies)
 {
     Debug.LogWarning("HandleFire is not overridden!");
 }
 public static int HandleCommonConsumption(CommercialBuildingAI thisAI, ushort buildingID, ref Building data, ref int electricityConsumption, ref int waterConsumption, ref int sewageAccumulation, ref int garbageAccumulation, DistrictPolicies.Services policies)
 {
     Debug.LogWarning("HandleCommonConsumption is not overridden!");
     return 0;
 }