Nexus.Client.ModManagement.Scripting.XmlScript.ConditionStateManager.SetFlagValue C# (CSharp) Method

SetFlagValue() public method

Sets the value of a conditional flag.
public SetFlagValue ( string p_strFlagName, string p_strValue, Option p_pifPlugin ) : void
p_strFlagName string The name of the falg whose value is to be set.
p_strValue string The value to which to set the flag.
p_pifPlugin Option The plugin that is responsible for setting the flag's value.
return void
		public void SetFlagValue(string p_strFlagName, string p_strValue, Option p_pifPlugin)
		{
			if (!m_dicFlags.ContainsKey(p_strFlagName))
				m_dicFlags[p_strFlagName] = new FlagValue();
			m_dicFlags[p_strFlagName].Value = p_strValue;
			m_dicFlags[p_strFlagName].Owner = p_pifPlugin;
		}