2014-08-03 08:12:03 +00:00
|
|
|
#ifndef COMPONENTS_ESM_DEBUGPROFILE_H
|
|
|
|
#define COMPONENTS_ESM_DEBUGPROFILE_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
2022-06-04 14:07:59 +00:00
|
|
|
#include "components/esm/defs.hpp"
|
|
|
|
|
2014-08-03 08:12:03 +00:00
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
class ESMReader;
|
|
|
|
class ESMWriter;
|
|
|
|
|
|
|
|
struct DebugProfile
|
|
|
|
{
|
2022-06-04 14:34:23 +00:00
|
|
|
constexpr static RecNameInts sRecordId = REC_DBGP;
|
2022-06-04 14:07:59 +00:00
|
|
|
|
2014-08-15 10:27:08 +00:00
|
|
|
enum Flags
|
|
|
|
{
|
2022-09-22 18:26:05 +00:00
|
|
|
Flag_Default = 1, // add to newly opened scene subviews
|
2014-08-15 10:27:08 +00:00
|
|
|
Flag_BypassNewGame = 2, // bypass regular game startup
|
2022-09-22 18:26:05 +00:00
|
|
|
Flag_Global = 4 // make available from main menu (i.e. not location specific)
|
2014-08-15 10:27:08 +00:00
|
|
|
};
|
|
|
|
|
2021-07-25 09:53:41 +00:00
|
|
|
unsigned int mRecordFlags;
|
2014-08-03 08:12:03 +00:00
|
|
|
std::string mId;
|
|
|
|
|
|
|
|
std::string mDescription;
|
|
|
|
|
2014-08-22 11:38:03 +00:00
|
|
|
std::string mScriptText;
|
2014-08-03 08:12:03 +00:00
|
|
|
|
2014-08-15 10:27:08 +00:00
|
|
|
unsigned int mFlags;
|
2014-08-03 08:12:03 +00:00
|
|
|
|
2022-09-22 18:26:05 +00:00
|
|
|
void load(ESMReader& esm, bool& isDeleted);
|
|
|
|
void save(ESMWriter& esm, bool isDeleted = false) const;
|
2014-08-03 08:12:03 +00:00
|
|
|
|
|
|
|
/// Set record to default state (does not touch the ID).
|
|
|
|
void blank();
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|