public ShipState( BotEngine.EveOnline.Sensor.ShipHitpointsAndEnergy Hitpoints, ShipManeuverTypeEnum? ManeuverType) { this.Hitpoints = Hitpoints; this.ManeuverType = ManeuverType; }
/// <summary> /// </summary> /// <param name="Measurement">contains the structures read from the eve online client process memory.</param> static public void MeasurementReceived(BotEngine.Interface.FromProcessMeasurement<IMemoryMeasurement> Measurement) { Console.WriteLine("\nMeasurement received"); Console.WriteLine("measurement time: " + ((Measurement?.End)?.ToString("### ### ### ### ###")?.Trim() ?? "null")); var ListUIElement = Measurement?.Value?.EnumerateReferencedUIElementTransitive() ?.GroupBy(UIElement => UIElement.Id) ?.Select(Group => Group?.FirstOrDefault()) ?.ToArray(); Console.WriteLine("number of UI elements in measurement: " + (ListUIElement?.Length.ToString() ?? "null")); var ContextMenu = Measurement?.Value?.Menu?.FirstOrDefault(); var ContextMenuFirstEntry = ContextMenu?.Entry?.FirstOrDefault(); if (null == ContextMenuFirstEntry) { Console.WriteLine("no contextmenu open"); } else { var Center = ContextMenuFirstEntry.Region.Center(); Console.WriteLine("contextmenu first entry : label: \"" + (ContextMenuFirstEntry?.Text ?? "null") + "\", center location : " + Center.A.ToString() + ", " + Center.B.ToString()); } }
private void AddBotTemplate(BotEngine.BotDescriptor bot) { ListViewItem item = new ListViewItem(); item.Text = bot.Name; item.SubItems.Add(bot.Count.ToString()); item.SubItems.Add(bot.Silenced.ToString()); item.SubItems.Add(bot.Host.ToString()); item.SubItems.Add(bot.Running ? "running" : "stopped"); item.SubItems.Add(bot.Script); item.Tag = bot; BotList.Items.Add(item); }
public BotCommandForm(BotEngine.BotCommand cmd) { InitializeComponent(); FCommand = cmd; FPropertyTable = new BotStudio.PropertyPack.PropertyTable(); foreach(BotEngine.BotCommand.Parameter param in cmd.Parameters) { FPropertyTable.Properties.Add(new BotStudio.PropertyPack.PropertySpec(param.Name, typeof(string))); } commandPropList.SelectedObject = FPropertyTable; }
private static void Main() { var engine = new BotEngine(); engine.Start(); Console.WriteLine("Bot is running. Press any key to stop him!"); while (true) { if (Console.KeyAvailable) { Console.ReadKey(); Console.WriteLine("Stopping..."); engine.Stop(); return; } Thread.Sleep(100); Application.DoEvents(); } }
public BotPropDlg(BotEngine.BotDescriptor botDesc) { InitializeComponent(); BotDesc = botDesc; }
public void RemoveBot(BotEngine.BotDescriptor bot) { FBots.Remove(bot); Emmit_ListChanged(); }
public void AddBot(BotEngine.BotDescriptor bot) { FBots.Add(bot); Emmit_ListChanged(); }
public CommandBase(BotEngine engine) { iEngine = engine; }
void _engine_BotEventEntersWorld(BotEngine sender, EventHandling.BotEngine.EventBotEntersWorldArgs e) { // bot is logged in and entered the world. Create a remote client seeion to the bot engine. waitHandle.Set(); }
public QuoteBotPlugin(BotEngine bot) : base(bot) { }
public InitBotChatMessage(BotEngine botEngine, String botKey) : base($"{botEngine}:{botKey.ToLowerInvariant()}") { BotEngine = botEngine; BotKey = botKey; }
public RegisterBotProcessingMessage(BotEngine botEngine, String botKey) : base($"{botEngine}:{botKey.ToLowerInvariant()}") { BotEngine = botEngine; BotKey = botKey; }