Inheritance: BaseAction
 private string comboOf(Combo combo)
 {
     foreach(string comboName in comboInfo.Combos.Keys)
         if (combo.Equals(comboInfo.Combos[comboName]))
             return comboName;
     return "";
 }
Example #2
0
 public HandController()
 {
     combo = new Combo(Combos.High, 0);
     AvailableCards = new Dictionary<int, List<CardBasic>>();
     FlushCheck = new FlushChecker(Suits.Spikes, 0);
     WinningCards = new List<CardBasic>();
 }
Example #3
0
		public HeightMapSizeDialog( DoneCallback source )
		{
            this.source = source;

			window = new Window ("Heightmap width and height:");
			window.SetDefaultSize (200, 100);

            Table table = new Table( 3, 2, false );
            table.BorderWidth = 20;
            table.RowSpacing = 20;
            table.ColumnSpacing = 20;
            window.Add(table);

            table.Attach(new Label("Width:"), 0, 1, 0, 1);
            table.Attach(new Label("Height:"), 0, 1, 1, 2);

            widthcombo = new Combo();
            widthcombo.PopdownStrings = new string[]{"4","8","12","16","20","24","28","32"};
            table.Attach(widthcombo, 1, 2, 0, 1);

            heightcombo = new Combo();
            heightcombo.PopdownStrings = new string[]{"4","8","12","16","20","24","28","32"};
            table.Attach(heightcombo, 1, 2, 1, 2);

			Button button = new Button (Stock.Ok);
			button.Clicked += new EventHandler (OnOkClicked);
			button.CanDefault = true;
			
            table.Attach(button, 1, 2, 2, 3);

            window.Modal = true;
            window.ShowAll();
		}
Example #4
0
	// Use this for initialization
	void Start () {
		combo = new Combo();

		if (comboIndicator == null)
		{
			var gameObject = GameObject.FindWithTag("Player Combo Indicator");
			comboIndicator = gameObject.GetComponent<ComboIndicator>();
		}
		if (comboIndicator != null)
		{
			comboIndicator.SetCombo(combo);
		}
		else
		{
			Debug.LogWarning("Cannot find 'Player Combo Indicator'. Did you add a UI?");
		}

		bulletSpawner = GetComponent<RespawnBullet>();
		comboDb = FindObjectOfType<ComboDatabase>();

		invalidComboEffect = FindObjectOfType<InvalidComboEffect>();

		string[] joystickNames = Input.GetJoystickNames();

		foreach (string str in joystickNames)
		{
			print("Joystick:" + str);
		}
	}
 // creates a reference to the current combo
 void CreateCombo(Combo combo)
 {
     completeCombos.Add(combo);
     Debug.Log (combo);
     inputs.Clear ();
     currentInput = "";
 }
Example #6
0
    protected override float scoreCombo(Combo combo, int startup = Int32.MaxValue)
    {
        float score = 1.0f;
        //Killers		
        if(myState.Meter < combo.EXMeter)
            return 0;//We don't have the meter
        if(combo.EXMeter > 0)
            score *= (float)myState.Meter / (float)combo.EXMeter;
        if (combo.Type.HasFlag(ComboType.ULTRA))
			if(myState.Revenge < 400/2)
				return 0;//We don't have ultra
			else
			{
				score *= ((float)400)/myState.Revenge;
			}
        //Corner
		
        float cornerDistance;
        if (myState.XDistance > 0)
            cornerDistance = Math.Abs(7.5f + myState.X);//Facing Left
        else
            cornerDistance = Math.Abs(-7.5f + myState.X);//Facing right
        if (combo.Type.HasFlag(ComboType.CORNER) && cornerDistance > 2.5)
            return 0;
        if (combo.Type.HasFlag(ComboType.MIDSCREEN) && cornerDistance < 2.5)
            return 0;
        if (Math.Abs(myState.XDistance) <= combo.XMax && Math.Abs(myState.XDistance) >= combo.XMin)
            score *= 1000;//We are already in range
        //TODO IF WE ARE ALMOST IN RANGE
        //TODO GROUNDED.ANTIAIR.POKE.THROWF setup
		
        if (combo.Type.HasFlag(ComboType.DEBUG))
            return float.MaxValue;
        return score;
    }
Example #7
0
    void Start()
    {
        comboManager = GetComponent<ComboManager>() as ComboManager;

        Combo c = new Combo ();
        c.name = "JUMP";
        c.sequence = new List<Combo.keyTypes> ();
        c.sequence.Add (Combo.keyTypes.UP);
        c.sequence.Add (Combo.keyTypes.UP);
        c.Create();
        comboManager.combos.Add (c);

        Combo l = new Combo ();
        l.name = "SPINNING BIRDKICK";
        l.sequence = new List<Combo.keyTypes> ();
        l.sequence.Add (Combo.keyTypes.DOWN);
        l.sequence.Add (Combo.keyTypes.LEFT);
        l.sequence.Add (Combo.keyTypes.DOWN);
        l.sequence.Add (Combo.keyTypes.HK);
        l.Create();
        comboManager.combos.Add (l);

        Combo j = new Combo ();
        j.name = "Spinning Elbow!";
        j.sequence = new List<Combo.keyTypes> ();
        j.sequence.Add (Combo.keyTypes.HK);
        j.sequence.Add (Combo.keyTypes.HK);
        j.sequence.Add (Combo.keyTypes.HK);
        j.Create();
        comboManager.combos.Add (j);
    }
Example #8
0
	public void Initialize(int id)
	{
		comboId = id;
		ComboDatabase comboDb = FindObjectOfType<ComboDatabase>();
		combo = comboDb.GetCombo(comboId);

		SetCombo(combo);
	}
Example #9
0
 public bool Equals(Combo obj)
 {
     if (obj == null || obj.ComboSequence.Count != comboSequence.Count)
             return false;
         int i = 0;
         while (i < comboSequence.Count && comboSequence[i] == obj.ComboSequence[i])
             ++i;
         return (i == comboSequence.Count);
 }
Example #10
0
	public bool ContainsCombo(Combo c)
	{
		foreach (var combo in combos)
		{
			if (combo.Equals(c))
			{
				return true;
			}
		}
		return false;
	}
Example #11
0
	public int GetId(Combo c)
	{
		for (int i = 0; i < combos.Count; ++i)
		{
			if (combos[i].Equals(c))
			{
				return i;
			}
		}
		return -1;
	}
