1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-03 17:37:18 +00:00
OpenMW/components/esm3/debugprofile.hpp

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

42 lines
929 B
C++
Raw Normal View History

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
enum Flags
{
2022-09-22 18:26:05 +00:00
Flag_Default = 1, // add to newly opened scene subviews
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)
};
unsigned int mRecordFlags;
2014-08-03 08:12:03 +00:00
std::string mId;
std::string mDescription;
std::string mScriptText;
2014-08-03 08:12:03 +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