shared_ptr -> std::shared_ptr
This is one of the first commits in a plan to remove all `using namespace std;` lines in the entire codebase as it is considered anti-pattern today.
This commit is contained in:
@@ -62,12 +62,12 @@ private:
|
||||
eINSTANCEOF eType;
|
||||
};
|
||||
|
||||
class Recipes
|
||||
class Recipes
|
||||
{
|
||||
public:
|
||||
static const int ANY_AUX_VALUE = -1;
|
||||
|
||||
private:
|
||||
private:
|
||||
static Recipes *instance;
|
||||
|
||||
vector <Recipy *> *recipies;
|
||||
@@ -75,25 +75,25 @@ private:
|
||||
public:
|
||||
static void staticCtor();
|
||||
|
||||
public:
|
||||
static Recipes *getInstance()
|
||||
public:
|
||||
static Recipes *getInstance()
|
||||
{
|
||||
return instance;
|
||||
}
|
||||
|
||||
private:
|
||||
private:
|
||||
void _init(); // 4J add
|
||||
Recipes();
|
||||
|
||||
public:
|
||||
ShapedRecipy *addShapedRecipy(ItemInstance *, ... );
|
||||
void addShapelessRecipy(ItemInstance *result,... );
|
||||
void addShapelessRecipy(ItemInstance *result,... );
|
||||
|
||||
shared_ptr<ItemInstance> getItemFor(shared_ptr<CraftingContainer> craftSlots, Level *level);
|
||||
std::shared_ptr<ItemInstance> getItemFor(std::shared_ptr<CraftingContainer> craftSlots, Level *level);
|
||||
vector <Recipy *> *getRecipies();
|
||||
|
||||
// 4J-PB - Added all below for new Xbox 'crafting'
|
||||
shared_ptr<ItemInstance> getItemForRecipe(Recipy *r);
|
||||
std::shared_ptr<ItemInstance> getItemForRecipe(Recipy *r);
|
||||
Recipy::INGREDIENTS_REQUIRED *getRecipeIngredientsArray();
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user