Example #12
0
        private static ScheduledTask[] AddTaskMulti(string name, string schedule, Combo[] combos, ScheduledTaskCallback callback)
        {
            var tasks = new ScheduledTask[combos.Length];
            for (var i = 0; i < combos.Length; i++)
            {
                var schtick = combos[i].Schtick;
                var wrapper = combos[i].Wrapper;
                tasks[i] = schtick.AddAsyncTask(name, schedule, wrapper.Wrap(callback));
            }

            return tasks;
        }
Example #13
0
	public void InitializeCombos(int numCombos)
	{
		for (int i = 0; i < numCombos; ++i)
		{
			Combo c = new Combo(comboLength);
			while (ContainsCombo(c))
			{
				c.Generate(comboLength);
			}
			combos.Add(c);
		}
	}
Example #14
0
        private static Combo[] CreateCombosArray(int count, Func<IDatabase> getDb)
        {
            var combos = new Combo[count];
            for (var i = 0; i < count; i++)
            {
                combos[i] = new Combo()
                {
                    Wrapper = new RedisSchtickWrapper(getDb, "test-" + i),
                    Schtick = new Schtick(),
                };
            }

            return combos;
        }
Example #15
0
	public bool Equals(Combo c)
	{
		if (entries.Count != c.entries.Count)
		{
			return false;
		}

		for (int i = 0; i < entries.Count; ++i)
		{
			if (entries[i] != c.entries[i])
			{
				return false;
			}
		}

		return true; 
	}
Example #16
0
    ComboSample()
    {
        Application.Init ();

           Window win = new Window ("ComboSample");
           win.DeleteEvent += new DeleteEventHandler (OnWinDelete);

           string[] list = new string[] {"one", "two", "three"};

           combo = new Combo ();
           combo.PopdownStrings = list;
           combo.DisableActivate ();
           combo.Entry.Activated += new EventHandler (OnEntryActivated);

           win.Add (combo);

           win.ShowAll ();
           Application.Run ();
    }
Example #17
0
	public void SetGraphics(Combo.Entry entry)
	{
		switch(entry)
		{
		case Combo.Entry.Up:
			foreground.sprite = spriteUp;
			break;
		case Combo.Entry.Down:
			foreground.sprite = spriteDown;
			break;
		case Combo.Entry.Left:
			foreground.sprite = spriteLeft;
			break;
		case Combo.Entry.Right:
			foreground.sprite = spriteRight;
			break;
		default:
			Debug.LogError("Invalid selector for UpdateGraphics. Cannot find sprite for Combo.Entry: " + entry.ToString());
			break;	
		}
	}
 // Use this for initialization
 // for sorting possible combos
 private static int CompareCombosByLength(Combo x, Combo y)
 {
     if (x.comboInput == null) {
         if (y.comboInput == null) {
             return 0;
         } else {
             return -1;
         }
     } else {
         if (y.comboInput == null) {
             return 1;
         } else {
             int retval = x.comboInput.Length.CompareTo (y.comboInput.Length);
             if (retval != 0) {
                 return -retval;
             } else {
                 return x.comboInput.CompareTo (y.comboInput);
             }
         }
     }
 }
Example #19
0
 public Combo CheckStraightFlush(Dictionary<int,List<CardBasicScript>> combination,FlushChecker flushChecker)
 {
     var flush = new Combo(Combos.Flush, HighFlushRank(combination,flushChecker));
     if (ComboName!=Combos.Straight)
         return flush;
     for (int i =0; i<5; i++)
     {
         var sameSuit = false;
         foreach (var cardScript in combination[Strength-i])
         {
             if (cardScript.Card.Suit == flushChecker.Suit)
             {
                 sameSuit = true;
                 break;
             }
         }
         if (!sameSuit)
             return flush;
     }
     if (Strength == 14)
         return new Combo(Combos.RoyalFlush,Strength);
     return new Combo(Combos.StraightFlush,Strength);
 }
