mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 13:41:31 +00:00
Added mob version lookup pointer to class InventoryProfile
This commit is contained in:
parent
5d9a89dcd1
commit
c3ce0a5df5
@ -85,15 +85,22 @@ namespace EQEmu
|
|||||||
// Public Methods
|
// Public Methods
|
||||||
///////////////////////////////
|
///////////////////////////////
|
||||||
|
|
||||||
InventoryProfile() { m_mob_version = versions::MobVersion::Unknown; m_mob_version_set = false; }
|
InventoryProfile() {
|
||||||
|
m_mob_version = versions::MobVersion::Unknown;
|
||||||
|
m_mob_version_set = false;
|
||||||
|
m_lookup = inventory::Lookup(versions::MobVersion::Unknown);
|
||||||
|
}
|
||||||
~InventoryProfile();
|
~InventoryProfile();
|
||||||
|
|
||||||
bool SetInventoryVersion(versions::MobVersion inventory_version) {
|
bool SetInventoryVersion(versions::MobVersion inventory_version) {
|
||||||
if (!m_mob_version_set) {
|
if (!m_mob_version_set) {
|
||||||
m_mob_version = versions::ValidateMobVersion(inventory_version);
|
m_mob_version = versions::ValidateMobVersion(inventory_version);
|
||||||
return (m_mob_version_set = true);
|
m_lookup = inventory::Lookup(m_mob_version);
|
||||||
|
m_mob_version_set = true;
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
m_lookup = inventory::Lookup(versions::MobVersion::Unknown);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -225,6 +232,7 @@ namespace EQEmu
|
|||||||
// Active mob version
|
// Active mob version
|
||||||
versions::MobVersion m_mob_version;
|
versions::MobVersion m_mob_version;
|
||||||
bool m_mob_version_set;
|
bool m_mob_version_set;
|
||||||
|
const inventory::LookupEntry* m_lookup;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user