public static Color PreGetColor_Internal(ref Randomizer randomizer, uint randomSeed, PropInfo info, ItemClass parentItemClass, BuildingInfo buildingInfo, NetInfo netInfo, Vector3 position, ref Color?[] arr, ushort idx)
        {
            Color resultClr = default;

            return(!ACEColorGenUtils.GetColorGeneric(
                       ref resultClr,
                       idx,
                       ref arr,
                       InfoManager.instance.CurrentMode, ColorParametersGetter(info, position), Accepts(parentItemClass, buildingInfo, netInfo), (x, y) => randomSeed)
                ? resultClr
                : info.GetColor(ref randomizer));
        }
Example #2
0
 public static bool PreGetColor(ushort buildingID, ref Building data, InfoManager.InfoMode infoMode, ref Color __result) =>
 ACEColorGenUtils.GetColorGeneric <BuildingAssetFolderRuleXml, BuildingCityDataRuleXml, BuildingInfo>(
     ref __result,
     buildingID,
     ref AssetColorExpanderMod.Controller.CachedColor[(int)ACEController.CacheOrder.BUILDING],
     infoMode, ColorParametersGetter, Accepts, (x, y) => buildingID);
Example #3
0
 public static bool PreGetColor_Internal(ushort vehicleId, InfoManager.InfoMode infoMode, ref Color __result, uint randomSeed, bool parked) =>
 ACEColorGenUtils.GetColorGeneric(
     ref __result,
     vehicleId,
     ref AssetColorExpanderMod.Controller.CachedColor[parked ? (int)ACEController.CacheOrder.PARKED_VEHICLE : (int)ACEController.CacheOrder.VEHICLE],
     infoMode, ColorParametersGetter(parked), parked ? AcceptsParked : Accepts(), (x, y) => GetSeed(parked, x, y));
 public static bool PreGetColor(ushort instanceID, ref CitizenInstance data, InfoManager.InfoMode infoMode, ref Color __result) =>
 ACEColorGenUtils.GetColorGeneric <CitizenAssetFolderRuleXml, CitizenCityDataRuleXml, CitizenInfo>(
     ref __result,
     instanceID,
     ref AssetColorExpanderMod.Controller.CachedColor[(int)CacheOrder.CITIZEN],
     infoMode, ColorParametersGetter, Accepts, (x, y) => instanceID);