JustAnotherDnDGame 0.1.0
Jeu de rôle tactique au d20, vue de dessus, en C++/Qt
Loading...
Searching...
No Matches
core::ItemLookup Struct Reference

Les trois catalogues qu'un inventaire consulte pour peser et pour dériver. More...

#include <Inventory.h>

Public Member Functions

int weightGramsOf (std::string_view id) const

Public Attributes

const ItemCatalogitems = nullptr
const EquipmentCatalogequipment = nullptr

Detailed Description

Les trois catalogues qu'un inventaire consulte pour peser et pour dériver.

Member Function Documentation

◆ weightGramsOf()

int core::ItemLookup::weightGramsOf ( std::string_view id) const
nodiscard
Returns
Le poids en grammes de id, cherché dans les trois catalogues. Un identifiant inconnu ne pèse rien — et il est compté par unknownIds, plutôt que d'être confondu avec un objet réellement sans masse.

Member Data Documentation

◆ equipment

const EquipmentCatalog* core::ItemLookup::equipment = nullptr

◆ items

const ItemCatalog* core::ItemLookup::items = nullptr

The documentation for this struct was generated from the following files:
  • /home/runner/work/JustAnotherDnDGame/JustAnotherDnDGame/Source/Core/Rpg/Inventory.h
  • /home/runner/work/JustAnotherDnDGame/JustAnotherDnDGame/Source/Core/Rpg/Inventory.cpp