mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 15:11:36 -04:00
[OpenMW] Implement MWWorld::createRecord for Creatures
This commit is contained in:
parent
a2f6d99dfd
commit
7af73782f3
@ -42,6 +42,7 @@ namespace ESM
|
|||||||
struct EffectList;
|
struct EffectList;
|
||||||
struct CreatureLevList;
|
struct CreatureLevList;
|
||||||
struct ItemLevList;
|
struct ItemLevList;
|
||||||
|
struct Creature;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace MWRender
|
namespace MWRender
|
||||||
@ -328,6 +329,10 @@ namespace MWBase
|
|||||||
///< Create a new record (of type npc) in the ESM store.
|
///< Create a new record (of type npc) in the ESM store.
|
||||||
/// \return pointer to created record
|
/// \return pointer to created record
|
||||||
|
|
||||||
|
virtual const ESM::Creature *createRecord (const ESM::Creature &record) = 0;
|
||||||
|
///< Create a new record (of type creature) in the ESM store.
|
||||||
|
/// \return pointer to created record
|
||||||
|
|
||||||
virtual const ESM::Armor *createRecord (const ESM::Armor& record) = 0;
|
virtual const ESM::Armor *createRecord (const ESM::Armor& record) = 0;
|
||||||
///< Create a new record (of type armor) in the ESM store.
|
///< Create a new record (of type armor) in the ESM store.
|
||||||
/// \return pointer to created record
|
/// \return pointer to created record
|
||||||
|
@ -1666,6 +1666,11 @@ namespace MWWorld
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const ESM::Creature *World::createRecord(const ESM::Creature &record)
|
||||||
|
{
|
||||||
|
return mStore.insert(record);
|
||||||
|
}
|
||||||
|
|
||||||
const ESM::Armor *World::createRecord (const ESM::Armor& record)
|
const ESM::Armor *World::createRecord (const ESM::Armor& record)
|
||||||
{
|
{
|
||||||
return mStore.insert(record);
|
return mStore.insert(record);
|
||||||
|
@ -436,6 +436,10 @@ namespace MWWorld
|
|||||||
///< Create a new record (of type npc) in the ESM store.
|
///< Create a new record (of type npc) in the ESM store.
|
||||||
/// \return pointer to created record
|
/// \return pointer to created record
|
||||||
|
|
||||||
|
virtual const ESM::Creature *createRecord(const ESM::Creature &record);
|
||||||
|
///< Create a new record (of type creature) in the ESM store.
|
||||||
|
/// \return pointer to created record
|
||||||
|
|
||||||
virtual const ESM::Armor *createRecord (const ESM::Armor& record);
|
virtual const ESM::Armor *createRecord (const ESM::Armor& record);
|
||||||
///< Create a new record (of type armor) in the ESM store.
|
///< Create a new record (of type armor) in the ESM store.
|
||||||
/// \return pointer to created record
|
/// \return pointer to created record
|
||||||
|
Loading…
x
Reference in New Issue
Block a user