Version 1.5.0
Big Refactor
This commit is contained in:
parent
3b2a0f4de8
commit
d2f7796b79
49 changed files with 5306 additions and 3590 deletions
|
@ -2,12 +2,12 @@
|
|||
#include <stdarg.h>
|
||||
#include "Item.h"
|
||||
|
||||
typedef struct {
|
||||
typedef struct _recipecost {
|
||||
int costItem;
|
||||
int costAmount;
|
||||
} Cost;
|
||||
|
||||
typedef struct {
|
||||
typedef struct _recipe {
|
||||
bool canCraft;
|
||||
int itemResult;
|
||||
int itemAmountLevel;
|
||||
|
@ -16,7 +16,7 @@ typedef struct {
|
|||
u8 order; // Used for stable sorting.
|
||||
} Recipe;
|
||||
|
||||
typedef struct {
|
||||
typedef struct _recipeManager {
|
||||
int size;
|
||||
Recipe * recipes;
|
||||
} RecipeManager;
|
||||
|
@ -31,6 +31,7 @@ RecipeManager enchanterRecipes;
|
|||
|
||||
Recipe defineRecipe(int item, int amountOrLevel, int numArgs, ...);
|
||||
|
||||
void cloneRecipeManager(RecipeManager *from, RecipeManager *to);
|
||||
void checkCanCraftRecipes(RecipeManager * rm, Inventory * inv);
|
||||
void sortRecipes(RecipeManager * rm);
|
||||
bool craftItem(RecipeManager * rm, Recipe* r, Inventory* inv);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue