1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-22 18:53:52 +00:00
openmw/components/esm/loadlocks.hpp

55 lines
893 B
C++
Raw Normal View History

#ifndef _ESM_LOCKS_H
#define _ESM_LOCKS_H
#include "esm_reader.hpp"
#include "esm_writer.hpp"
namespace ESM
{
/*
* This file covers lockpicks (LOCK), probes (PROB) and armor repair
* items (REPA). These have nearly identical data structures.
*/
struct Tool
{
enum Type
{
Type_Pick,
Type_Probe,
Type_Repair
};
struct Data
{
float weight;
int value;
float quality; // And when I say nearly identical structure, I
int uses; // mean perfectly identical except that these two
// variables are swaped for repair items. Don't ask
// me why.
}; // Size = 16
Data data;
Type type;
std::string name, model, icon, script;
void load(ESMReader &esm);
void save(ESMWriter &esm);
};
2010-08-03 13:24:44 +00:00
struct Probe: Tool
2010-08-03 13:24:44 +00:00
{
};
struct Repair: Tool
2010-08-03 13:24:44 +00:00
{
};
}
#endif