mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-12 04:14:05 +00:00
Issue #61: Forgot to add some files
This commit is contained in:
parent
cd343c4fbd
commit
c6fd864a76
7
apps/openmw/mwmechanics/alchemy.cpp
Normal file
7
apps/openmw/mwmechanics/alchemy.cpp
Normal file
@ -0,0 +1,7 @@
|
||||
|
||||
#include "alchemy.hpp"
|
||||
|
||||
void MWMechanics::Alchemy::setAlchemist (const MWWorld::Ptr& npc)
|
||||
{
|
||||
mNpc = npc;
|
||||
}
|
22
apps/openmw/mwmechanics/alchemy.hpp
Normal file
22
apps/openmw/mwmechanics/alchemy.hpp
Normal file
@ -0,0 +1,22 @@
|
||||
#ifndef GAME_MWMECHANICS_ALCHEMY_H
|
||||
#define GAME_MWMECHANICS_ALCHEMY_H
|
||||
|
||||
#include "../mwworld/ptr.hpp"
|
||||
|
||||
namespace MWMechanics
|
||||
{
|
||||
/// \brief Potion creatin via alchemy skill
|
||||
class Alchemy
|
||||
{
|
||||
MWWorld::Ptr mNpc;
|
||||
|
||||
public:
|
||||
|
||||
void setAlchemist (const MWWorld::Ptr& npc);
|
||||
///< Set alchemist and configure alchemy setup accordingly. \a npc may be empty to indicate that
|
||||
/// there is no alchemist (alchemy session has ended).
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user