mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-31 18:06:41 +00:00
Reorder RefId members
This commit is contained in:
parent
340a2aa826
commit
6518688120
1 changed files with 9 additions and 7 deletions
|
@ -18,6 +18,15 @@ namespace ESM
|
||||||
public:
|
public:
|
||||||
const static RefId sEmpty;
|
const static RefId sEmpty;
|
||||||
|
|
||||||
|
// The 2 following functions are used to move back and forth between string and RefID. Used for hard coded
|
||||||
|
// RefIds that are as string in the code. For serialization, and display. Using explicit conversions make it
|
||||||
|
// very clear where in the code we need to convert from string to RefId and Vice versa.
|
||||||
|
static RefId stringRefId(std::string_view id);
|
||||||
|
|
||||||
|
static RefId formIdRefId(const ESM4::FormId id);
|
||||||
|
|
||||||
|
const std::string& getRefIdString() const { return mId; }
|
||||||
|
|
||||||
bool empty() const { return mId.empty(); }
|
bool empty() const { return mId.empty(); }
|
||||||
|
|
||||||
bool operator==(const RefId& rhs) const;
|
bool operator==(const RefId& rhs) const;
|
||||||
|
@ -30,13 +39,6 @@ namespace ESM
|
||||||
|
|
||||||
friend std::ostream& operator<<(std::ostream& os, const RefId& dt);
|
friend std::ostream& operator<<(std::ostream& os, const RefId& dt);
|
||||||
|
|
||||||
// The 2 following functions are used to move back and forth between string and RefID. Used for hard coded
|
|
||||||
// RefIds that are as string in the code. For serialization, and display. Using explicit conversions make it
|
|
||||||
// very clear where in the code we need to convert from string to RefId and Vice versa.
|
|
||||||
static RefId stringRefId(std::string_view id);
|
|
||||||
static RefId formIdRefId(const ESM4::FormId id);
|
|
||||||
const std::string& getRefIdString() const { return mId; }
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string mId;
|
std::string mId;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue