Descent.Messaging.Events.RolledDicesEventArgs.PopulateWithArgs C# (CSharp) Method

PopulateWithArgs() public method

public PopulateWithArgs ( string stringArgs ) : void
stringArgs string
return void
        public override void PopulateWithArgs(string[] stringArgs)
        {
            Contract.Requires(stringArgs != null);
            Contract.Requires(stringArgs.Length >= 1);

            Contract.Requires(Contract.ForAll(stringArgs, s => EventContractHelper.TryParseInt(s)));

            RolledSides = new int[stringArgs.Length];

            for (int i = 0; i < stringArgs.Length; i++)
            {
                RolledSides[i] = int.Parse(stringArgs[i]);
            }
        }