コード例 #1
0
ファイル: RecipeableItem.cs プロジェクト: Slesa/Poseidon
 public static string GetRecipeableItemType(this RecipeableItem item)
 {
     if (item != null)
     {
         if (item is PurchaseItem)
         {
             return("I");
         }
         if (item is ProductionItem)
         {
             return("P");
         }
     }
     return(null);
 }
コード例 #2
0
 public RecipeItem(decimal quantity, RecipeableItem recipeableItem)
 {
     Quantity       = quantity;
     RecipeableItem = recipeableItem;
 }
コード例 #3
0
ファイル: RecipeItem.cs プロジェクト: Slesa/Poseidon
 public RecipeItem(decimal quantity, RecipeableItem recipeableItem)
 {
     Quantity = quantity;
     RecipeableItem = recipeableItem;
 }