OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
loadsscr.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_ESM_SSCR_H
2 #define OPENMW_ESM_SSCR_H
3 
4 #include <string>
5 
6 namespace ESM
7 {
8 
9 class ESMReader;
10 class ESMWriter;
11 
12 /*
13  Startup script. I think this is simply a 'main' script that is run
14  from the begining. The SSCR records contain a DATA identifier which
15  is totally useless (TODO: don't remember what it contains exactly,
16  document it below later.), and a NAME which is simply a script
17  reference.
18  */
19 
21 {
22  static unsigned int sRecordId;
24  static std::string getRecordType() { return "StartScript"; }
25 
26  std::string mData;
27  std::string mId;
28 
29  // Load a record and add it to the list
30  void load(ESMReader &esm, bool &isDeleted);
31  void save(ESMWriter &esm, bool isDeleted = false) const;
32 
33  void blank();
34 };
35 
36 }
37 #endif
Definition: loadsscr.hpp:20
Definition: esmreader.hpp:21
std::string mId
Definition: loadsscr.hpp:27
void blank()
Definition: loadsscr.cpp:58
Definition: esmwriter.hpp:17
static unsigned int sRecordId
Definition: loadsscr.hpp:22
void load(ESMReader &esm, bool &isDeleted)
Definition: loadsscr.cpp:11
void save(ESMWriter &esm, bool isDeleted=false) const
Definition: loadsscr.cpp:45
static std::string getRecordType()
Return a string descriptor for this record type. Currently used for debugging / error logs only...
Definition: loadsscr.hpp:24
std::string mData
Definition: loadsscr.hpp:26