mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-29 08:00:56 -04:00
- changed namespace
This commit is contained in:
parent
db1b93498d
commit
5248917a6c
@ -19,13 +19,13 @@ namespace ESM
|
||||
}
|
||||
}
|
||||
|
||||
template< class Base > class DerivedClassStorage;
|
||||
|
||||
|
||||
namespace MWMechanics
|
||||
{
|
||||
class AiPackage;
|
||||
|
||||
|
||||
template< class Base > class DerivedClassStorage;
|
||||
class AiTemporaryBase;
|
||||
typedef DerivedClassStorage<AiTemporaryBase> AiState;
|
||||
|
||||
|
@ -8,8 +8,14 @@
|
||||
#include <boost/static_assert.hpp>
|
||||
#include <boost/type_traits/is_base_of.hpp>
|
||||
|
||||
namespace MWMechanics
|
||||
{
|
||||
|
||||
/// \brief stores an object of any class derived from Base
|
||||
/** \brief stores one object of any class derived from Base.
|
||||
* Requesting a certain dereived class via get() either returns
|
||||
* the stored object if it has the correct type or otherwise replaces
|
||||
* it with an object of the requested type.
|
||||
*/
|
||||
template< class Base >
|
||||
class DerivedClassStorage
|
||||
{
|
||||
@ -110,8 +116,7 @@ public:
|
||||
|
||||
};
|
||||
|
||||
namespace MWMechanics
|
||||
{
|
||||
|
||||
/// \brief base class for the temporary storage of AiPackages.
|
||||
/**
|
||||
* Each AI package with temporary values needs a AiPackageStorage class
|
||||
|
Loading…
x
Reference in New Issue
Block a user