static GrillSlot[] CreateGrillSlots() { GrillSlot[] slots = new GrillSlot[12]; for (int column = 0; column < 3; column++) for (int row = 0; row < 4; row++) { GrillSlot gs = new GrillSlot {X = 192 + column*120, Y = 128 + row*80}; slots[column + (row*3)] = gs; } return slots; }
void FlipMeat(GrillSlot gs) { Log.AddMessage("Flipping patty...", Log.LoggingLevel.Debug); if (!gs.Used) throw new Exception("empty slot"); FlashAutomation.Click(gs.X, gs.Y); FlashAutomation.AntiHover(gs.X, gs.Y); gs.FlipTime = DateTime.MaxValue; switch (gs.CookingDegree) { case CookingDegrees.Rare: gs.DoneTime = DateTime.Now.AddSeconds(15); break; case CookingDegrees.Medium: gs.DoneTime = DateTime.Now.AddSeconds(30); break; case CookingDegrees.WellDone: gs.DoneTime = DateTime.Now.AddSeconds(50); break; default: break; } Log.AddMessage("Flipped patty", Log.LoggingLevel.Debug); Update(); }
public void RemoveMeat(GrillSlot gs) { Log.AddMessage("Removing patty from grill...", Log.LoggingLevel.Debug); if (!gs.Used) throw new Exception("empty slot"); FlashAutomation.DragDrop(gs.X, gs.Y, 567, 380); FlashAutomation.AntiHover(567, 380); gs.Used = false; gs.DoneTime = DateTime.MaxValue; gs.FlipTime = DateTime.MaxValue; Log.AddMessage("Removed patty from grill", Log.LoggingLevel.Debug); Update(); }