-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Inventory and re-writing all of the enemy logic
- Loading branch information
Showing
14 changed files
with
119 additions
and
51 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
File renamed without changes.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
namespace NovemberPirates.Utilities.ContentData | ||
{ | ||
internal class TradeableGoodsData | ||
{ | ||
internal static TradeableGoodsData Instance = new(); | ||
|
||
internal Dictionary<TradeableGoodsNames, TradeableGood> Goods = new(); | ||
|
||
private TradeableGoodsData() | ||
{ | ||
LoadPrices(); | ||
} | ||
|
||
private void LoadPrices() | ||
{ | ||
Goods.Add(TradeableGoodsNames.Lumber, new TradeableGood { Name = "Lumber", Price = 1 }); | ||
Goods.Add(TradeableGoodsNames.Food, new TradeableGood { Name = "Food", Price = 5 }); | ||
Goods.Add(TradeableGoodsNames.Material, new TradeableGood { Name = "Material", Price = 10 }); | ||
Goods.Add(TradeableGoodsNames.Weapons, new TradeableGood { Name = "Weapons", Price = 20 }); | ||
Goods.Add(TradeableGoodsNames.FineGoods, new TradeableGood { Name = "Fine Goods", Price = 40 }); | ||
Goods.Add(TradeableGoodsNames.Gems, new TradeableGood { Name = "Gems", Price = 80 }); | ||
} | ||
|
||
static internal TradeableGood GetGood(TradeableGoodsNames name) | ||
{ | ||
return Instance.Goods[name]; | ||
} | ||
} | ||
|
||
internal class TradeableGood | ||
{ | ||
internal string Name; | ||
internal int Price; | ||
} | ||
internal enum TradeableGoodsNames | ||
{ | ||
Lumber, | ||
Food, | ||
Material, | ||
Weapons, | ||
FineGoods, | ||
Gems, | ||
} | ||
} |
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