1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-22 03:40:49 +00:00
OpenMW/components/esm3/loadsndg.hpp

50 lines
1.0 KiB
C++
Raw Normal View History

2012-09-23 22:11:08 +04:00
#ifndef OPENMW_ESM_SNDG_H
#define OPENMW_ESM_SNDG_H
2012-09-17 11:37:50 +04:00
#include <string>
2022-06-04 16:07:59 +02:00
#include "components/esm/defs.hpp"
namespace ESM
{
2022-09-22 21:26:05 +03:00
class ESMReader;
class ESMWriter;
2012-10-01 00:51:54 +04:00
2022-09-22 21:26:05 +03:00
/*
* Sound generator. This describes the sounds a creature make.
*/
2022-09-22 21:26:05 +03:00
struct SoundGenerator
{
constexpr static RecNameInts sRecordId = REC_SNDG;
2022-06-04 16:07:59 +02:00
2022-09-22 21:26:05 +03:00
/// Return a string descriptor for this record type. Currently used for debugging / error logs only.
static std::string_view getRecordType() { return "SoundGenerator"; }
2022-09-22 21:26:05 +03:00
enum Type
{
LeftFoot = 0,
RightFoot = 1,
SwimLeft = 2,
SwimRight = 3,
Moan = 4,
Roar = 5,
Scream = 6,
Land = 7
};
2022-09-22 21:26:05 +03:00
// Type
int mType;
2022-09-22 21:26:05 +03:00
unsigned int mRecordFlags;
std::string mId, mCreature, mSound;
2022-09-22 21:26:05 +03:00
void load(ESMReader& esm, bool& isDeleted);
void save(ESMWriter& esm, bool isDeleted = false) const;
2014-09-23 12:18:18 +02:00
2022-09-22 21:26:05 +03:00
void blank();
};
}
#endif