Skip to content

Instantly share code, notes, and snippets.

@ScottLilly
Created September 5, 2018 19:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ScottLilly/fa612826c933302b3c7b4aedab5dca19 to your computer and use it in GitHub Desktop.
Save ScottLilly/fa612826c933302b3c7b4aedab5dca19 to your computer and use it in GitHub Desktop.
101Code fixes
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MTEngine
{
public class InventoryItem
{
public InventoryItem(Item item, int v)
{
Details = item;
Quantity = v;
}
public Item Details { get; set; }
public int Quantity { get; set; }
}
}
private void btnNorth_Click(object sender, EventArgs e)
{
MoveTo(_Miner.CurrentLocation.LocationNorth);
}
private void btnWest_Click(object sender, EventArgs e)
{
MoveTo(_Miner.CurrentLocation.LocationWest);
}
private void btnSouth_Click(object sender, EventArgs e)
{
MoveTo(_Miner.CurrentLocation.LocationSouth);
}
private void btnEast_Click(object sender, EventArgs e)
{
MoveTo(_Miner.CurrentLocation.LocationEast);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment