OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
extra.hpp
Go to the documentation of this file.
1 /*
2  OpenMW - The completely unofficial reimplementation of Morrowind
3  Copyright (C) 2008-2010 Nicolay Korslund
4  Email: < korslund@gmail.com >
5  WWW: http://openmw.sourceforge.net/
6 
7  This file (extra.h) is part of the OpenMW package.
8 
9  OpenMW is distributed as free software: you can redistribute it
10  and/or modify it under the terms of the GNU General Public License
11  version 3, as published by the Free Software Foundation.
12 
13  This program is distributed in the hope that it will be useful, but
14  WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License
19  version 3 along with this program. If not, see
20  http://www.gnu.org/licenses/ .
21 
22  */
23 
24 #ifndef OPENMW_COMPONENTS_NIF_EXTRA_HPP
25 #define OPENMW_COMPONENTS_NIF_EXTRA_HPP
26 
27 #include "base.hpp"
28 
29 namespace Nif
30 {
31 
33 {
34 public:
35  void read(NIFStream *nif);
36 };
37 
38 class NiTextKeyExtraData : public Extra
39 {
40 public:
41  struct TextKey
42  {
43  float time;
44  std::string text;
45  };
46  std::vector<TextKey> list;
47 
48  void read(NIFStream *nif);
49 };
50 
51 class NiStringExtraData : public Extra
52 {
53 public:
54  /* Two known meanings:
55  "MRK" - marker, only visible in the editor, not rendered in-game
56  "NCO" - no collision
57  */
58  std::string string;
59 
60  void read(NIFStream *nif);
61 };
62 
63 } // Namespace
64 #endif
Definition: extra.hpp:32
void read(NIFStream *nif)
Parses the record from file.
Definition: extra.cpp:6
std::string text
Definition: extra.hpp:44
Definition: extra.hpp:41
float time
Definition: extra.hpp:43
Definition: extra.hpp:51
Definition: extra.hpp:38
std::vector< TextKey > list
Definition: extra.hpp:46
void read(NIFStream *nif)
Parses the record from file.
Definition: extra.cpp:29
Definition: nifstream.hpp:26
Definition: base.hpp:17
void read(NIFStream *nif)
Parses the record from file.
Definition: extra.cpp:14
std::string string
Definition: extra.hpp:58