mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 18:51:29 +00:00
[Cleanup] Remove unnecessary reference types (#4212)
Minor clean up from #4054 and #4181
This commit is contained in:
parent
20d9417628
commit
52417023f8
@ -632,7 +632,7 @@ uint32 Database::GetAccountIDByName(const std::string& account_name, const std::
|
|||||||
return e.id;
|
return e.id;
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::string& Database::GetAccountName(uint32 account_id, uint32* lsaccount_id)
|
const std::string Database::GetAccountName(uint32 account_id, uint32* lsaccount_id)
|
||||||
{
|
{
|
||||||
const auto& e = AccountRepository::FindOne(*this, account_id);
|
const auto& e = AccountRepository::FindOne(*this, account_id);
|
||||||
|
|
||||||
@ -647,28 +647,28 @@ const std::string& Database::GetAccountName(uint32 account_id, uint32* lsaccount
|
|||||||
return e.name;
|
return e.name;
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::string& Database::GetCharName(uint32 character_id)
|
const std::string Database::GetCharName(uint32 character_id)
|
||||||
{
|
{
|
||||||
const auto& e = CharacterDataRepository::FindOne(*this, character_id);
|
const auto& e = CharacterDataRepository::FindOne(*this, character_id);
|
||||||
|
|
||||||
return e.id ? e.name : std::string();
|
return e.id ? e.name : std::string();
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::string& Database::GetCharNameByID(uint32 character_id)
|
const std::string Database::GetCharNameByID(uint32 character_id)
|
||||||
{
|
{
|
||||||
const auto& e = CharacterDataRepository::FindOne(*this, character_id);
|
const auto& e = CharacterDataRepository::FindOne(*this, character_id);
|
||||||
|
|
||||||
return e.id ? e.name : std::string();
|
return e.id ? e.name : std::string();
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::string& Database::GetNPCNameByID(uint32 npc_id)
|
const std::string Database::GetNPCNameByID(uint32 npc_id)
|
||||||
{
|
{
|
||||||
const auto& e = NpcTypesRepository::FindOne(*this, npc_id);
|
const auto& e = NpcTypesRepository::FindOne(*this, npc_id);
|
||||||
|
|
||||||
return e.id ? e.name : std::string();
|
return e.id ? e.name : std::string();
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::string& Database::GetCleanNPCNameByID(uint32 npc_id)
|
const std::string Database::GetCleanNPCNameByID(uint32 npc_id)
|
||||||
{
|
{
|
||||||
const auto& e = NpcTypesRepository::FindOne(*this, npc_id);
|
const auto& e = NpcTypesRepository::FindOne(*this, npc_id);
|
||||||
|
|
||||||
|
|||||||
@ -125,11 +125,11 @@ public:
|
|||||||
uint32 GetGroupIDByCharID(uint32 character_id);
|
uint32 GetGroupIDByCharID(uint32 character_id);
|
||||||
uint32 GetRaidIDByCharID(uint32 character_id);
|
uint32 GetRaidIDByCharID(uint32 character_id);
|
||||||
|
|
||||||
const std::string& GetAccountName(uint32 account_id, uint32* lsaccount_id = 0);
|
const std::string GetAccountName(uint32 account_id, uint32* lsaccount_id = 0);
|
||||||
const std::string& GetCharName(uint32 character_id);
|
const std::string GetCharName(uint32 character_id);
|
||||||
const std::string& GetCharNameByID(uint32 character_id);
|
const std::string GetCharNameByID(uint32 character_id);
|
||||||
const std::string& GetNPCNameByID(uint32 npc_id);
|
const std::string GetNPCNameByID(uint32 npc_id);
|
||||||
const std::string& GetCleanNPCNameByID(uint32 npc_id);
|
const std::string GetCleanNPCNameByID(uint32 npc_id);
|
||||||
void LoginIP(uint32 account_id, const std::string& login_ip);
|
void LoginIP(uint32 account_id, const std::string& login_ip);
|
||||||
|
|
||||||
/* Instancing */
|
/* Instancing */
|
||||||
|
|||||||
@ -1113,7 +1113,7 @@ uint8 Mob::GetArchetype() const
|
|||||||
return Archetype::Hybrid;
|
return Archetype::Hybrid;
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::string& Mob::GetArchetypeName()
|
const std::string Mob::GetArchetypeName()
|
||||||
{
|
{
|
||||||
switch (GetArchetype()) {
|
switch (GetArchetype()) {
|
||||||
case Archetype::Hybrid:
|
case Archetype::Hybrid:
|
||||||
|
|||||||
@ -842,7 +842,7 @@ public:
|
|||||||
bool IsPureMeleeClass() const;
|
bool IsPureMeleeClass() const;
|
||||||
bool IsWisdomCasterClass() const;
|
bool IsWisdomCasterClass() const;
|
||||||
uint8 GetArchetype() const;
|
uint8 GetArchetype() const;
|
||||||
const std::string& GetArchetypeName();
|
const std::string GetArchetypeName();
|
||||||
void SetZone(uint32 zone_id, uint32 instance_id);
|
void SetZone(uint32 zone_id, uint32 instance_id);
|
||||||
void SendStatsWindow(Client* c, bool use_window);
|
void SendStatsWindow(Client* c, bool use_window);
|
||||||
void ShowStats(Client* client);
|
void ShowStats(Client* client);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user