mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-02 00:15:48 +00:00
Issue #61: Forgot to add some files
This commit is contained in:
parent
cd343c4fbd
commit
c6fd864a76
2 changed files with 29 additions and 0 deletions
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…
Reference in a new issue