protected ColumnSetConverter(System.Collections.Generic.IEnumerable<ColumnSet> inColumnSets, System.Collections.Generic.IEnumerable<ColumnSet> outColumnSets) { if (inColumnSets == null) throw new ArgumentNullException ("inColumnSets"); if (outColumnSets == null) throw new ArgumentNullException ("outColumnSets"); this.inColumnSets = inColumnSets; this.outColumnSets = outColumnSets; }
public OptionSpecification(string shortName, string longName, bool required, string setName, int min, int max, Maybe<object> defaultValue, System.Type conversionType, string helpText, string metaValue, System.Collections.Generic.IEnumerable<string> enumValues) : base(SpecificationType.Option, required, min, max, defaultValue, conversionType) { this.shortName = shortName; this.longName = longName; this.setName = setName; this.helpText = helpText; this.metaValue = metaValue; this.enumValues = enumValues; }
public void Deserialize(IInputArchive a_, String tag) { a_.StartRecord(tag); { IIndex vidx1 = a_.StartVector("children"); if (vidx1!= null) { var tmpLst=new System.Collections.Generic.List<string>(); for (; !vidx1.Done(); vidx1.Incr()) { String e1; e1=a_.ReadString("e1"); tmpLst.Add(e1); } Children=tmpLst; } a_.EndVector("children"); } a_.EndRecord(tag); }
public void Deserialize(IInputArchive a_, String tag) { a_.StartRecord(tag); { IIndex vidx1 = a_.StartVector("txns"); if (vidx1!= null) { var tmpLst=new System.Collections.Generic.List<Org.Apache.Zookeeper.Txn.Txn>(); for (; !vidx1.Done(); vidx1.Incr()) { Org.Apache.Zookeeper.Txn.Txn e1; e1= new Org.Apache.Zookeeper.Txn.Txn(); a_.ReadRecord(e1,"e1"); tmpLst.Add(e1); } Txns=tmpLst; } a_.EndVector("txns"); } a_.EndRecord(tag); }
public void Deserialize(IInputArchive a_, String tag) { a_.StartRecord(tag); Type=a_.ReadInt("type"); Zxid=a_.ReadLong("zxid"); Data=a_.ReadBuffer("data"); { IIndex vidx1 = a_.StartVector("authinfo"); if (vidx1!= null) { var tmpLst=new System.Collections.Generic.List<Org.Apache.Zookeeper.Data.ZKId>(); for (; !vidx1.Done(); vidx1.Incr()) { Org.Apache.Zookeeper.Data.ZKId e1; e1= new Org.Apache.Zookeeper.Data.ZKId(); a_.ReadRecord(e1,"e1"); tmpLst.Add(e1); } Authinfo=tmpLst; } a_.EndVector("authinfo"); } a_.EndRecord(tag); }
public virtual System.Threading.Tasks.Task <Azure.Response> SetAccessPolicyAsync(System.Collections.Generic.IEnumerable <Azure.Storage.Queues.Models.QueueSignedIdentifier> permissions, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public FakeDbAsyncEnumerable(System.Collections.Generic.IEnumerable <T> enumerable) : base(enumerable) { }
public SelectClause(System.Collections.Generic.IEnumerable<Model.Field.IFormatableField> fields) { this.fields = fields; }
public static Microsoft.Extensions.DependencyModel.RuntimeAssetGroup GetRuntimeGroup(this System.Collections.Generic.IEnumerable <Microsoft.Extensions.DependencyModel.RuntimeAssetGroup> self, string runtime) { throw null; }
public ConcurrentDictionary(int concurrencyLevel, System.Collections.Generic.IEnumerable <System.Collections.Generic.KeyValuePair <TKey, TValue> > collection, System.Collections.Generic.IEqualityComparer <TKey> comparer) { }
public RuntimeAssetGroup(string runtime, System.Collections.Generic.IEnumerable <string> assetPaths) { }
public RuntimeLibrary(string type, string name, string version, string hash, System.Collections.Generic.IReadOnlyList <Microsoft.Extensions.DependencyModel.RuntimeAssetGroup> runtimeAssemblyGroups, System.Collections.Generic.IReadOnlyList <Microsoft.Extensions.DependencyModel.RuntimeAssetGroup> nativeLibraryGroups, System.Collections.Generic.IEnumerable <Microsoft.Extensions.DependencyModel.ResourceAssembly> resourceAssemblies, System.Collections.Generic.IEnumerable <Microsoft.Extensions.DependencyModel.Dependency> dependencies, bool serviceable, string path, string hashPath) : base(default(string), default(string), default(string), default(string), default(System.Collections.Generic.IEnumerable <Microsoft.Extensions.DependencyModel.Dependency>), default(bool)) { }
public static System.Collections.Generic.IEnumerable <System.Xml.Linq.XNode> Nodes <T>(this System.Collections.Generic.IEnumerable <T> source) where T : System.Xml.Linq.XContainer { return(default(System.Collections.Generic.IEnumerable <System.Xml.Linq.XNode>)); }
public static void Remove(this System.Collections.Generic.IEnumerable <System.Xml.Linq.XAttribute> source) { }
public static System.Collections.Generic.IEnumerable <System.Xml.Linq.XElement> Elements <T>(this System.Collections.Generic.IEnumerable <T> source, System.Xml.Linq.XName name) where T : System.Xml.Linq.XContainer { return(default(System.Collections.Generic.IEnumerable <System.Xml.Linq.XElement>)); }
public static System.Collections.Generic.IEnumerable <T> InDocumentOrder <T>(this System.Collections.Generic.IEnumerable <T> source) where T : System.Xml.Linq.XNode { return(default(System.Collections.Generic.IEnumerable <T>)); }
public static System.Collections.Generic.IEnumerable <System.Xml.Linq.XElement> DescendantsAndSelf(this System.Collections.Generic.IEnumerable <System.Xml.Linq.XElement> source, System.Xml.Linq.XName name) { return(default(System.Collections.Generic.IEnumerable <System.Xml.Linq.XElement>)); }
public static System.Collections.Generic.IEnumerable <System.Xml.Linq.XAttribute> Attributes(this System.Collections.Generic.IEnumerable <System.Xml.Linq.XElement> source, System.Xml.Linq.XName name) { return(default(System.Collections.Generic.IEnumerable <System.Xml.Linq.XAttribute>)); }
public static System.Collections.Generic.IEnumerable <System.Xml.Linq.XElement> AncestorsAndSelf(this System.Collections.Generic.IEnumerable <System.Xml.Linq.XElement> source) { return(default(System.Collections.Generic.IEnumerable <System.Xml.Linq.XElement>)); }
/// <summary> /// /// </summary> /// <param name="acl"></param> /// <param name="stat"></param> public GetACLResponse(System.Collections.Generic.IEnumerable <Data.ACL> acl, Data.Stat stat) { Acl = acl; Stat = stat; }
public static System.Collections.Generic.IEnumerable <System.Xml.Linq.XElement> Ancestors <T>(this System.Collections.Generic.IEnumerable <T> source) where T : System.Xml.Linq.XNode { return(default(System.Collections.Generic.IEnumerable <System.Xml.Linq.XElement>)); }
private bool SendEmailViaOutlook(EmailConfiguration emailConfig) { ClientConfiguration.EmailSettings config = Program.Configuration.Email; bool wasSuccessful = false; try { //now create mail object (but we'll not send it via outlook) _log.Trace("Creating outlook mail item"); dynamic mailItem = _app.CreateItem(OlItemType.olMailItem); //Add subject if (!string.IsNullOrWhiteSpace(emailConfig.Subject)) { mailItem.Subject = emailConfig.Subject; } _log.Trace($"Setting message subject to: {mailItem.Subject}"); //Set message body according to type of message switch (emailConfig.BodyType) { case EmailConfiguration.EmailBodyType.HTML: mailItem.HTMLBody = emailConfig.Body; _log.Trace($"Setting message HTMLBody to: {emailConfig.Body}"); break; case EmailConfiguration.EmailBodyType.RTF: mailItem.RTFBody = emailConfig.Body; _log.Trace($"Setting message RTFBody to: {emailConfig.Body}"); break; case EmailConfiguration.EmailBodyType.PlainText: mailItem.Body = emailConfig.Body; _log.Trace($"Setting message Body to: {emailConfig.Body}"); break; default: throw new Exception("Bad email body type: " + emailConfig.BodyType); } //attachments if (emailConfig.Attachments.Count > 0) { //Add attachments foreach (string path in emailConfig.Attachments) { mailItem.Attachments.Add(path); _log.Trace($"Adding attachment from: {path}"); } } if (config.SetAccountFromConfig || config.SetAccountFromLocal) { Accounts accounts = _app.Session.Accounts; Account acc = null; if (config.SetAccountFromConfig) { //Look for our account in the Outlook foreach (Account account in accounts) { if (account.SmtpAddress.Equals(emailConfig.From, StringComparison.CurrentCultureIgnoreCase)) { //Use it acc = account; break; } } } //TODO: if no from account found, just use first one found to send - but should ghosts do this? if (acc == null) { foreach (Account account in accounts) { acc = account; break; } } //Did we get the account? if (acc != null) { _log.Trace($"Sending via {acc.DisplayName}"); //Use this account to send the e-mail mailItem.SendUsingAccount = acc; } } if (config.SaveToOutbox) { _log.Trace("Saving mailItem to outbox..."); mailItem.Move(_folderOutbox); mailItem.Save(); } _log.Trace("Attempting new Redemtion SafeMailItem..."); SafeMailItem rdoMail = new Redemption.SafeMailItem { Item = mailItem }; //Parse To if (emailConfig.To.Count > 0) { System.Collections.Generic.IEnumerable <string> list = emailConfig.To.Distinct(); foreach (string a in list) { SafeRecipient r = rdoMail.Recipients.AddEx(a.Trim()); r.Resolve(); _log.Trace($"RdoMail TO {a.Trim()}"); } } else { throw new Exception("Must specify to-address"); } //Parse Cc if (emailConfig.Cc.Count > 0) { System.Collections.Generic.IEnumerable <string> list = emailConfig.Cc.Distinct(); foreach (string a in list) { SafeRecipient r = rdoMail.Recipients.AddEx(a.Trim()); r.Resolve(); if (r.Resolved) { r.Type = 2; //CC } _log.Trace($"RdoMail CC {a.Trim()}"); } } if (emailConfig.Bcc.Count > 0) { System.Collections.Generic.IEnumerable <string> list = emailConfig.Bcc.Distinct(); foreach (string a in list) { SafeRecipient r = rdoMail.Recipients.AddEx(a.Trim()); r.Resolve(); if (r.Resolved) { r.Type = 3; //BCC } _log.Trace($"RdoMail BCC {a.Trim()}"); } } /* * outlook_mail_item = self._outlook.outlook_application.CreateItem(win32com.client.constants.olMailItem) * outlook_mail_item = outlook_mail_item.Move(outbox) * * outlook_mail_item.Subject = subject * outlook_mail_item.Body = body * outlook_mail_item.Save() * * for file_ in self._config['attachments']: * outlook_mail_item.Attachments.Add(file_) * # Need to use Redemption to actually get it to send correctly. # new_email = win32com.client.Dispatch('Redemption.SafeMailItem') # new_email.Item = outlook_mail_item # new_email.Recipients.Add(self._config['destination']) # new_email.Recipients.ResolveAll() # new_email.Send() */ rdoMail.Recipients.ResolveAll(); _log.Trace("Attempting to send Redemtion SafeMailItem..."); rdoMail.Send(); var mapiUtils = new Redemption.MAPIUtils(); mapiUtils.DeliverNow(); //Done wasSuccessful = true; _log.Trace("Redemtion SafeMailItem was sent successfully"); if (config.SetForcedSendReceive) { _log.Trace("Forcing mapi - send and receive"); _oMapiNamespace.SendAndReceive(false); Thread.Sleep(3000); } } catch (Exception ex) { _log.Error(ex); } _log.Trace($"Returning - wasSuccessful:{wasSuccessful}"); return(wasSuccessful); }
public static void Remove <T>(this System.Collections.Generic.IEnumerable <T> source) where T : System.Xml.Linq.XNode { }
public RuntimeFallbacks(string runtime, System.Collections.Generic.IEnumerable <string> fallbacks) { }
public static System.Runtime.CompilerServices.CallSiteBinder SetMember(Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags flags, string name, System.Type context, System.Collections.Generic.IEnumerable <Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo> argumentInfo) { throw null; }
public static System.Collections.Generic.IEnumerable <string> GetDefaultAssets(this System.Collections.Generic.IEnumerable <Microsoft.Extensions.DependencyModel.RuntimeAssetGroup> self) { throw null; }
public static System.Runtime.CompilerServices.CallSiteBinder UnaryOperation(Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags flags, System.Linq.Expressions.ExpressionType operation, System.Type context, System.Collections.Generic.IEnumerable <Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo> argumentInfo) { throw null; }
public ConcurrentDictionary(System.Collections.Generic.IEnumerable <System.Collections.Generic.KeyValuePair <TKey, TValue> > collection) { }
public PLCUserDataMessages(System.Collections.Generic.IEnumerable <Mid> selectedMids) { templates = MessageTemplateFactory.BuildChainOfMids(selectedMids); }
public ConcurrentQueue(System.Collections.Generic.IEnumerable <T> collection) { }
private MYIocConfigManager(string path) { cfgNodeList = XDocument.Load(path).Elements().First().Elements(); cfgPath = path; }
public static void Tick(EventArgs args) { if (!Game.IsInGame || Game.IsPaused || Game.IsWatchingGame) return; me = ObjectMgr.LocalHero; if (me == null) return; if (me.ClassID != ClassID.CDOTA_Unit_Hero_EarthSpirit) return; //SKILLS if (Qskill == null) Qskill = me.Spellbook.SpellQ; if (Wskill == null) Wskill = me.Spellbook.SpellW; if (Eskill == null) Eskill = me.Spellbook.SpellE; if (DRemnant == null) DRemnant = me.Spellbook.SpellD; if (Rskill == null) Rskill = me.Spellbook.SpellR; if (Fskill == null) Fskill = me.Spellbook.SpellF; // UNIT VARIABLES stone_for_combo = ObjectMgr.GetEntities<Unit>().Where(x => x.ClassID == ClassID.CDOTA_Unit_Earth_Spirit_Stone && me.Distance2D(x.NetworkPosition) < 200).FirstOrDefault(); stone = ObjectMgr.GetEntities<Unit>().Where(x => x.ClassID == ClassID.CDOTA_Unit_Earth_Spirit_Stone && x.NetworkPosition.Distance2D(me.NetworkPosition) <= 1300).ToList(); if (boulder_slow == null || stage_combo4 == 0) boulder_slow = ObjectMgr.GetEntities<Hero>().Where(x => x.Team != me.Team && x.IsVisible && !x.IsIllusion && x.NetworkPosition.Distance2D(me.NetworkPosition) < 200 && x.Modifiers.Any(y => y.Name == "modifier_earth_spirit_rolling_boulder_slow")).FirstOrDefault(); if (stage == 2 && stunned == null) stunned = ObjectMgr.GetEntities<Hero>().Where(x => x.Modifiers.Any(y => y.Name == "modifier_stunned") && !x.IsIllusion && x.Team != me.Team && x.IsVisible).FirstOrDefault(); //KEYS TOGGLE if ((Game.IsKeyDown(_hotkeys_config.Item("hotkeycombo1").GetValue<KeyBind>().Key)) && !Game.IsChatOpen && stunned == null) key_active = true; if ((Game.IsKeyDown(_hotkeys_config.Item("hotkeycombo3").GetValue<KeyBind>().Key)) && !Game.IsChatOpen) key_active_2 = true; if ((Game.IsKeyDown(_hotkeys_config.Item("hotkeycombo5").GetValue<KeyBind>().Key)) && !Game.IsChatOpen) key_active_4 = true; if (key_active == false) { stage = 0; key_active = false; stunned = null; } if (me.CanCast() && !me.IsChanneling() && key_active) { Mouse_Position = Game.MousePosition; if ((!Eskill.CanBeCasted() && !Qskill.CanBeCasted() && !Wskill.CanBeCasted() && (!DRemnant.CanBeCasted() && stone_for_combo == null) || ((!DRemnant.CanBeCasted() && stone_for_combo == null))) || (Game.IsKeyDown(_hotkeys_config.Item("hotkeycombo2").GetValue<KeyBind>().Key))) { if (auto_atack_after_spell) { Game.ExecuteCommand("dota_player_units_auto_attack_after_spell 1"); auto_atack_after_spell = false; } if (auto_atack) { Game.ExecuteCommand("dota_player_units_auto_attack 1"); auto_atack = false; } key_active = false; stage = 0; stunned = null; } if (stage == 0 && Utils.SleepCheck("auto_atack_change")) { if (Game.GetConsoleVar("dota_player_units_auto_attack_after_spell").GetInt() == 1) { Game.ExecuteCommand("dota_player_units_auto_attack_after_spell 0"); auto_atack_after_spell = true; } else auto_atack_after_spell = false; if (Game.GetConsoleVar("dota_player_units_auto_attack").GetInt() == 1) { Game.ExecuteCommand("dota_player_units_auto_attack 0"); auto_atack = true; } else auto_atack = false; stage = 1; Utils.Sleep(Game.Ping, "auto_atack_change"); } else if (stage == 1 && Utils.SleepCheck("Qskill") && Utils.SleepCheck("auto_atack_change")) { if (DRemnant.CanBeCasted() && Utils.SleepCheck("DRemnant") && stone_for_combo == null && (Qskill.CanBeCasted() && Wskill.CanBeCasted() && Eskill.CanBeCasted())) { DRemnant.UseAbility(me.NetworkPosition); Utils.Sleep(500 - (int)Game.Ping, "DRemnant"); } if (Qskill.CanBeCasted()) { Qskill.UseAbility((Mouse_Position - me.NetworkPosition) * 200 / Mouse_Position.Distance2D(me) + me.NetworkPosition); Utils.Sleep((int)Game.Ping + 50, "Qskill"); } else stage = 2; } else if (stage == 2 && stunned != null && Utils.SleepCheck("Eskill")) { stone_nearly = stone.Where(x => stunned.Distance2D(x) < stunned.Distance2D((me.NetworkPosition - stunned.NetworkPosition) * 400 / stunned.NetworkPosition.Distance2D(me.NetworkPosition) + stunned.NetworkPosition)).FirstOrDefault(); if (Eskill.CanBeCasted()) { if (stone_nearly != null) { if (Game.Ping < 100) { Eskill.UseAbility(stone_nearly.NetworkPosition); Utils.Sleep((int)Game.Ping + 100, "Eskill"); } else { Eskill.UseAbility(stunned.Predict(-Game.Ping)); Utils.Sleep((int)Game.Ping + 100, "Eskill"); } } } else stage = 3; } else if ((Game.IsKeyDown(_hotkeys_config.Item("hotkeycombo1").GetValue<KeyBind>().Key)) && stage == 2 && Utils.SleepCheck("Eskill") && stunned == null) { stone_nearly = stone.Where(x => x.NetworkPosition.Distance2D(Mouse_Position) < 200).FirstOrDefault(); if (Eskill.CanBeCasted() && stone_nearly != null) { Eskill.UseAbility(Mouse_Position); Utils.Sleep( 100, "Eskill"); } if (!Eskill.CanBeCasted()) stage = 3; } else if (stage == 3 && stunned != null && stunned.Modifiers.Any(x => x.Name == "modifier_earth_spirit_geomagnetic_grip_debuff") && Utils.SleepCheck("Wskill")) { if (auto_atack_after_spell) { Game.ExecuteCommand("dota_player_units_auto_attack_after_spell 1"); Utils.Sleep(Game.Ping + 50, "auto_attack_1"); auto_atack_after_spell = false; } if (auto_atack) { Game.ExecuteCommand("dota_player_units_auto_attack 1"); Utils.Sleep(Game.Ping + 50, "auto_attack_1"); auto_atack = false; } if (Wskill.CanBeCasted() && Utils.SleepCheck("auto_attack_1")) { Wskill.UseAbility(stunned.NetworkPosition); Utils.Sleep(Game.Ping + (Qskill.GetCastDelay(me, stunned, true, true) * 100), "Wskill"); } } else if (stage == 3 && stunned == null && Utils.SleepCheck("Wskill") && (Game.IsKeyDown(_hotkeys_config.Item("hotkeycombo1").GetValue<KeyBind>().Key))) { if (auto_atack_after_spell) { Game.ExecuteCommand("dota_player_units_auto_attack_after_spell 1"); Utils.Sleep(Game.Ping + 50, "auto_attack_1"); auto_atack_after_spell = false; } if (auto_atack) { Game.ExecuteCommand("dota_player_units_auto_attack 1"); Utils.Sleep(Game.Ping+50, "auto_attack_1"); auto_atack = false; } if (Wskill.CanBeCasted() && Utils.SleepCheck("auto_attack_1")) { Wskill.UseAbility(Mouse_Position); Utils.Sleep((int)Game.Ping + 100, "Wskill"); } } else if (!Wskill.CanBeCasted()) { stage = 0; key_active = false; stunned = null; if (auto_atack_after_spell) { Game.ExecuteCommand("dota_player_units_auto_attack_after_spell 1"); auto_atack_after_spell = false; } if (auto_atack) { Game.ExecuteCommand("dota_player_units_auto_attack 1"); auto_atack = false; } } } if (key_active_2 && !Game.IsChatOpen) { if ((Game.IsKeyDown(_hotkeys_config.Item("hotkeycombo2").GetValue<KeyBind>().Key) && !Game.IsChatOpen)) { stage_combo2 = 0; key_active_2 = false; if (auto_atack_after_spell) { Game.ExecuteCommand("dota_player_units_auto_attack_after_spell 1"); auto_atack_after_spell = false; } if (auto_atack) { Game.ExecuteCommand("dota_player_units_auto_attack 1"); auto_atack = false; } } if (stage_combo2 == 0 || stone_peoples == null) { stone_peoples = ObjectMgr.GetEntities<Hero>().Where(x => !x.IsIllusion && x.Modifiers.Any(xy => xy.Name == "modifier_earthspirit_petrify") && x.Distance2D(me) <= 1600); Mouse_Position = Game.MousePosition; } if (stone_peoples.FirstOrDefault() != null && me.CanCast() && !me.IsChanneling()) { if (stage_combo2 == 0) { if (Game.GetConsoleVar("dota_player_units_auto_attack_after_spell").GetInt() == 1) { Game.ExecuteCommand("dota_player_units_auto_attack_after_spell 0"); auto_atack_after_spell = true; } else auto_atack_after_spell = false; if (Game.GetConsoleVar("dota_player_units_auto_attack").GetInt() == 1) { Game.ExecuteCommand("dota_player_units_auto_attack 0"); auto_atack = true; } else auto_atack = false; Utils.Sleep(Game.Ping + 50, "auto_atack_change"); stage_combo2 = 1; } if (stage_combo2 == 1 && Utils.SleepCheck("EskillSleep") && Utils.SleepCheck("auto_atack_change")) { if (Eskill.CanBeCasted() && stone_peoples.FirstOrDefault().NetworkPosition.Distance2D(me) >= 180) { Eskill.UseAbility(stone_peoples.FirstOrDefault().NetworkPosition); Utils.Sleep(Game.Ping, "EskillSleep"); } else stage_combo2 = 2; } else if (stage_combo2 == 2) { if (Wskill.CanBeCasted()) { int DelayCombo = 0; if (stone_peoples.FirstOrDefault().NetworkPosition.Distance2D(stone_peoples.FirstOrDefault().NetworkPosition / me.NetworkPosition * 100) < 200) DelayCombo = 150 - (int)Game.Ping; else DelayCombo = 400 - (int)Game.Ping; Wskill.UseAbility(Mouse_Position); Utils.Sleep(Game.Ping + DelayCombo + (me.GetTurnTime(Mouse_Position) * 100), "PerfectDelay"); } else stage_combo2 = 3; } else if (stage_combo2 == 3 && Utils.SleepCheck("PerfectDelay")) { if (Qskill.CanBeCasted()) Qskill.UseAbility(Mouse_Position); else { stage_combo2 = 0; key_active_2 = false; if (auto_atack_after_spell) { Game.ExecuteCommand("dota_player_units_auto_attack_after_spell 1"); auto_atack_after_spell = false; } if (auto_atack) { auto_atack = false; Game.ExecuteCommand("dota_player_units_auto_attack 1"); } } } } if (stone_peoples.FirstOrDefault() == null || !me.CanCast()) { stage_combo2 = 0; key_active_2 = false; if (auto_atack_after_spell) { Game.ExecuteCommand("dota_player_units_auto_attack_after_spell 1"); auto_atack_after_spell = false; } if (auto_atack) { Game.ExecuteCommand("dota_player_units_auto_attack 1"); auto_atack = false; } } } if (key_active_4 && !Game.IsChatOpen) { if ((stage_combo4 == 0 && (!Qskill.CanBeCasted() || !Wskill.CanBeCasted())) || (Game.IsKeyDown(_hotkeys_config.Item("hotkeycombo2").GetValue<KeyBind>().Key) && !Game.IsChatOpen)) { stage_combo4 = 0; key_active_4 = false; if (auto_atack_after_spell) { Game.ExecuteCommand("dota_player_units_auto_attack_after_spell 1"); auto_atack_after_spell = false; } if (auto_atack) { Game.ExecuteCommand("dota_player_units_auto_attack 1"); auto_atack = false; } } if (stage_combo4 == 0) { if (Game.GetConsoleVar("dota_player_units_auto_attack_after_spell").GetInt() == 1) { Game.ExecuteCommand("dota_player_units_auto_attack_after_spell 0"); auto_atack_after_spell = true; } else auto_atack_after_spell = false; if (Game.GetConsoleVar("dota_player_units_auto_attack").GetInt() == 1) { Game.ExecuteCommand("dota_player_units_auto_attack 0"); auto_atack = true; } else auto_atack = false; Utils.Sleep(Game.Ping+50, "auto_atack_change"); stage_combo4 = 1; } else if (stage_combo4 == 1 && Utils.SleepCheck("auto_atack_change")) { Mouse_Position = Game.MousePosition; stone_for_combo = ObjectMgr.GetEntities<Unit>().Where(x => x.ClassID == ClassID.CDOTA_Unit_Earth_Spirit_Stone && Mouse_Position.Distance2D(x.NetworkPosition) < 200).FirstOrDefault(); Hero geomagnetic_target = ObjectMgr.GetEntities<Hero>().Where(x => x.Team != me.Team && x.IsVisible && !x.IsIllusion && x.NetworkPosition.Distance2D(me.NetworkPosition) <= 1600 && x.Modifiers.Any(y => y.Name == "modifier_earth_spirit_geomagnetic_grip_debuff")).FirstOrDefault(); if (DRemnant.CanBeCasted() && Utils.SleepCheck("DRemnant") && stone_for_combo == null && (Qskill.CanBeCasted() && Wskill.CanBeCasted() && Eskill.CanBeCasted())) { DRemnant.UseAbility(Mouse_Position); Utils.Sleep((int)Game.Ping + 2000, "DRemnant"); } else if (Eskill.CanBeCasted() && Utils.SleepCheck("Eskill_3combo")) { Eskill.UseAbility(Mouse_Position); Utils.Sleep(500, "Eskill_3combo"); } else if ((!Eskill.CanBeCasted() || Eskill.Level == 0) && geomagnetic_target == null) { stone_for_combo = ObjectMgr.GetEntities<Unit>().Where(x => x.ClassID == ClassID.CDOTA_Unit_Earth_Spirit_Stone && me.Distance2D(x.NetworkPosition) < 400).FirstOrDefault(); if (DRemnant.CanBeCasted() && Utils.SleepCheck("DRemnant") && stone_for_combo == null && (Qskill.CanBeCasted() && Wskill.CanBeCasted())) { DRemnant.UseAbility(me.NetworkPosition); Utils.Sleep((int)Game.Ping + 2000, "DRemnant"); } else stage_combo4 = 2; } else if ((!Eskill.CanBeCasted() || Eskill.Level == 0) && stone_for_combo != null) stage_combo4 = 2; } else if (stage_combo4 == 2) { if (Wskill.CanBeCasted() && Utils.SleepCheck("Wskill_3combo")) { Wskill.UseAbility(Mouse_Position); Utils.Sleep(500, "Wskill_3combo"); } if (!Wskill.CanBeCasted()) stage_combo4 = 3; } else if (stage_combo4 == 3) { if( boulder_slow != null) { Mouse_Position = Game.MousePosition; Vector3 perfect_position = (boulder_slow.NetworkPosition - Mouse_Position) * 150 / boulder_slow.NetworkPosition.Distance2D(Mouse_Position) + boulder_slow.NetworkPosition; if (Utils.SleepCheck("moving") && me.NetworkPosition.Distance2D(perfect_position) >= 70) { me.Move(perfect_position); Utils.Sleep(500-Game.Ping, "moving"); } if (me.NetworkPosition.ToVector2().FindAngleBetween(Mouse_Position.ToVector2(), true) - me.NetworkPosition.ToVector2().FindAngleBetween(boulder_slow.NetworkPosition.ToVector2(), true) <= 0.1 && me.NetworkPosition.ToVector2().FindAngleBetween(Mouse_Position.ToVector2(), true) - me.NetworkPosition.ToVector2().FindAngleBetween(boulder_slow.NetworkPosition.ToVector2(), true) >= -0.1) { if (Qskill.CanBeCasted() && Utils.SleepCheck("Qskill_combo3")) { Qskill.UseAbility(boulder_slow); Utils.Sleep(500, "Qskill_combo3"); } if (!Qskill.CanBeCasted()) { stage_combo4 = 0; key_active_4 = false; if (auto_atack_after_spell) { Game.ExecuteCommand("dota_player_units_auto_attack_after_spell 1"); auto_atack_after_spell = false; } if (auto_atack) { Game.ExecuteCommand("dota_player_units_auto_attack 1"); auto_atack = false; } } } } } } //if (key_active_3 && !Game.IsChatOpen) //{ // if (stun_target == null || stage_combo3 == 0) // { // Mouse_Position = Game.MousePosition; // stun_target = ObjectMgr.GetEntities<Hero>().Where(x => x.Team != me.Team && !x.IsIllusion && x.IsAlive && x.Distance2D(me) <= 1600); // } // int distance = 0; // int last_distance = 50000; // Hero most_closer_mouse_position_hero; // foreach (var v in stun_target) // { // distance = (int)v.NetworkPosition.Distance2D(Mouse_Position); // if (distance < last_distance) // { // last_distance = distance; // most_closer_mouse_position_hero = v; // } // } //} }
public override int Resize(System.Collections.Generic.IEnumerable <Routee> currentRoutees) { _latch.CountDown(); return(2); }
public void Deserialize(IInputArchive a_, String tag) { a_.StartRecord(tag); RelativeZxid=a_.ReadLong("relativeZxid"); { IIndex vidx1 = a_.StartVector("dataWatches"); if (vidx1!= null) { var tmpLst=new System.Collections.Generic.List<string>(); for (; !vidx1.Done(); vidx1.Incr()) { String e1; e1=a_.ReadString("e1"); tmpLst.Add(e1); } DataWatches=tmpLst; } a_.EndVector("dataWatches"); } { IIndex vidx1 = a_.StartVector("existWatches"); if (vidx1!= null) { var tmpLst=new System.Collections.Generic.List<string>(); for (; !vidx1.Done(); vidx1.Incr()) { String e1; e1=a_.ReadString("e1"); tmpLst.Add(e1); } ExistWatches=tmpLst; } a_.EndVector("existWatches"); } { IIndex vidx1 = a_.StartVector("childWatches"); if (vidx1!= null) { var tmpLst=new System.Collections.Generic.List<string>(); for (; !vidx1.Done(); vidx1.Incr()) { String e1; e1=a_.ReadString("e1"); tmpLst.Add(e1); } ChildWatches=tmpLst; } a_.EndVector("childWatches"); } a_.EndRecord(tag); }
public Library(string type, string name, string version, string hash, System.Collections.Generic.IEnumerable <Microsoft.Extensions.DependencyModel.Dependency> dependencies, bool serviceable, string path, string hashPath) { }
public void SetUp() { // ToDo: Implement SetUp logic here this.mocks = new MockRepository(); this.serializer = this.mocks.StrictMock<NStub.CSharp.ObjectGeneration.Builders.IBuilderSerializer>(); this.handlersItem = this.mocks.StrictMock<IBuildHandler>(); this.handlers = new[] { handlersItem }; this.testObject = new DefaultMemberBuilderFactory(this.serializer, this.handlers); Assert.Inconclusive("Verify the correctness of this test method."); }
public CompilationOptions(System.Collections.Generic.IEnumerable <string> defines, string languageVersion, string platform, System.Nullable <bool> allowUnsafe, System.Nullable <bool> warningsAsErrors, System.Nullable <bool> optimize, string keyFile, System.Nullable <bool> delaySign, System.Nullable <bool> publicSign, string debugType, System.Nullable <bool> emitEntryPoint, System.Nullable <bool> generateXmlDocumentation) { }
public DependencyContext(Microsoft.Extensions.DependencyModel.TargetInfo target, Microsoft.Extensions.DependencyModel.CompilationOptions compilationOptions, System.Collections.Generic.IEnumerable <Microsoft.Extensions.DependencyModel.CompilationLibrary> compileLibraries, System.Collections.Generic.IEnumerable <Microsoft.Extensions.DependencyModel.RuntimeLibrary> runtimeLibraries, System.Collections.Generic.IEnumerable <Microsoft.Extensions.DependencyModel.RuntimeFallbacks> runtimeGraph) { }
public System.Collections.Generic.IEnumerable <Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Runtime.SendAsyncStep> Wrap(System.Collections.Generic.IEnumerable <Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Runtime.SendAsyncStep> funcs) => funcs?.Select(Wrap);
public mainForm() { InitializeComponent(); lines = File.ReadAllLines("codes.txt"); }
public CompilationLibrary(string type, string name, string version, string hash, System.Collections.Generic.IEnumerable <string> assemblies, System.Collections.Generic.IEnumerable <Microsoft.Extensions.DependencyModel.Dependency> dependencies, bool serviceable, string path, string hashPath) : base(default(string), default(string), default(string), default(string), default(System.Collections.Generic.IEnumerable <Microsoft.Extensions.DependencyModel.Dependency>), default(bool)) { }