1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 20:19:56 +00:00
openmw-tes3mp/components/esm/loadlocks.hpp
2012-04-06 21:04:30 +02:00

54 lines
893 B
C++

#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);
};
struct Probe: Tool
{
};
struct Repair: Tool
{
};
}
#endif