Update to NeoLegacy Latest
This commit is contained in:
+16
-14
@@ -10,13 +10,13 @@
|
||||
#define RECIPE_TYPE_2x2 0
|
||||
#define RECIPE_TYPE_3x3 1
|
||||
|
||||
class Recipy
|
||||
class Recipy
|
||||
{
|
||||
public:
|
||||
enum _eGroupType
|
||||
{
|
||||
eGroupType_First=0,
|
||||
eGroupType_Structure=0,
|
||||
eGroupType_First = 0,
|
||||
eGroupType_Structure = 0,
|
||||
eGroupType_Tool,
|
||||
eGroupType_Food,
|
||||
eGroupType_Armour,
|
||||
@@ -28,28 +28,30 @@ public:
|
||||
eGroupType; // to class the item produced by the recipe
|
||||
|
||||
// 4J-PB - we'll classing an ingredient ID with a different aux value as a different IngID AuxVal pair
|
||||
typedef struct
|
||||
typedef struct
|
||||
{
|
||||
int iIngC;
|
||||
int iType; // Can be a 2x2 or a 3x3. Inventory crafting can only make a 2x2.
|
||||
int *iIngIDA;
|
||||
int *iIngValA;
|
||||
int *iIngAuxValA;
|
||||
Recipy *pRecipy;
|
||||
int* iIngIDA;
|
||||
int* iIngValA;
|
||||
int* iIngAuxValA;
|
||||
Recipy* pRecipy;
|
||||
bool bCanMake[XUSER_MAX_COUNT];
|
||||
unsigned int *uiGridA; // hold the layout of the recipe (id | auxval<<24)
|
||||
unsigned int* uiGridA; // hold the layout of the recipe (id | auxval<<24)
|
||||
unsigned short usBitmaskMissingGridIngredients[XUSER_MAX_COUNT]; // each bit set means we don't have that grid ingredient
|
||||
}
|
||||
INGREDIENTS_REQUIRED;
|
||||
~Recipy() {}
|
||||
virtual bool matches(shared_ptr<CraftingContainer> craftSlots, Level *level) = 0;
|
||||
virtual ~Recipy() = default;
|
||||
virtual bool matches(shared_ptr<CraftingContainer> craftSlots, Level* level) = 0;
|
||||
virtual shared_ptr<ItemInstance> assemble(shared_ptr<CraftingContainer> craftSlots) = 0;
|
||||
virtual int size() = 0;
|
||||
virtual const ItemInstance *getResultItem() = 0;
|
||||
virtual const int getGroup() = 0;
|
||||
virtual const ItemInstance* getResultItem() = 0;
|
||||
virtual const int getGroup() = 0;
|
||||
|
||||
// 4J-PB
|
||||
virtual bool reqs(int iRecipe) = 0;
|
||||
virtual void reqs(INGREDIENTS_REQUIRED *pIngReq) = 0;
|
||||
virtual void reqs(INGREDIENTS_REQUIRED* pIngReq) = 0;
|
||||
|
||||
virtual void writeToStream(DataOutputStream* dos) = 0;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user