Skip to content

Commit a57fcf9

Browse files
committed
rename CraftIngredient -> CraftingRecipeIngredient
1 parent 1061b28 commit a57fcf9

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

Framework/Intersect.Framework.Core/GameObjects/Crafting/CraftBase.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace Intersect.Framework.Core.GameObjects.Crafting;
99
public partial class CraftBase : DatabaseObject<CraftBase>, IFolderable
1010
{
1111
[NotMapped]
12-
public List<CraftIngredient> Ingredients { get; set; } = [];
12+
public List<CraftingRecipeIngredient> Ingredients { get; set; } = [];
1313

1414
[JsonConstructor]
1515
public CraftBase(Guid id) : base(id)
@@ -28,7 +28,7 @@ public CraftBase()
2828
public string IngredientsJson
2929
{
3030
get => JsonConvert.SerializeObject(Ingredients, Formatting.None);
31-
protected set => Ingredients = JsonConvert.DeserializeObject<List<CraftIngredient>>(value);
31+
protected set => Ingredients = JsonConvert.DeserializeObject<List<CraftingRecipeIngredient>>(value);
3232
}
3333

3434
[JsonProperty(Order = -6)]

Framework/Intersect.Framework.Core/GameObjects/Crafting/CraftIngredient.cs renamed to Framework/Intersect.Framework.Core/GameObjects/Crafting/CraftingRecipeIngredient.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
namespace Intersect.Framework.Core.GameObjects.Crafting;
44

5-
public partial class CraftIngredient
5+
public partial class CraftingRecipeIngredient
66
{
77
public Guid ItemId { get; set; }
88

99
public int Quantity { get; set; }
1010

11-
public CraftIngredient(Guid itemId, int quantity)
11+
public CraftingRecipeIngredient(Guid itemId, int quantity)
1212
{
1313
ItemId = itemId;
1414
Quantity = quantity;

Intersect.Client.Core/Interface/Game/Crafting/CraftingWindow.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ private void LoadCraftRecipe(CraftBase craftDescriptor)
166166
}
167167

168168
var craftedItemDescriptorId = craftDescriptor.ItemId;
169-
_craftedItem = new RecipeItem(this, new CraftIngredient(craftedItemDescriptorId, 0))
169+
_craftedItem = new RecipeItem(this, new CraftingRecipeIngredient(craftedItemDescriptorId, 0))
170170
{
171171
Container = new ImagePanel(this, "CraftedItem"),
172172
};

Intersect.Client.Core/Interface/Game/Crafting/RecipeItem.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public partial class RecipeItem
2727
private Draggable? mDragIcon;
2828

2929
//Slot info
30-
CraftIngredient mIngredient;
30+
CraftingRecipeIngredient mIngredient;
3131

3232
//Mouse Event Variables
3333
private bool mMouseOver;
@@ -38,7 +38,7 @@ public partial class RecipeItem
3838

3939
public ImagePanel? Pnl;
4040

41-
public RecipeItem(CraftingWindow craftingWindow, CraftIngredient ingredient)
41+
public RecipeItem(CraftingWindow craftingWindow, CraftingRecipeIngredient ingredient)
4242
{
4343
mCraftingWindow = craftingWindow;
4444
mIngredient = ingredient;

Intersect.Editor/Forms/Editors/frmCrafts.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ private void nudItemLossChance_ValueChanged(object sender, EventArgs e)
184184

185185
private void btnAdd_Click(object sender, EventArgs e)
186186
{
187-
mEditorItem.Ingredients.Add(new CraftIngredient(Guid.Empty, 1));
187+
mEditorItem.Ingredients.Add(new CraftingRecipeIngredient(Guid.Empty, 1));
188188
lstIngredients.Items.Add(Strings.General.None);
189189
lstIngredients.SelectedIndex = lstIngredients.Items.Count - 1;
190190
cmbIngredient_SelectedIndexChanged(null, null);
@@ -363,7 +363,7 @@ private void btnDupIngredient_Click(object sender, EventArgs e)
363363
{
364364
mEditorItem.Ingredients.Insert(
365365
lstIngredients.SelectedIndex,
366-
new CraftIngredient(
366+
new CraftingRecipeIngredient(
367367
mEditorItem.Ingredients[lstIngredients.SelectedIndex].ItemId,
368368
mEditorItem.Ingredients[lstIngredients.SelectedIndex].Quantity
369369
)

0 commit comments

Comments
 (0)