コード例 #1
0
ファイル: Speech.cs プロジェクト: somsaktom/Space-Game
 public void PlanetToBuy(Speech planetName, string characterName)
 {
     Console.WriteLine("These are what I have to sell to you, {characterName}");
     // Console.WriteLine(planetName.PlanetGoodyBags.quantity(PlanetName));
 }
コード例 #2
0
ファイル: goodyBag.cs プロジェクト: somsaktom/Space-Game
 public void quantity(Speech PlanetName)
 {
     //Console.WriteLine($"These are what {PlanetName} has to offer you in trade :\ngold = {PlanetName.Gold}\nsilver = {PlanetName.Silver}\ncopper = {PlanetName.Copper}\nbronze = {PlanetName.Bronze}\nbrass = {brass}");
 }