Skip to content

Commit 09aaf5c

Browse files
committed
separate CraftIngredient into its own file
1 parent f581b0d commit 09aaf5c

File tree

2 files changed

+20
-19
lines changed

2 files changed

+20
-19
lines changed

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

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -72,22 +72,4 @@ public string JsonCraftingRequirements
7272
get => CraftingRequirements.Data();
7373
set => CraftingRequirements.Load(value ?? "[]");
7474
}
75-
}
76-
77-
public partial class CraftIngredient
78-
{
79-
public Guid ItemId { get; set; }
80-
81-
public int Quantity { get; set; }
82-
83-
public CraftIngredient(Guid itemId, int quantity)
84-
{
85-
ItemId = itemId;
86-
Quantity = quantity;
87-
}
88-
89-
public ItemBase GetItem()
90-
{
91-
return ItemBase.Get(ItemId);
92-
}
93-
}
75+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
namespace Intersect.GameObjects.Crafting;
2+
3+
public partial class CraftIngredient
4+
{
5+
public Guid ItemId { get; set; }
6+
7+
public int Quantity { get; set; }
8+
9+
public CraftIngredient(Guid itemId, int quantity)
10+
{
11+
ItemId = itemId;
12+
Quantity = quantity;
13+
}
14+
15+
public ItemBase GetItem()
16+
{
17+
return ItemBase.Get(ItemId);
18+
}
19+
}

0 commit comments

Comments
 (0)