private static int GetCreepExp(Entity9 creep)
        {
            if (!Experience.TryGetValue(creep.Name, out var exp))
            {
                Experience[creep.Name] = Unit.GetKeyValueByName(creep.Name).GetKeyValue("BountyXP")?.GetInt32() ?? 0;
            }

            return(exp);
        }
Beispiel #2
0
 // Token: 0x060000FA RID: 250 RVA: 0x0000AB28 File Offset: 0x00008D28
 public MenuManager(Entity9 owner, IMenuManager9 menuManager)
 {
     this.menuManager         = menuManager;
     this.RootMenu            = new Menu("AIO", "O9K.AIO").SetTexture(owner.Name);
     this.GeneralSettingsMenu = new Menu("General settings");
     this.RootMenu.Add <Menu>(this.GeneralSettingsMenu);
     this.Enabled = new MenuSwitcher("Enabled", true, true).SetTooltip("Enable assembly for " + owner.DisplayName);
     this.GeneralSettingsMenu.Add <MenuSwitcher>(this.Enabled);
     menuManager.AddRootMenu(this.RootMenu);
 }
Beispiel #3
0
        private static int GetCreepExp(Entity9 creep)
        {
            if (!Experience.TryGetValue(creep.Name, out var exp))
            {
                try
                {
                    exp = Game.FindKeyValues(creep.Name + "/BountyXP", KeyValueSource.Unit).IntValue;
                }
                catch (KeyValuesNotFoundException)
                {
                    exp = 0;
                }

                Experience[creep.Name] = exp;
            }

            return(exp);
        }
Beispiel #4
0
 // Token: 0x0600009B RID: 155 RVA: 0x00002775 File Offset: 0x00000975
 public CollisionObject(Entity9 entity, Vector3 position, float radius)
 {
     this.Entity   = entity;
     this.Position = position.To2D();
     this.Radius   = radius;
 }