示例#1
0
文件: door.cpp 项目: kevL/xoreos
void Door::loadAppearance(const Aurora::TwoDAFile &twoda, uint32 id) {
	uint32 modelColumn = twoda.headerToColumn("ModelName");
	if (modelColumn == Aurora::kFieldIDInvalid)
		modelColumn = twoda.headerToColumn("Model");

	_invisible    = twoda.getRow(id).getInt("VisibleModel") == 0;
	_modelName    = twoda.getRow(id).getString(modelColumn);
	_soundAppType = twoda.getRow(id).getInt("SoundAppType");
}
示例#2
0
文件: door.cpp 项目: farmboy0/xoreos
void Door::loadAppearance(const Aurora::TwoDAFile &twoda, uint32 id) {
	if (_modelName.empty())
		_modelName = twoda.getRow(id).getString("ModelName");
	if (_modelName.empty())
		_modelName = twoda.getRow(id).getString("NWN2_ModelName");
	if (_modelName.empty())
		_modelName = twoda.getRow(id).getString("Model");

	_invisible    = twoda.getRow(id).getInt("VisibleModel") == 0;
	_soundAppType = twoda.getRow(id).getInt("SoundAppType");
}
示例#3
0
void Door::loadAppearance(const Aurora::TwoDAFile &twoda, uint32 id) {
	if (_appearanceID == Aurora::kFieldIDInvalid)
		return;

	uint32 column = twoda.headerToColumn("ModelName");
	if (column == Aurora::kFieldIDInvalid)
		column = twoda.headerToColumn("Model");

	_modelName    = twoda.getRow(id).getString(column);
	_soundAppType = twoda.getRow(_appearanceID).getInt("SoundAppType");
}
示例#4
0
文件: door.cpp 项目: DeejStar/xoreos
void Door::loadAppearance(const Aurora::TwoDAFile &twoda, uint32 id) {
	uint32 column = twoda.headerToColumn("ModelName");
	if (column == Aurora::kFieldIDInvalid)
		column = twoda.headerToColumn("Model");

	_modelName = twoda.getRow(id).getString(column);
}