private static void Post_Setup() { foreach (var tentDef in ConfigManager.Current.TentacleCustom.TentacleDefinitions) { CustomTentacleManager.GenerateTentacle(tentDef); } }
private static bool Pre_Allocate(GPUCurvyType type, ref GPUCurvy gpuCurvy) { var id = (int)type; if (Enum.IsDefined(typeof(GPUCurvyType), id)) { return(true); } var setup = CustomTentacleManager.GetTentacle(id); if (setup.TryCanAllocate(out gpuCurvy)) { Logger.Error($"ALLOC {id}"); return(false); } Logger.Error($"CANT FIND TENTACLE SETTING WITH ID: {id}"); return(true); }