-
-
Save ScottLilly/fa612826c933302b3c7b4aedab5dca19 to your computer and use it in GitHub Desktop.
101Code fixes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; } | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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