public override void EnterValueToBot(BotsScriptParser.ValueToBotContext context) { var value = context.value().val.Text; var botId = context.bot().id.Text; var intValue = int.Parse(value); var intBotId = int.Parse(botId); _botsTasks.Add(new ValueToBotTask(intValue, _playground.GetBot(intBotId))); }
/// <summary> /// Enter a parse tree produced by <see cref="BotsScriptParser.valueToBot"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void EnterValueToBot([NotNull] BotsScriptParser.ValueToBotContext context) { }