diff options
author | Shauren <shauren.trinity@gmail.com> | 2017-04-17 00:03:44 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2017-04-17 00:03:44 +0200 |
commit | 0b9548a1cc429a336481edaf0b447d86aeb15c9b (patch) | |
tree | 636deb1563fc9e23891fe4444248eec68103c3ab /src/common/DataStores/DB2FileLoader.h | |
parent | 7e8583ee8146d2a28d332d515df28a39a2911c01 (diff) |
Core: Updated GameTables to 7.2.0
Tools/Extractors: Updated to 7.2.0
Tools/ConnectionPatcher: Updated patterns to 7.2.0
Supported version is now 7.2.0.23911
Diffstat (limited to 'src/common/DataStores/DB2FileLoader.h')
-rw-r--r-- | src/common/DataStores/DB2FileLoader.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common/DataStores/DB2FileLoader.h b/src/common/DataStores/DB2FileLoader.h index 3812fe3cd67..cf34794a7a1 100644 --- a/src/common/DataStores/DB2FileLoader.h +++ b/src/common/DataStores/DB2FileLoader.h @@ -53,6 +53,7 @@ struct TC_COMMON_API DB2FileLoadInfo DB2FileLoadInfo(DB2FieldMeta const* fields, std::size_t fieldCount, DB2Meta const* meta); uint32 GetStringFieldCount(bool localizedOnly) const; + std::pair<int32/*fieldIndex*/, int32/*arrayIndex*/> GetFieldIndexByName(char const* fieldName) const; DB2FieldMeta const* Fields; std::size_t FieldCount; @@ -88,11 +89,17 @@ public: uint32 GetId() const; uint8 GetUInt8(uint32 field, uint32 arrayIndex) const; + uint8 GetUInt8(char const* fieldName) const; uint16 GetUInt16(uint32 field, uint32 arrayIndex) const; + uint16 GetUInt16(char const* fieldName) const; uint32 GetUInt32(uint32 field, uint32 arrayIndex) const; + uint32 GetUInt32(char const* fieldName) const; int32 GetInt32(uint32 field, uint32 arrayIndex) const; + int32 GetInt32(char const* fieldName) const; float GetFloat(uint32 field, uint32 arrayIndex) const; + float GetFloat(char const* fieldName) const; char const* GetString(uint32 field, uint32 arrayIndex) const; + char const* GetString(char const* fieldName) const; // Creates its own heap allocated copy of _fieldOffsets // by default _fieldOffets point to a shared array inside Loader to avoid heap allocations |