Example #20
0
        public static void Load()
        {
            Principal = MainMenu.AddMenu("HTTF Riven v2", "Riven");
            Principal.AddLabel("• Hello");

            Combo = Principal.AddSubMenu("Combo", "Combo");
            Combo.AddSeparator(3);
            Combo.AddLabel("• Spells Combo");
            Combo.Add("UseQCombo", new CheckBox("Use Q?"));
            Combo.Add("UseWCombo", new CheckBox("Use W?"));
            Combo.Add("UseECombo", new CheckBox("Use E"));
            Combo.Add("UseRCombo", new CheckBox("Use R?"));
            Combo.Add("UseR2Combo", new CheckBox("Use R2?"));
            Combo.Add("BrokenAnimations", new CheckBox("Broken Animations ?", false));
            Combo.Add("logic1x1", new CheckBox("Use logic 1x1"));
            Combo.Add("UseHT", new CheckBox("Use Hydra-Tiamat in combo?"));

            Combo.AddSeparator(3);


            Combo.AddLabel("• Spell R");
            Combo.Add("UseRType", new ComboBox("Use R when", 1, "Target less than 40 % HP", "DamageIndicator greater than 100 %", "Always", "On Keypress"));
            Combo.Add("ForceR", new KeyBind("R On Keypress Key", false, KeyBind.BindTypes.PressToggle, 'U'));
            Combo.Add("DontR1", new Slider("Dont R if Target HP {0}% <=", 25, 10, 50));
            Combo.AddSeparator(3);
            Combo.AddLabel("• Spell R2");
            Combo.Add("UseR2Type", new ComboBox("Use R2 when", 0, "Kill only", "Max damage when target less than 25 %"));
            Combo.AddLabel(" FLEE");
            Combo.Add("UseQFlee", new CheckBox("Use Q"));
            Combo.Add("UseEFlee", new CheckBox("Use E"));

            Shield = Principal.AddSubMenu("Shield", "Shield");
            Shield.AddLabel("• Spell E");
            foreach (var Enemy in EntityManager.Heroes.Enemies)
            {
                Shield.AddLabel(Enemy.ChampionName);
                Shield.Add("E/" + Enemy.BaseSkinName + "/Q", new CheckBox(Enemy.ChampionName + " (Q)", false));
                Shield.Add("E/" + Enemy.BaseSkinName + "/W", new CheckBox(Enemy.ChampionName + " (W)", false));
                Shield.Add("E/" + Enemy.BaseSkinName + "/E", new CheckBox(Enemy.ChampionName + " (E)", false));
                Shield.Add("E/" + Enemy.BaseSkinName + "/R", new CheckBox(Enemy.ChampionName + " (R)", false));
                Shield.AddSeparator(1);
            }



            Laneclear = Principal.AddSubMenu("Laneclear", "Laneclear");
            Laneclear.AddLabel("• WaweClean");
            Laneclear.Add("UseQLane", new CheckBox("Use Q"));
            Laneclear.Add("UseWLane", new CheckBox("Use W"));
            Laneclear.Add("UseWLaneMin", new Slider("Use W if you hit {0} minions", 3, 0, 10));
            Laneclear.AddLabel("• JunglClean");
            Laneclear.Add("UseQJG", new CheckBox("Use Q"));
            Laneclear.Add("UseWJG", new CheckBox("Use W"));
            Laneclear.Add("UseEJG", new CheckBox("Use E"));



            Misc = Principal.AddSubMenu("Misc", "Misc");
            Misc.Add("Skin", new CheckBox("Skinhack ?", false));
            Misc.Add("SkinID", new Slider("Skin ID: {0}", 4, 0, 11));
            Misc.Add("Interrupter", new CheckBox("Interrupter ?"));
            Misc.Add("InterrupterW", new CheckBox("Interrupter with W ?"));
            Misc.Add("Gapcloser", new CheckBox("Gapcloser ?"));
            Misc.Add("GapcloserW", new CheckBox("Use W on Gapcloser ?"));
            Misc.Add("AliveQ", new CheckBox("Use Q Keep Alive ?"));
            Misc.AddLabel("• ItemLogic");
            Misc.AddLabel("• Hydra Logic");
            Misc.Add("Hydra", new CheckBox("Use Hydra?"));
            Misc.Add("HydraReset", new CheckBox("Use hydra to reset your AA"));
            Misc.AddSeparator(3);
            Misc.AddLabel("• Tiamat Logic");
            Misc.Add("Tiamat", new CheckBox("Use Tiamat?"));
            Misc.Add("TiamatReset", new CheckBox("Use the Tiamat to reset your AA"));
            Misc.AddSeparator(3);
            Misc.AddLabel("• Qss / Mercurial Logic");
            Misc.Add("Qss", new CheckBox("Use Qss?"));
            Misc.Add("QssCharm", new CheckBox("Use Qss because of charm"));
            Misc.Add("QssFear", new CheckBox("Use Qss because of fear"));
            Misc.Add("QssTaunt", new CheckBox("Use Qss because of taunt"));
            Misc.Add("QssSuppression", new CheckBox("Use Qss because of suppression"));
            Misc.Add("QssSnare", new CheckBox("Use Qss because of snare"));
            Misc.AddSeparator(3);
            Misc.AddLabel("• Youmu Logic");
            Misc.Add("Youmu", new CheckBox("Use Youmu?"));
            Misc.AddLabel("• Recommend Use 250•");
            Misc.Add("YoumuRange", new Slider("Range Cast Youmu", 1, 1, 325));


            Draw = Principal.AddSubMenu("Drawing", "Drawing");
            Draw.Add("DrawDamage", new CheckBox("Draw Damage"));
            Draw.Add("DrawOFF", new CheckBox("Draw OFF", false));
            Draw.Add("drawjump", new CheckBox("Draw jump(beta)", false));


            AnimationCancle = Principal.AddSubMenu("AnimationCancle", "CanslAnimatio");
            AnimationCancle.Add("4", new CheckBox("Q"));
            AnimationCancle.Add("Spell2", new CheckBox("W"));
            AnimationCancle.Add("Spell3", new CheckBox("E"));
            AnimationCancle.Add("Spell4", new CheckBox("R"));


            ComboLogic = Principal.AddSubMenu("ComboLogic(UPDATE)", "ComboLogics");
            ComboLogic.Add("BrokenAnimon", new CheckBox("Use features?"));
            ComboLogic.Add("moveback", new CheckBox("Use Combo HTTF Logic?(MOVEBACK)", false));

            ComboLogic.AddLabel("Q1,Q2,Q3");
            ComboLogic.Add("Q1Hydra", new CheckBox("Q>Hydra"));
            ComboLogic.Add("HydraQ", new CheckBox("Hydra>Q"));
            ComboLogic.Add("QW", new CheckBox("Q>W"));



            ComboLogic.AddLabel("W");
            ComboLogic.Add("HydraW", new CheckBox("Hydra>W"));



            ComboLogic.AddLabel("E");
            ComboLogic.Add("EQall", new CheckBox("E>Q"));
            ComboLogic.Add("EW", new CheckBox("E>W"));
            ComboLogic.Add("EH", new CheckBox("E>Hydra or Tiamat"));
            ComboLogic.Add("ER1", new CheckBox("E>R1"));
            ComboLogic.Add("ER2", new CheckBox("E>R2"));
            ComboLogic.Add("EQW", new CheckBox("E>Q>W"));


            ComboLogic.AddLabel("R1");
            ComboLogic.Add("R1W", new CheckBox("R1>W"));
            ComboLogic.Add("R1Q", new CheckBox("R1>Q"));
            ComboLogic.Add("R1Hydra", new CheckBox("R1>Hydra or Tiamat"));


            ComboLogic.AddLabel("R2");
            ComboLogic.Add("R2W", new CheckBox("R2>W"));
            ComboLogic.Add("R2Q", new CheckBox("R2>Q"));
            ComboLogic.Add("R2E", new CheckBox("R2>E"));


            ComboLogic.AddLabel("Combo Logic V2 ");
            ComboLogic.Add("SpeedCombo", new Slider("SpeedCombo(bugged)", 10, 10, 10));
        }
Example #21
0
 public void UpdateComboSide(Combo combo, Side side) //TODO: Should be domain specific logic
 {
     combo.SideType = side;
 }
Example #22
0
 public override void getStats(MainWindow cs)
 {
     base.getStats(cs);
       // Define AP and MP conversion.
       AP = STR; //or STR
       AMP = INT;
       combo = Combo.DRGNone;
 }
Example #23
0
 internal ComboIndexer(Combo c)
 {
     myCombo = c;
 }
