Retro68/Rez/ResSpec.h

25 lines
509 B
C
Raw Permalink Normal View History

2014-10-14 00:19:26 +00:00
#ifndef REZSPEC_H
#define REZSPEC_H
#include "ResType.h"
#include <string>
class ResSpec : public ResRef
{
int attr_;
std::string name_;
2014-10-14 00:19:26 +00:00
public:
ResSpec() : attr_(0) {}
ResSpec(ResType type, int id, int attr = 0, std::string name = "")
: ResRef(type, id), attr_(attr), name_(name)
{}
2014-10-14 00:19:26 +00:00
int& attr() { return attr_; }
int attr() const { return attr_; }
std::string& name() { return name_; }
const std::string& name() const { return name_; }
2014-10-14 00:19:26 +00:00
};
#endif // REZSPEC_H