|
|
|
@ -30,15 +30,15 @@ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING |
|
|
|
|
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
|
|
|
|
SUCH DAMAGE. |
|
|
|
|
|
|
|
|
|
Portions of this software are copyright © 2023 The FreeType |
|
|
|
|
Portions of this software are copyright <EFBFBD> 2023 The FreeType |
|
|
|
|
Project (www.freetype.org). Please see LICENSE_FT.txt for more information. |
|
|
|
|
All rights reserved. |
|
|
|
|
*/ |
|
|
|
|
#pragma endregion |
|
|
|
|
#include "CraftingRequirement.h" |
|
|
|
|
|
|
|
|
|
CraftingRequirement::CraftingRequirement(const std::vector<std::pair<IT,int>>&craftingItems,const uint32_t cost) |
|
|
|
|
:craftingItems(craftingItems),cost(cost){} |
|
|
|
|
CraftingRequirement::CraftingRequirement(const std::vector<std::pair<IT,int>>&craftingItems,const uint32_t cost,const uint8_t availableChapter) |
|
|
|
|
:craftingItems(craftingItems),cost(cost),availableChapter(availableChapter){} |
|
|
|
|
|
|
|
|
|
const std::vector<std::pair<IT,int>>&CraftingRequirement::GetItems()const{ |
|
|
|
|
return craftingItems; |
|
|
|
@ -46,3 +46,6 @@ const std::vector<std::pair<IT,int>>&CraftingRequirement::GetItems()const{ |
|
|
|
|
const uint32_t CraftingRequirement::GetCost()const{ |
|
|
|
|
return cost; |
|
|
|
|
} |
|
|
|
|
const uint8_t CraftingRequirement::GetAvailableChapter()const{ |
|
|
|
|
return availableChapter; |
|
|
|
|
} |