Example #24
0
        public static async Task<bool> CastQueue(uint name, GameObject o, Func<bool> cond, bool ignoreCanCast = false, bool lockDoubleCast = false, bool falseOnFailedDoAction = false)
        {

            SpellData data;
            if (Actionmanager.CurrentActions.TryGetValue(name, out data))
            {
                if (InternalSettings.Instance.General.Debug && data.Id == 125)
                {
                    if (o != null)
                        Logging.WriteToFileSync(LogLevel.Normal, "(YourRaidingBuddy) Cast Raise Attempt: " + o.ObjectId);
                    else
                        Logging.WriteToFileSync(LogLevel.Normal, "(YourRaidingBuddy) Cast Raise Attempt on null!");
                }
                var castingspell = DataManager.GetSpellData(name);
                o = o ?? Core.Player.CurrentTarget;
                if ((lockDoubleCast && Extensions.DoubleCastPreventionDict.Contains(o, name) || Extensions.DoubleCastPreventionDict.Contains(null, name))
                    || (o as Character) != null && (o as Character).IsDead && o.Type != GameObjectType.Pc
                    || !cond() || (!ignoreCanCast && !Actionmanager.CanCastOrQueue(castingspell, o))) //if (!ignoreCanCast && !Actionmanager.CanCast(spell, o))
                    return false;
                var castTime = data.AdjustedCastTime.TotalSeconds > 0;
                if (InternalSettings.Instance.General.Debug && InternalSettings.Instance.General.WriteSpellQueue &&
                    GcdTime < 500
                    && (!name.Equals(LogFilter) || QueueLogFilter < GcdTime))
                {
                    QueueLogFilter = GcdTime;
                    Logging.WriteToFileSync(LogLevel.Normal, "(YourRaidingBuddy) " + GcdTime + " Spell Queue");
                }
                else if (QueueLogFilter > GcdTime) QueueLogFilter = GcdTime;
                Root.ShouldPulse = true;
                if (ComboSpells.ContainsKey(data.Id))
                {
                    if (LastCombo != ComboSpells[data.Id])
                    {
                        if (castTime)
                            ComboCountdown = DateTime.UtcNow.TimeOfDay +
                                             TimeSpan.FromSeconds(GcdTime / 1000 + 1 + data.AdjustedCastTime.TotalSeconds);
                        else
                            ComboCountdown = DateTime.UtcNow.TimeOfDay +
                                             TimeSpan.FromSeconds(GcdTime / 1000 + 1);
                        ComboCountCheck = true;
                        if (CachedCombo == Combo.Flushed)
                            CachedCombo = ComboSpells[data.Id];
                    }
                }
                // else if(!Gcd) {}  
                if (Actionmanager.DoAction(name, o))
                {
                    await SleepForLagDuration();
                    Logging.Write(Colors.Orchid, "[YourRaidingBuddy] Casting {0}", name);

                    if (lockDoubleCast)
                    {
                        if (InternalSettings.Instance.General.Debug)
                        {
                            Logging.WriteToFileSync(LogLevel.Normal, "(YourRaidingBuddy) " + name + " DoAction Success, applying double cast prevention: " + (2.5 + data.AdjustedCastTime.TotalSeconds));
                        }
                        Extensions.UpdateDoubleCastDict(name, o);
                    }
                    return true;
                }
                return true;
            }
            return false;
        }
Example #25
0
 void Awake()
 {
     Instance = this;
     m_text = GetComponent<Text> ();
 }
        public async Task <IActionResult> UpdateCombo([FromForm] ComboDto combo)
        {
            try
            {
                var cmbo = new Combo
                {
                    Id          = combo.Id,
                    Name        = combo.Name,
                    Description = combo.Description,
                    Total       = combo.Total
                };

                _unitOfWork.ComboRepository.Update(cmbo);
                await _unitOfWork.Commit();

                if (combo.Image != null)
                {
                    var imageToRemove = await _unitOfWork.ComboImageRepository.GetByComboId(combo.Id);

                    if (imageToRemove != null)
                    {
                        await _unitOfWork.ComboImageRepository.DeleteTask(imageToRemove.Id);
                    }

                    var comboImage = new ComboImage
                    {
                        ComboId = cmbo.Id
                    };

                    using (var ms = new MemoryStream())
                    {
                        combo.Image.CopyTo(ms);
                        comboImage.Image = ms.ToArray();
                    }

                    await _unitOfWork.ComboImageRepository.InsertTask(comboImage);

                    await _unitOfWork.Commit();
                }

                if (!string.IsNullOrEmpty(combo.ComboDetails))
                {
                    var comboDetailsJson = JsonConvert.DeserializeObject <List <ComboDetail> >(combo.ComboDetails);;

                    var comboDetails = comboDetailsJson.Select(x => new ComboDetail
                    {
                        ComboId = cmbo.Id,
                        DishId  = x.DishId,
                        Price   = x.Price,
                        Qty     = x.Qty
                    }).ToList();

                    await _unitOfWork.ComboDetailRepository.InsertRangeTask(comboDetails);

                    await _unitOfWork.Commit();

                    var comboDetailsDb = await _unitOfWork.ComboDetailRepository.GetDetailsByComboNoTracking(combo.Id);

                    var ids = comboDetails.Select(x => x.Id);

                    if (comboDetailsDb.Count >= comboDetails.Count)
                    {
                        var removeDetail = comboDetailsDb.Where(p => !comboDetails.Any(p2 => p2.Id == p.Id)).ToList();
                        _unitOfWork.ComboDetailRepository.DeleteRange(removeDetail);
                        await _unitOfWork.Commit();
                    }

                    _unitOfWork.ComboDetailRepository.UpdateRange(comboDetails);
                }



                await _unitOfWork.Commit();
            }
            catch (Exception e)
            {
                return(BadRequest(e.Message));
            }
            return(Ok(combo));
        }
Example #27
0
 public void UpdateCombo()
 {
     combo = new Combo(Combos.High, 0);
     foreach (var e in AvailableCards.Values)
     {
         if (combo.ComboName < Combos.Quad)
         {
             if (e.Count == 2)
             {
                 combo = combo.TwoItemCombo(e[0].Rank);
             }
             else if (e.Count == 3)
             {
                 combo = combo.ThreeItemCombo(e[0].Rank);
             }
         }
         if (e.Count == 4)
         {
             combo = new Combo(Combos.Quad, e[0].Rank);
         }
     }
     if (combo.ComboName < Combos.Straight)
         combo = combo.CheckStraight(AvailableCards);
     if (combo.Strength == 0)
         combo = new Combo(Combos.High, GetHighestRank());
     if (FlushCheck.Amount >= 5 && combo.ComboName <= Combos.Straight)
     {
         combo = combo.CheckStraightFlush(AvailableCards, FlushCheck);
     }
 }
Example #28
0
	void Awake(){
		_instance = this;
		numberLabel = transform.Find ("NumberLabel").GetComponent<UILabel> ();
		this.gameObject.SetActive(false);
	}
