2012-09-23 18:11:08 +00: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 12:20:17 +00:00
|
|
|
|
2012-09-17 07:37:50 +00:00
|
|
|
#include <string>
|
|
|
|
|
2022-06-04 14:07:59 +00:00
|
|
|
#include "components/esm/defs.hpp"
|
|
|
|
|
2011-04-08 13:58:21 +00:00
|
|
|
namespace ESM
|
|
|
|
{
|
Finished ALCH, APPA, BOOK, CLOT, CREC, ENCH, GLOB, INGR, LIGH, MISC, RACE, SKIL, SNDG, SSCR and STAT. Phew!
2010-02-21 12:20:17 +00:00
|
|
|
|
2012-09-30 20:51:54 +00:00
|
|
|
class ESMReader;
|
|
|
|
class ESMWriter;
|
2022-09-22 18:26:05 +00:00
|
|
|
|
Finished ALCH, APPA, BOOK, CLOT, CREC, ENCH, GLOB, INGR, LIGH, MISC, RACE, SKIL, SNDG, SSCR and STAT. Phew!
2010-02-21 12:20:17 +00:00
|
|
|
/*
|
2011-04-08 13:58:21 +00: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 12:20:17 +00:00
|
|
|
*/
|
2022-09-22 18:26:05 +00:00
|
|
|
|
2012-09-30 19:34:53 +00:00
|
|
|
struct StartScript
|
Finished ALCH, APPA, BOOK, CLOT, CREC, ENCH, GLOB, INGR, LIGH, MISC, RACE, SKIL, SNDG, SSCR and STAT. Phew!
2010-02-21 12:20:17 +00:00
|
|
|
{
|
2022-06-04 14:34:23 +00:00
|
|
|
constexpr static RecNameInts sRecordId = REC_SSCR;
|
2022-09-22 18:26:05 +00:00
|
|
|
|
2015-06-14 00:31:00 +00:00
|
|
|
/// Return a string descriptor for this record type. Currently used for debugging / error logs only.
|
2021-10-11 22:18:23 +00:00
|
|
|
static std::string_view getRecordType() { return "StartScript"; }
|
2022-09-22 18:26:05 +00:00
|
|
|
|
2012-09-20 16:33:30 +00:00
|
|
|
std::string mData;
|
2021-07-25 09:53:41 +00:00
|
|
|
unsigned int mRecordFlags;
|
2015-03-03 12:04:57 +00:00
|
|
|
std::string mId;
|
2022-09-22 18:26:05 +00:00
|
|
|
|
2011-04-08 13:58:21 +00:00
|
|
|
// Load a record and add it to the list
|
2015-07-20 14:23:14 +00:00
|
|
|
void load(ESMReader& esm, bool& isDeleted);
|
|
|
|
void save(ESMWriter& esm, bool isDeleted = false) const;
|
2022-09-22 18:26:05 +00:00
|
|
|
|
2015-03-03 12:52:36 +00:00
|
|
|
void blank();
|
Finished ALCH, APPA, BOOK, CLOT, CREC, ENCH, GLOB, INGR, LIGH, MISC, RACE, SKIL, SNDG, SSCR and STAT. Phew!
2010-02-21 12:20:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
#endif
|