mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-23 22:53:55 +00:00
74e7cfc023
remove unused imports: part2 revert one tidy we will keep for c++20
24 lines
729 B
C++
24 lines
729 B
C++
#include "globalcreator.hpp"
|
|
|
|
#include <components/esm3/variant.hpp>
|
|
|
|
#include "../../model/world/commands.hpp"
|
|
#include "../../model/world/idtable.hpp"
|
|
|
|
namespace CSVWorld
|
|
{
|
|
void GlobalCreator::configureCreateCommand (CSMWorld::CreateCommand& command) const
|
|
{
|
|
CSMWorld::IdTable* table = static_cast<CSMWorld::IdTable*>(getData().getTableModel(getCollectionId()));
|
|
|
|
int index = table->findColumnIndex(CSMWorld::Columns::ColumnId_ValueType);
|
|
int type = (int)ESM::VT_Float;
|
|
|
|
command.addValue(index, type);
|
|
}
|
|
|
|
GlobalCreator::GlobalCreator(CSMWorld::Data& data, QUndoStack& undoStack, const CSMWorld::UniversalId& id)
|
|
: GenericCreator (data, undoStack, id, true)
|
|
{
|
|
}
|
|
}
|