Example #29
0
        private void OnUpdate()
        {
            var heroes = EntityManager <Hero> .Entities.Where(x => x.IsValid && !x.IsIllusion).ToList();

            DamageList.Clear();

            foreach (var hero in heroes.Where(x => x.IsAlive && x.IsEnemy(Owner)).ToList())
            {
                List <BaseAbility> abilities = new List <BaseAbility>();

                var damage      = 0.0f;
                var readyDamage = 0.0f;
                var totalDamage = 0.0f;

                if (hero.IsVisible)
                {
                    // Veil
                    var Veil = Main.Veil;
                    if (Veil != null && Veil.Ability.IsValid && Menu.AutoKillStealToggler.Value.IsEnabled(Veil.ToString()))
                    {
                        abilities.Add(Veil);
                    }

                    // Ethereal
                    var Ethereal = Main.Ethereal;
                    if (Ethereal != null && Ethereal.Ability.IsValid && Menu.AutoKillStealToggler.Value.IsEnabled(Ethereal.ToString()))
                    {
                        abilities.Add(Ethereal);
                    }

                    // Shivas
                    var Shivas = Main.Shivas;
                    if (Shivas != null && Shivas.Ability.IsValid && Menu.AutoKillStealToggler.Value.IsEnabled(Shivas.ToString()))
                    {
                        abilities.Add(Shivas);
                    }

                    // StaticField
                    var StaticField = Main.StaticField;
                    if (StaticField.Ability.Level > 0 && Menu.AutoKillStealToggler.Value.IsEnabled(StaticField.ToString()))
                    {
                        abilities.Add(StaticField);
                    }

                    // LightningBolt
                    var LightningBolt = Main.LightningBolt;
                    if (LightningBolt.Ability.Level > 0 && Menu.AutoKillStealToggler.Value.IsEnabled(LightningBolt.ToString()))
                    {
                        abilities.Add(LightningBolt);
                    }

                    // Dagon
                    var Dagon = Main.Dagon;
                    if (Dagon != null && Dagon.Ability.IsValid && Menu.AutoKillStealToggler.Value.IsEnabled(Dagon.ToString()))
                    {
                        abilities.Add(Dagon);
                    }

                    // ArcLightning
                    var ArcLightning = Main.ArcLightning;
                    if (ArcLightning.Ability.Level > 0 && Menu.AutoKillStealToggler.Value.IsEnabled(ArcLightning.ToString()))
                    {
                        abilities.Add(ArcLightning);
                    }

                    // Nimbus
                    var Nimbus = Main.Nimbus;
                    if (Nimbus.Ability.Level > 0 && Menu.AutoKillStealToggler.Value.IsEnabled(Nimbus.ToString()))
                    {
                        abilities.Add(Nimbus);
                    }

                    // Thundergods Wrath
                    var ThundergodsWrath = Main.ThundergodsWrath;
                    if (ThundergodsWrath.Ability.Level > 0 && Menu.AutoKillStealToggler.Value.IsEnabled(ThundergodsWrath.ToString()))
                    {
                        abilities.Add(ThundergodsWrath);
                    }
                }

                var damageCalculation = new Combo(abilities.ToArray());
                var damageReduction   = -DamageReduction(hero, heroes);
                var damageBlock       = DamageBlock(hero, heroes);

                damage      += DamageHelpers.GetSpellDamage(damageCalculation.GetDamage(hero) + damageBlock, 0, damageReduction);
                readyDamage += DamageHelpers.GetSpellDamage(damageCalculation.GetDamage(hero, true, false) + damageBlock, 0, damageReduction);
                totalDamage += DamageHelpers.GetSpellDamage(damageCalculation.GetDamage(hero, false, false) + damageBlock, 0, damageReduction);

                damage      -= LivingArmor(hero, heroes, damageCalculation.Abilities);
                readyDamage -= LivingArmor(hero, heroes, damageCalculation.Abilities);
                totalDamage -= LivingArmor(hero, heroes, damageCalculation.Abilities);

                if (hero.HasModifiers(BlockModifiers) || hero.IsInvulnerable())
                {
                    damage      = 0.0f;
                    readyDamage = 0.0f;
                }

                DamageList.Add(new Damage(hero, damage, readyDamage, totalDamage, hero.Health));
            }
        }
Example #30
0
 // Use this for initialization
 void Start()
 {
     instance         = this;
     trajectoryScript = GetComponent <trajectoryScript>();
 }
Example #31
0
 public override void Start()
 {
     base.Start();
     Combo.GetInstance().RegesterCombo(this);
 }
Example #32
0
 public override void onCombo(Combo combo)
 {
     print("SwordGame::onComboEvent: " + combo);
 }
        public async Task <ActionResult <Combo> > CreateCombo([FromForm] ComboDto combo)
        {
            try
            {
                var cmbo = new Combo
                {
                    Name        = combo.Name,
                    Description = combo.Description,
                    Total       = combo.Total
                };
                await _unitOfWork.ComboRepository.InsertTask(cmbo);

                await _unitOfWork.Commit();


                if (combo.Image != null)
                {
                    var imageToRemove = await _unitOfWork.ComboImageRepository.GetByComboId(combo.Id);

                    if (imageToRemove != null)
                    {
                        await _unitOfWork.ComboImageRepository.DeleteTask(imageToRemove.Id);
                    }

                    var comboImage = new ComboImage
                    {
                        ComboId = cmbo.Id
                    };

                    using (var ms = new MemoryStream())
                    {
                        combo.Image.CopyTo(ms);
                        comboImage.Image = ms.ToArray();
                    }

                    await _unitOfWork.ComboImageRepository.InsertTask(comboImage);

                    await _unitOfWork.Commit();
                }


                if (!string.IsNullOrEmpty(combo.ComboDetails))
                {
                    var comboDetailsJson = JsonConvert.DeserializeObject <List <ComboDetail> >(combo.ComboDetails);;

                    var comboDetails = comboDetailsJson.Select(x => new ComboDetail
                    {
                        ComboId = cmbo.Id,
                        DishId  = x.DishId,
                        Price   = x.Price,
                        Qty     = x.Qty
                    }).ToList();

                    await _unitOfWork.ComboDetailRepository.InsertRangeTask(comboDetails);

                    await _unitOfWork.Commit();
                }

                return(cmbo);
            }
            catch (Exception e)
            {
                return(BadRequest(e.Message));
            }
        }
