1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 06:35:30 +00:00
OpenMW/components/esm/loadsscr.hpp

34 lines
649 B
C++
Raw Normal View History

2012-09-23 22:11:08 +04:00
#ifndef OPENMW_ESM_SSCR_H
#define OPENMW_ESM_SSCR_H
2012-09-17 11:37:50 +04:00
#include <string>
namespace ESM
{
2012-10-01 00:51:54 +04:00
class ESMReader;
class ESMWriter;
/*
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.
*/
struct StartScript
{
static unsigned int sRecordId;
std::string mData;
std::string mId, mScript;
// Load a record and add it to the list
void load(ESMReader &esm);
void save(ESMWriter &esm) const;
};
}
#endif