internal static void UnloadHandler(CustomExpHandlerBase handler) { //Direct search is now allowed, we need to find it by GUID var index = _ActiveHandlers.FindIndex(x => x.HandlerGUID == handler.HandlerGUID); if (index != -1) { _ActiveHandlers.RemoveAt(index); } handler.Unload(); }
public static bool TryGetRandomPlaceSingleZone(CustomExpHandlerBase handlerContext, out LG_Zone zone, out ZonePlacementWeights weight) { return(LG_DistributionJobUtils.TryGetRandomPlacementZone(handlerContext.Layer, handlerContext.LayerData.ObjectiveData.ZonePlacementDatas, out zone, out weight)); }