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.
19 lines
713 B
C++
19 lines
713 B
C++
#pragma once
|
|
|
|
#include "WeighedRandom.h"
|
|
|
|
class WeighedTreasure : public WeighedRandomItem
|
|
{
|
|
private:
|
|
std::shared_ptr<ItemInstance> item;
|
|
int minCount;
|
|
int maxCount;
|
|
|
|
public:
|
|
WeighedTreasure(int itemId, int auxValue, int minCount, int maxCount, int weight);
|
|
WeighedTreasure(std::shared_ptr<ItemInstance> item, int minCount, int maxCount, int weight);
|
|
|
|
static void addChestItems(Random *random, WeighedTreasureArray items, std::shared_ptr<ChestTileEntity> dest, int numRolls);
|
|
static void addDispenserItems(Random *random, WeighedTreasureArray items, std::shared_ptr<DispenserTileEntity> dest, int numRolls);
|
|
static WeighedTreasureArray addToTreasure(WeighedTreasureArray items, WeighedTreasure *extra);
|
|
}; |