OpenMW
|
Adapter for tools with limited uses IDs (lockpick, repair, probes) More...
#include <refidadapterimp.hpp>
Public Member Functions | |
ToolRefIdAdapter (UniversalId::Type type, const ToolColumns &columns) | |
virtual QVariant | getData (const RefIdColumn *column, const RefIdData &data, int index) const |
virtual void | setData (const RefIdColumn *column, RefIdData &data, int index, const QVariant &value) const |
If the data type does not match an exception is thrown. | |
Private Attributes | |
ToolColumns | mTools |
Adapter for tools with limited uses IDs (lockpick, repair, probes)
CSMWorld::ToolRefIdAdapter< RecordT >::ToolRefIdAdapter | ( | UniversalId::Type | type, |
const ToolColumns & | columns | ||
) |
QVariant CSMWorld::ToolRefIdAdapter< RecordT >::getData | ( | const RefIdColumn * | column, |
const RefIdData & | data, | ||
int | index | ||
) | const [virtual] |
Reimplemented from CSMWorld::InventoryRefIdAdapter< RecordT >.
void CSMWorld::ToolRefIdAdapter< RecordT >::setData | ( | const RefIdColumn * | column, |
RefIdData & | data, | ||
int | index, | ||
const QVariant & | value | ||
) | const [virtual] |
If the data type does not match an exception is thrown.
Reimplemented from CSMWorld::InventoryRefIdAdapter< RecordT >.
ToolColumns CSMWorld::ToolRefIdAdapter< RecordT >::mTools [private] |