Example #34
0
        public void GivesCorrectCalorieCount()
        {
            Combo c = new Combo(new BriarheartBurger(), new DragonbornWaffleFries(), new SailorSoda());

            Assert.Equal((uint)937, c.Calories);
        }
Example #35
0
        public static void SyncCombos()
        {
            if (!ComboCountCheck) return;
            if (ComboCountdown > DateTime.UtcNow.TimeOfDay)
            {
                if (!Gcd || CachedCombo == Combo.Flushed) return;
                LastCombo = CachedCombo;
                CachedCombo = Combo.Flushed;
            }
            else
            {
                CachedCombo = Combo.Flushed;
                if (ComboSpells.ContainsKey(Actionmanager.LastSpellId))
                    LastCombo = ComboSpells[Actionmanager.LastSpellId];
                else
                {
                    ComboCountCheck = false;
                    if ((LastCombo | Combo.Finished) != Combo.Finished)
                        Logging.Write(Colors.OrangeRed, "[YourRaidingBuddy] Clearing " + LastCombo + " because " + Actionmanager.LastSpell);
                    LastCombo = Combo.Finished;

                }
            }
        }
Example #36
0
        public void GivesCorrectPrice()
        {
            Combo c = new Combo(new BriarheartBurger(), new DragonbornWaffleFries(), new SailorSoda());

            Assert.Equal(7.16, c.Price);
        }
Example #37
0
        public IControl this[string id]
        {
            get
            {
                if (CreatedControlsByName.ContainsKey(id)) return CreatedControlsByName[id];

                Control ret = null;
                Decal.Adapter.Wrappers.IControlWrapper iret = myView.Controls[id];
                if (iret.GetType() == typeof(Decal.Adapter.Wrappers.PushButtonWrapper))
                    ret = new Button();
                if (iret.GetType() == typeof(Decal.Adapter.Wrappers.CheckBoxWrapper))
                    ret = new CheckBox();
                if (iret.GetType() == typeof(Decal.Adapter.Wrappers.TextBoxWrapper))
                    ret = new TextBox();
                if (iret.GetType() == typeof(Decal.Adapter.Wrappers.ChoiceWrapper))
                    ret = new Combo();
                if (iret.GetType() == typeof(Decal.Adapter.Wrappers.SliderWrapper))
                    ret = new Slider();
                if (iret.GetType() == typeof(Decal.Adapter.Wrappers.ListWrapper))
                    ret = new List();
                if (iret.GetType() == typeof(Decal.Adapter.Wrappers.StaticWrapper))
                    ret = new StaticText();
                if (iret.GetType() == typeof(Decal.Adapter.Wrappers.NotebookWrapper))
                    ret = new Notebook();
                if (iret.GetType() == typeof(Decal.Adapter.Wrappers.ProgressWrapper))
                    ret = new ProgressBar();
                if (iret.GetType() == typeof(Decal.Adapter.Wrappers.ButtonWrapper))
                    ret = new ImageButton();

                if (ret == null) return null;

                ret.myControl = iret;
                ret.myName = id;
                ret.Initialize();
                allocatedcontrols.Add(ret);
                CreatedControlsByName[id] = ret;
                return ret;
            }
        }
Example #38
0
        public void ShouldBeOrderItem()
        {
            Combo c = new Combo(new BriarheartBurger(), new DragonbornWaffleFries(), new SailorSoda());

            Assert.IsAssignableFrom <IOrderItem>(c);
        }
Example #39
0
 internal ComboDataIndexer(Combo c)
 {
     myCombo = c;
 }
Example #40
0
        public static void getMenu()
        {
            Zilean = MainMenu.AddMenu("Zilean", "Zilean");
            Zilean.AddGroupLabel("Zilean");
            Zilean.AddSeparator();
            Zilean.AddLabel("Requested by yorik100");
            Zilean.AddLabel("Made by Kk2");

            /*
             * Combo Menu
             */
            Combo = Zilean.AddSubMenu("Combo", "Combo");
            Combo.AddGroupLabel("Combo Options");
            Combo.AddSeparator();
            Combo.Add("comboQ", new CheckBox("Use Q on Combo"));
            Combo.Add("comboW", new CheckBox("Use W on Combo"));
            Combo.Add("comboE", new CheckBox("Use E on Combo"));
            Combo.AddSeparator();
            ComboSlider = Combo.Add("whatcombo", new Slider("Choose your Combo: ", 0, 0, 2));
            ComboSlider.OnValueChange +=
                delegate { ComboSlider.DisplayName = "Choose your Combo: " + CombosZileans[ComboSlider.CurrentValue]; };
            ComboSlider.DisplayName = "Choose your Combo: " + CombosZileans[ComboSlider.CurrentValue];
            Combo.AddLabel("HitChance : 1 = Low, 2 = Medium, 3 = High");
            Combo.Add("PredQ", new Slider("Q HitChance", 2, 1, 3));


            /*
             * Harass Menu
             */
            Harass = Zilean.AddSubMenu("Harass", "Harass");
            Harass.AddGroupLabel("Harass Options");
            Harass.AddSeparator();
            Harass.Add("harassQ", new CheckBox("Use Q on Harass"));
            Harass.Add("harrasW", new CheckBox("Use W on Harass"));
            Harass.Add("harrasE", new CheckBox("Use E on Harass"));
            Harass.AddSeparator();
            Harass.Add("hManaSlider", new Slider("Mana % > to Harass", 20));

            /*
             * LaneClear Menu
             */
            LaneClear = Zilean.AddSubMenu("LaneClear", "LaneClear");
            LaneClear.AddGroupLabel("LaneClear Options");
            LaneClear.AddSeparator();
            LaneClear.Add("laneQ", new CheckBox("Use Q on LaneClear"));
            LaneClear.Add("laneW", new CheckBox("Use W on LaneClear"));
            LaneClear.AddSeparator();
            LaneClear.Add("lManaSlider", new Slider("Mana % > to LaneClear", 20));

            /*
             * Ult Menu
             */
            UltMenu = Zilean.AddSubMenu("UltMenu", "UltMenu");
            UltMenu.AddGroupLabel("Ultimate Options (% Health + Level)");
            UltMenu.AddSeparator();
            foreach (var h in EntityManager.Heroes.Allies)
            {
                UltMenu.AddSeparator();
                UltMenu.Add("r" + h.ChampionName, new CheckBox("Ult ON " + h.ChampionName));
                UltMenu.AddSeparator();
                UltMenu.Add("rpct" + h.ChampionName, new Slider("Health % " + h.ChampionName, 4));
            }

            /*
             * Misc Menu
             */
            Misc = Zilean.AddSubMenu("Misc", "Misc");
            Misc.AddGroupLabel("Misc Options");
            Misc.AddSeparator();
            Misc.Add("Support", new CheckBox("Support Mode"));
            Misc.Add("gapCloser", new CheckBox("Use E on GapCloser"));
            Misc.Add("Interrupt", new CheckBox("Try to Interrupt with double Q"));


            /*
             * Drawings Menu
             */
            Draw = Zilean.AddSubMenu("Drawings", "Drawings");
            Draw.AddGroupLabel("Drawings Options");
            Draw.AddSeparator();
            Draw.Add("drawQ", new CheckBox("Draw Q Range"));
            Draw.Add("drawE", new CheckBox("Draw E Range"));
            Draw.Add("drawR", new CheckBox("Draw R Range"));
            Draw.Add("cMode", new CheckBox("Draw Current Combo Mode"));
        }
