void CSVWorld::StartScriptCreator::configureCreateCommand(CSMWorld::CreateCommand& command) const { CSMWorld::IdTable& table = getStartScriptsTable(); int column = table.findColumnIndex(CSMWorld::Columns::ColumnId_Id); // Set script ID to be added to start scripts table. command.addValue(column, mScript->text()); }
void CSVWorld::DialogueCreator::configureCreateCommand (CSMWorld::CreateCommand& command) const { int index = dynamic_cast<CSMWorld::IdTable&> (*getData().getTableModel (getCollectionId())). findColumnIndex (CSMWorld::Columns::ColumnId_DialogueType); command.addValue (index, mType); }
void CSVWorld::InfoCreator::configureCreateCommand (CSMWorld::CreateCommand& command) const { int index = dynamic_cast<CSMWorld::IdTable&> (*getData().getTableModel (getCollectionId())). findColumnIndex ( getCollectionId().getType()==CSMWorld::UniversalId::Type_TopicInfos ? CSMWorld::Columns::ColumnId_Topic : CSMWorld::Columns::ColumnId_Journal); command.addValue (index, mTopic->text()); }