1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 17:29:55 +00:00
openmw/components/esm3/loadsscr.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
1 KiB
C++
Raw Normal View History

2012-09-23 18:11:08 +00:00
#ifndef OPENMW_ESM_SSCR_H
#define OPENMW_ESM_SSCR_H
2012-09-17 07:37:50 +00:00
#include <string>
2022-06-04 14:07:59 +00:00
#include "components/esm/defs.hpp"
namespace ESM
{
2012-09-30 20:51:54 +00:00
class ESMReader;
class ESMWriter;
2022-09-22 18:26:05 +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.
*/
2022-09-22 18:26:05 +00:00
struct StartScript
{
2022-06-04 14:34:23 +00:00
constexpr static RecNameInts sRecordId = REC_SSCR;
2022-09-22 18:26:05 +00:00
/// Return a string descriptor for this record type. Currently used for debugging / error logs only.
static std::string_view getRecordType() { return "StartScript"; }
2022-09-22 18:26:05 +00:00
std::string mData;
unsigned int mRecordFlags;
std::string mId;
2022-09-22 18:26:05 +00:00
// Load a record and add it to the list
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();
};
}
#endif