Example #41
0
        public override void impact(ref Ability ability)
        {
            if (ability.name == "Invigorate") {
            TP += 500;
            MainWindow.log(MainWindow.time.ToString("F2") + " - " + ability.name + " used. 500 TP Restored. TP is " + (TP - 500) + " => " + TP);
            if (OOT) {
              OOT = false;
              nextability = MainWindow.time;
            }
              }
              //var critchance = calculateCrit(_player);
              //set potency for now, but change to damage later.
              var accroll = (MainWindow.d100(1, 10001)) / 100;

              if (ability.abilityType == "Cooldown") {
            ability.hits += 1;
              }

              if (ability.abilityType == "Weaponskill" || (ability.abilityType == "Instant")) {
            numberofattacks += 1;
            ability.swings += 1;
            if (accroll < calculateACC()) {

              // change states for combos here...
              if (ability.name == "Heavy Thrust") { combo = Combo.DRGNone; }

              if (ability.name == "Impulse Drive") { combo = Combo.Disembowel; }
              if (ability.name == "Disembowel") { combo = Combo.ChaosThrust; }
              if (ability.name == "Chaos Thrust") { combo = Combo.DRGNone; }

              if (ability.name == "True Thrust") { combo = Combo.VorpalThrust; }
              if (ability.name == "Vorpal Thrust") { combo = Combo.FullThrust; }
              if (ability.name == "Full Thrust") { combo = Combo.DRGNone; }

              if (ability.name == "Phlebotomize") { combo = Combo.DRGNone; }

              //

              double thisdamage = damage(ref ability, ability.potency);

              if (disembowel.debuff > 0) {
            thisdamage = Math.Floor(thisdamage *= 1.12);
              }

              numberofhits += 1;
              ability.hits += 1;

              totaldamage += (int)thisdamage;
              ability.damage += thisdamage;
              MainWindow.log(MainWindow.time.ToString("F2") + " - " + ability.name + " Deals " + thisdamage + " Damage. Next ability at: " + nextability);
            } else {
              numberofmisses += 1;
              ability.misses += 1;
              MainWindow.log("!!MISS!! - " + MainWindow.time.ToString("F2") + " - " + ability.name + " missed! Next ability at: " + ability.nextCast);

            }
              }
              if (ability.abilityType == "AUTOA") {
            autoattack.hits += 1;
            numberofattacks += 1;
            if (accroll < calculateACC()) {
              var thisdamage = damage(ref ability, ability.potency);
              numberofhits += 1;
              totaldamage += thisdamage;
              autoattack.damage += thisdamage;
              MainWindow.log(MainWindow.time.ToString("F2") + " - " + ability.name + " Deals " + thisdamage + " Damage. Next AA at: " + ability.nextCast);
            } else {
              autoattack.misses += 1;
              numberofmisses += 1;
              MainWindow.log("!!MISS!! - " + MainWindow.time.ToString("F2") + " - " + ability.name + " missed! Next AA at: " + ability.nextCast);
            }
              }

              // If ability has debuff, create its timer.
              if (ability.debuffTime > 0 && accroll < calculateACC()) {
            if (ability.debuff > 0 && ability.dotPotency > 0) {
              MainWindow.log(MainWindow.time.ToString("F2") + " - " + ability.name + "  DOT clipped.");
              //reset all buffs if clipping
              ability.dotbuff["heavythrust"] = false;
              ability.dotbuff["bloodforblood"] = false;
              ability.dotbuff["potion"] = false;
            }
            //If dot exists and ability doesn't miss, enable its time.

            ability.debuff = ability.debuffTime;
            if (heavythrust.buff > 0) { ability.dotbuff["heavythrust"] = true; }
            if (bloodforblood.buff > 0) { ability.dotbuff["bloodforblood"] = true; }
            if (xpotionstrength.buff > 0) { ability.dotbuff["potion"] = true; }

            if (ability.dotPotency > 0) {
              MainWindow.log(MainWindow.time.ToString("F2") + " - " + ability.name + " DoT has been applied.  Time Left: " + ability.debuff);
            } else {
              MainWindow.log(MainWindow.time.ToString("F2") + " - " + ability.name + " Debuff has been applied.  Time Left: " + ability.debuff);
            }
              }
              if (ability.buffTime > 0 && accroll < calculateACC()) {
            ability.buff = ability.buffTime;
            MainWindow.log(MainWindow.time.ToString("F2") + " - " + ability.name + " buff has been activated.  Time Left: " + ability.buff + ". Next ability at: " + nextability);
              }
              //Add buffs to dots
        }
Example #42
0
 public ExcutionResult Update(Combo employees)
 {
     throw new NotImplementedException();
 }
Example #43
0
 public TestComboState(Combo testCombo)
 {
     combo = testCombo;
 }
        public static void OnTick(EventArgs args)
        {
            if (Player.Instance.IsDead || Player.Instance.IsRecalling())
            {
                return;
            }

            PermaActive.Execute();
            var flags = Orbwalker.ActiveModesFlags;

            #region Flags checker
            if (flags.HasFlag(Orbwalker.ActiveModes.Combo))
            {
                try
                {
                    Combo.Execute();
                }
                catch (Exception e)
                {
                    Console.WriteLine("{0} Exception caught.", e);
                }
            }
            if (flags.HasFlag(Orbwalker.ActiveModes.Harass))
            {
                try
                {
                    Harass.Execute();
                }
                catch (Exception e)
                {
                    Console.WriteLine("{0} Exception caught.", e);
                }
            }
            if (flags.HasFlag(Orbwalker.ActiveModes.LastHit))
            {
                try
                {
                    LastHit.Execute();
                }
                catch (Exception e)
                {
                    Console.WriteLine("{0} Exception caught.", e);
                }
            }
            if (flags.HasFlag(Orbwalker.ActiveModes.LaneClear))
            {
                try
                {
                    LaneClear.Execute();
                }
                catch (Exception e)
                {
                    Console.WriteLine("{0} Exception caught.", e);
                }
            }
            if (flags.HasFlag(Orbwalker.ActiveModes.JungleClear))
            {
                try
                {
                    JungleClear.Execute();
                }
                catch (Exception e)
                {
                    Console.WriteLine("{0} Exception caught.", e);
                }
            }
            #endregion
        }
