2010-01-06 12:28:37 +01:00
|
|
|
/*
|
|
|
|
OpenMW - The completely unofficial reimplementation of Morrowind
|
|
|
|
Copyright (C) 2008-2010 Nicolay Korslund
|
|
|
|
Email: < korslund@gmail.com >
|
2018-03-08 21:23:24 +01:00
|
|
|
WWW: https://openmw.org/
|
2010-01-06 12:28:37 +01:00
|
|
|
|
|
|
|
This file (extra.h) is part of the OpenMW package.
|
|
|
|
|
|
|
|
OpenMW is distributed as free software: you can redistribute it
|
|
|
|
and/or modify it under the terms of the GNU General Public License
|
|
|
|
version 3, as published by the Free Software Foundation.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful, but
|
|
|
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
version 3 along with this program. If not, see
|
2018-03-08 21:23:24 +01:00
|
|
|
https://www.gnu.org/licenses/ .
|
2010-01-06 12:28:37 +01:00
|
|
|
|
|
|
|
*/
|
|
|
|
|
2013-02-24 13:51:56 -08:00
|
|
|
#ifndef OPENMW_COMPONENTS_NIF_EXTRA_HPP
|
|
|
|
#define OPENMW_COMPONENTS_NIF_EXTRA_HPP
|
2010-01-06 12:28:37 +01:00
|
|
|
|
2014-10-19 02:26:44 -04:00
|
|
|
#include "base.hpp"
|
2010-01-06 12:28:37 +01:00
|
|
|
|
|
|
|
namespace Nif
|
|
|
|
{
|
|
|
|
|
2020-12-16 01:06:05 +03:00
|
|
|
struct NiVertWeightsExtraData : public Extra
|
2010-01-07 19:11:03 +01:00
|
|
|
{
|
2020-10-16 22:18:54 +04:00
|
|
|
void read(NIFStream *nif) override;
|
2010-01-07 19:11:03 +01:00
|
|
|
};
|
|
|
|
|
2020-12-16 01:06:05 +03:00
|
|
|
struct NiTextKeyExtraData : public Extra
|
2010-01-07 19:11:03 +01:00
|
|
|
{
|
2012-07-02 21:41:21 -07:00
|
|
|
struct TextKey
|
|
|
|
{
|
|
|
|
float time;
|
2012-07-09 20:53:54 -07:00
|
|
|
std::string text;
|
2012-07-02 21:41:21 -07:00
|
|
|
};
|
|
|
|
std::vector<TextKey> list;
|
|
|
|
|
2020-10-16 22:18:54 +04:00
|
|
|
void read(NIFStream *nif) override;
|
2010-01-07 19:11:03 +01:00
|
|
|
};
|
|
|
|
|
2020-12-16 01:06:05 +03:00
|
|
|
struct NiStringExtraData : public Extra
|
2010-01-07 19:11:03 +01:00
|
|
|
{
|
2012-07-02 21:41:21 -07:00
|
|
|
/* Two known meanings:
|
|
|
|
"MRK" - marker, only visible in the editor, not rendered in-game
|
|
|
|
"NCO" - no collision
|
|
|
|
*/
|
2012-07-09 20:53:54 -07:00
|
|
|
std::string string;
|
2012-07-02 21:41:21 -07:00
|
|
|
|
2020-10-16 22:18:54 +04:00
|
|
|
void read(NIFStream *nif) override;
|
2010-01-07 19:11:03 +01:00
|
|
|
};
|
|
|
|
|
2020-10-06 20:52:21 +03:00
|
|
|
struct NiIntegerExtraData : public Extra
|
|
|
|
{
|
|
|
|
unsigned int data;
|
|
|
|
|
2020-10-16 22:18:54 +04:00
|
|
|
void read(NIFStream *nif) override;
|
2020-10-06 20:52:21 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
struct NiIntegersExtraData : public Extra
|
|
|
|
{
|
|
|
|
std::vector<unsigned int> data;
|
|
|
|
|
2020-10-16 22:18:54 +04:00
|
|
|
void read(NIFStream *nif) override;
|
2020-10-06 20:52:21 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
struct NiBinaryExtraData : public Extra
|
|
|
|
{
|
|
|
|
std::vector<char> data;
|
|
|
|
|
2020-10-16 22:18:54 +04:00
|
|
|
void read(NIFStream *nif) override;
|
2020-10-06 20:52:21 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
struct NiBooleanExtraData : public Extra
|
|
|
|
{
|
|
|
|
bool data;
|
|
|
|
|
2020-10-16 22:18:54 +04:00
|
|
|
void read(NIFStream *nif) override;
|
2020-10-06 20:52:21 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
struct NiVectorExtraData : public Extra
|
|
|
|
{
|
|
|
|
osg::Vec4f data;
|
|
|
|
|
2020-10-16 22:18:54 +04:00
|
|
|
void read(NIFStream *nif) override;
|
2020-10-06 20:52:21 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
struct NiFloatExtraData : public Extra
|
|
|
|
{
|
|
|
|
float data;
|
|
|
|
|
2020-10-16 22:18:54 +04:00
|
|
|
void read(NIFStream *nif) override;
|
2020-10-06 20:52:21 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
struct NiFloatsExtraData : public Extra
|
|
|
|
{
|
|
|
|
std::vector<float> data;
|
|
|
|
|
2020-10-16 22:18:54 +04:00
|
|
|
void read(NIFStream *nif) override;
|
2020-10-06 20:52:21 +03:00
|
|
|
};
|
|
|
|
|
2020-11-09 00:19:35 +03:00
|
|
|
struct BSBound : public Extra
|
|
|
|
{
|
|
|
|
osg::Vec3f center, halfExtents;
|
|
|
|
|
|
|
|
void read(NIFStream *nif) override;
|
|
|
|
};
|
|
|
|
|
2010-01-06 12:28:37 +01:00
|
|
|
} // Namespace
|
|
|
|
#endif
|