pGina.Plugin.UsernameMod.Rules.ListOfRules.Add C# (CSharp) Method

Add() public method

Adds a rule to the list, putting it at the end of the stage
public Add ( IUsernameRule rule ) : void
rule IUsernameRule
return void
        public void Add(IUsernameRule rule)
        {
            //Add the rule as the last item for the gateway
            for (int k = 0; k < list.Count; k++)
            {
                if (rule.stage.CompareTo(list[k].stage) < 0)
                {
                    list.Insert(k, rule);
                    return;
                }
            }
            list.Add(rule);
        }