Descent.Messaging.Events.CoordinatesEventArgs.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 == 2);

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

            X = int.Parse(stringArgs[0]);
            Y = int.Parse(stringArgs[1]);
        }