/// <summary> /// Verifies that the ReesearchBodies version the player has is compatible. /// </summary> /// <returns>Whether the check passed.</returns> public static bool VerifyResearchBodiesVersion() { string minVersion = "1.8"; if (ResearchBodiesAssembly == null && !ResearchBodiesCheckDone) { ResearchBodiesAssembly = Version.VerifyAssemblyVersion("ResearchBodies", minVersion, true); ResearchBodiesCheckDone = true; } // Check the wrapper is initalized, while we're here if (ResearchBodiesAssembly != null && !RBWrapper.APIRBReady) { // Initialize the Research Bodies wrapper bool rbInit = RBWrapper.InitRBWrapper(); if (rbInit) { LoggingUtil.LogInfo(typeof(ContractConfigurator), "Successfully initialized Research Bodies wrapper."); } else { LoggingUtil.LogDebug(typeof(ContractConfigurator), "Couldn't initialize Research Bodies wrapper."); } } return(ResearchBodiesAssembly != null); }
private void AddCurrentRestriction() { _result.Add(_current.Property, _current.Operator, _current.Level, _lastInterOperator, _current.Value); _current = new RBWrapper <T>(); }