Example #45
0
        public void SaveUnlocksForHeroes(ICLIFlags flags, IEnumerable <STUHero> heroes, string basePath, bool npc = false)
        {
            if (flags.Positionals.Length < 4)
            {
                QueryHelp(QueryTypes);
                return;
            }

            Log("Initializing...");

            Dictionary <string, Dictionary <string, ParsedArg> > parsedTypes = ParseQuery(flags, QueryTypes, QueryNameOverrides);

            if (parsedTypes == null)
            {
                return;
            }

            foreach (STUHero hero in heroes)
            {
                if (hero == null)
                {
                    continue;
                }
                string heroNameActual = GetString(hero.Name);
                string heroFileName   = GetValidFilename(heroNameActual);

                if (heroFileName == null)
                {
                    continue;
                    // heroFileName = "Unknown";
                    // heroNameActual = "Unknown";
                }
                heroNameActual = heroNameActual.TrimEnd(' ');
                heroFileName   = heroFileName.TrimEnd(' ');

                Dictionary <string, ParsedArg> config = new Dictionary <string, ParsedArg>();
                foreach (string key in new [] { heroNameActual.ToLowerInvariant(), "*" })
                {
                    if (!parsedTypes.ContainsKey(key))
                    {
                        continue;
                    }
                    foreach (KeyValuePair <string, ParsedArg> parsedArg in parsedTypes[key])
                    {
                        if (config.ContainsKey(parsedArg.Key))
                        {
                            config[parsedArg.Key] = config[parsedArg.Key].Combine(parsedArg.Value);
                        }
                        else
                        {
                            config[parsedArg.Key] = parsedArg.Value.Combine(null); // clone for safety
                        }
                    }
                }

                if (config.Count == 0)
                {
                    continue;
                }

                var unlocks = GetInstance <STUHeroUnlocks>(hero.LootboxUnlocks);

                if (unlocks?.Unlocks == null && !npc)
                {
                    continue;
                }
                if (unlocks?.LootboxUnlocks != null && npc)
                {
                    continue;
                }

                Log($"Processing data for {heroNameActual}...");

                List <ItemInfo> weaponSkins = ListHeroUnlocks.GetUnlocksForHero(hero.LootboxUnlocks)?.SelectMany(x => x.Value.Where(y => y.Type == "Weapon")).ToList(); // eww?

                var achievementUnlocks = GatherUnlocks(unlocks?.SystemUnlocks?.Unlocks?.Select(it => (ulong)it)).ToList();
                foreach (ItemInfo itemInfo in achievementUnlocks)
                {
                    if (itemInfo == null)
                    {
                        continue;
                    }
                    Dictionary <string, TagExpectedValue> tags = new Dictionary <string, TagExpectedValue> {
                        { "event", new TagExpectedValue("base") }
                    };
                    SaveItemInfo(itemInfo, basePath, heroFileName, flags, hero, "Achievement", config, tags, weaponSkins);
                }

                if (npc)
                {
                    foreach (STUHeroSkin skin in hero.Skins)
                    {
                        if (config.ContainsKey("skin") && config["skin"].ShouldDo(GetFileName(skin.SkinOverride)))
                        {
                            Skin.Save(flags, $"{basePath}\\{RootDir}", hero, skin, false);
                        }
                    }
                    continue;
                }

                foreach (var defaultUnlocks in unlocks.Unlocks)
                {
                    var dUnlocks = GatherUnlocks(defaultUnlocks.Unlocks.Select(it => (ulong)it)).ToList();

                    foreach (ItemInfo itemInfo in dUnlocks)
                    {
                        Dictionary <string, TagExpectedValue> tags = new Dictionary <string, TagExpectedValue> {
                            { "event", new TagExpectedValue("base") }
                        };
                        SaveItemInfo(itemInfo, basePath, heroFileName, flags, hero, "Standard", config, tags, weaponSkins);
                    }
                }

                foreach (var eventUnlocks in unlocks.LootboxUnlocks)
                {
                    if (eventUnlocks?.Unlocks?.Unlocks == null)
                    {
                        continue;
                    }

                    var eventKey = ItemEvents.GetInstance().EventsNormal[(uint)eventUnlocks.Event];
                    var eUnlocks = eventUnlocks.Unlocks.Unlocks.Select(it => GatherUnlock(it)).ToList();

                    foreach (ItemInfo itemInfo in eUnlocks)
                    {
                        if (itemInfo == null)
                        {
                            continue;
                        }
                        Dictionary <string, TagExpectedValue> tags = new Dictionary <string, TagExpectedValue> {
                            { "event", new TagExpectedValue(eventUnlocks.Event.ToString().ToLowerInvariant()) }
                        };
                        SaveItemInfo(itemInfo, basePath, heroFileName, flags, hero, eventKey, config, tags, weaponSkins);
                    }
                }

                Combo.ComboInfo guiInfo = new Combo.ComboInfo();
                Combo.Find(guiInfo, hero.ImageResource1);
                Combo.Find(guiInfo, hero.ImageResource2);
                Combo.Find(guiInfo, hero.ImageResource3);
                Combo.Find(guiInfo, hero.ImageResource4);
                guiInfo.SetTextureName(hero.ImageResource1, "Icon");
                guiInfo.SetTextureName(hero.ImageResource2, "Portrait");
                guiInfo.SetTextureName(hero.ImageResource4, "Avatar");
                guiInfo.SetTextureName(hero.SpectatorIcon, "SpectatorIcon");
                SaveLogic.Combo.SaveLooseTextures(flags, Path.Combine(basePath, RootDir, heroFileName, "GUI"), guiInfo);
            }
        }
Example #46
0
 void Awake()
 {
     Instance = this;
 }