2012-09-23 22:11:08 +04:00
|
|
|
#ifndef OPENMW_ESM_SSCR_H
|
|
|
|
#define OPENMW_ESM_SSCR_H
|
Finished ALCH, APPA, BOOK, CLOT, CREC, ENCH, GLOB, INGR, LIGH, MISC, RACE, SKIL, SNDG, SSCR and STAT. Phew!
2010-02-21 13:20:17 +01:00
|
|
|
|
2012-09-17 11:37:50 +04:00
|
|
|
#include <string>
|
|
|
|
|
2011-04-08 17:58:21 +04:00
|
|
|
namespace ESM
|
|
|
|
{
|
Finished ALCH, APPA, BOOK, CLOT, CREC, ENCH, GLOB, INGR, LIGH, MISC, RACE, SKIL, SNDG, SSCR and STAT. Phew!
2010-02-21 13:20:17 +01:00
|
|
|
|
2012-10-01 00:51:54 +04:00
|
|
|
class ESMReader;
|
|
|
|
class ESMWriter;
|
|
|
|
|
Finished ALCH, APPA, BOOK, CLOT, CREC, ENCH, GLOB, INGR, LIGH, MISC, RACE, SKIL, SNDG, SSCR and STAT. Phew!
2010-02-21 13:20:17 +01:00
|
|
|
/*
|
2011-04-08 17:58:21 +04:00
|
|
|
Startup script. I think this is simply a 'main' script that is run
|
|
|
|
from the begining. The SSCR records contain a DATA identifier which
|
|
|
|
is totally useless (TODO: don't remember what it contains exactly,
|
|
|
|
document it below later.), and a NAME which is simply a script
|
|
|
|
reference.
|
Finished ALCH, APPA, BOOK, CLOT, CREC, ENCH, GLOB, INGR, LIGH, MISC, RACE, SKIL, SNDG, SSCR and STAT. Phew!
2010-02-21 13:20:17 +01:00
|
|
|
*/
|
|
|
|
|
2012-09-30 23:34:53 +04:00
|
|
|
struct StartScript
|
Finished ALCH, APPA, BOOK, CLOT, CREC, ENCH, GLOB, INGR, LIGH, MISC, RACE, SKIL, SNDG, SSCR and STAT. Phew!
2010-02-21 13:20:17 +01:00
|
|
|
{
|
2013-09-24 13:17:28 +02:00
|
|
|
static unsigned int sRecordId;
|
2015-06-14 02:31:00 +02:00
|
|
|
/// Return a string descriptor for this record type. Currently used for debugging / error logs only.
|
|
|
|
static std::string getRecordType() { return "StartScript"; }
|
2013-09-24 13:17:28 +02:00
|
|
|
|
2012-09-20 20:33:30 +04:00
|
|
|
std::string mData;
|
2015-03-03 13:04:57 +01:00
|
|
|
std::string mId;
|
Finished ALCH, APPA, BOOK, CLOT, CREC, ENCH, GLOB, INGR, LIGH, MISC, RACE, SKIL, SNDG, SSCR and STAT. Phew!
2010-02-21 13:20:17 +01:00
|
|
|
|
2015-07-16 22:17:49 +03:00
|
|
|
bool mIsDeleted;
|
|
|
|
|
|
|
|
StartScript();
|
|
|
|
|
2011-04-08 17:58:21 +04:00
|
|
|
// Load a record and add it to the list
|
|
|
|
void load(ESMReader &esm);
|
2013-09-16 12:32:35 +02:00
|
|
|
void save(ESMWriter &esm) const;
|
2015-03-03 13:52:36 +01:00
|
|
|
|
|
|
|
void blank();
|
Finished ALCH, APPA, BOOK, CLOT, CREC, ENCH, GLOB, INGR, LIGH, MISC, RACE, SKIL, SNDG, SSCR and STAT. Phew!
2010-02-21 13:20:17 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
#endif
|