Convert RefId to class

pull/3229/head
elsid 2 years ago
parent 8a6a3c7121
commit 996153f78d
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

@ -13,7 +13,7 @@ class QVariant;
namespace ESM
{
struct RefId;
class RefId;
}
namespace CSMWorld

@ -17,7 +17,7 @@ namespace ESM
{
class ESMReader;
class ESMWriter;
struct RefId;
class RefId;
}
namespace MWWorld

@ -21,7 +21,7 @@ namespace osg
namespace ESM
{
struct Class;
struct RefId;
class RefId;
class ESMReader;
class ESMWriter;
}

@ -10,7 +10,7 @@ namespace Interpreter
namespace ESM
{
struct RefId;
class RefId;
}
namespace Compiler

@ -16,7 +16,7 @@ namespace MWWorld
namespace ESM
{
struct RefId;
class RefId;
}
namespace MWSound

@ -16,7 +16,7 @@
namespace ESM
{
struct RefId;
class RefId;
}
namespace Loading

@ -57,7 +57,7 @@ namespace ESM
struct CreatureLevList;
struct ItemLevList;
struct TimeStamp;
struct RefId;
class RefId;
}
namespace MWPhysics

@ -5,7 +5,7 @@
namespace ESM
{
struct RefId;
class RefId;
}
namespace MWClass

@ -9,7 +9,7 @@ namespace ESM
{
struct DialInfo;
struct Dialogue;
struct RefId;
class RefId;
}
namespace MWDialogue

@ -5,7 +5,7 @@
#include <utility>
namespace ESM
{
struct RefId;
class RefId;
}
namespace MWWorld
{

@ -5,7 +5,7 @@
namespace ESM
{
struct RefId;
class RefId;
}
namespace MWScript

@ -12,7 +12,7 @@ namespace ESM
{
class Script;
struct Locals;
struct RefId;
class RefId;
}
namespace MWScript

@ -45,7 +45,7 @@ namespace SceneUtil
namespace ESM
{
struct Position;
struct RefId;
class RefId;
}
namespace Files

@ -4,7 +4,7 @@
#include <string>
namespace ESM
{
struct RefId;
class RefId;
}
namespace Compiler

@ -16,7 +16,7 @@ namespace ESM
{
struct Cell;
struct Pathgrid;
struct RefId;
class RefId;
}
namespace Loading

@ -16,7 +16,7 @@ namespace ESM
{
struct Cell;
struct CellId;
struct RefId;
class RefId;
class CellVariant
{

@ -13,8 +13,9 @@ namespace ESM
// RefId is used to represent an Id that identifies an ESM record. These Ids can then be used in
// ESM::Stores to find the actual record. These Ids can be serialized/de-serialized, stored on disk and remain
// valid. They are used by ESM files, by records to reference other ESM records.
struct RefId
class RefId
{
public:
const static RefId sEmpty;
bool empty() const { return mId.empty(); }
@ -32,17 +33,16 @@ namespace ESM
static RefId formIdRefId(const ESM4::FormId id);
const std::string& getRefIdString() const { return mId; }
private:
std::string mId;
bool operator==(std::string_view rhs) const;
public:
template <std::size_t size>
bool operator==(const char (&rhs)[size]) const
{
return *this == std::string_view(rhs);
}
private:
std::string mId;
bool operator==(std::string_view rhs) const;
};
}

@ -13,7 +13,7 @@ namespace ESM
{
class ESMReader;
class ESMWriter;
struct RefId;
class RefId;
// NOTE: spell ids must be lower case
struct SpellState

@ -16,7 +16,7 @@ namespace ESM
struct Land;
struct Static;
class Variant;
struct RefId;
class RefId;
}
namespace EsmLoader

@ -11,7 +11,7 @@ namespace VFS
namespace ESM
{
struct RefId;
class RefId;
}
namespace Misc

Loading…
Cancel
Save