Renamed member variables and parameters.
This commit is contained in:
@@ -138,10 +138,10 @@ namespace ehs
|
||||
|
||||
bool NetChannel::AddSystem(NetSys *sys)
|
||||
{
|
||||
if (sys->GetHashId() == internalSys)
|
||||
if (sys->GetId() == internalSys)
|
||||
return false;
|
||||
|
||||
if (HasSystem(sys->GetHashId()))
|
||||
if (HasSystem(sys->GetId()))
|
||||
return false;
|
||||
|
||||
systems.Push(sys);
|
||||
@@ -163,31 +163,31 @@ namespace ehs
|
||||
{
|
||||
}
|
||||
|
||||
bool NetChannel::HasSystem(const UInt_64 sysHashId) const
|
||||
bool NetChannel::HasSystem(const UInt_64 sysId) const
|
||||
{
|
||||
for (UInt_64 i = 0; i < systems.Size(); ++i)
|
||||
if (systems[i]->GetHashId() == sysHashId)
|
||||
if (systems[i]->GetId() == sysId)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool NetChannel::HasSystem(const Str_8& sysId) const
|
||||
bool NetChannel::HasSystem(const Str_8& sysName) const
|
||||
{
|
||||
return HasSystem(sysId.Hash_64());
|
||||
return HasSystem(sysName.Hash_64());
|
||||
}
|
||||
|
||||
NetSys* NetChannel::GetSystem(const UInt_64 sysHashId) const
|
||||
NetSys* NetChannel::GetSystem(const UInt_64 sysId) const
|
||||
{
|
||||
for (UInt_64 i = 0; i < systems.Size(); ++i)
|
||||
if (systems[i]->GetHashId() == sysHashId)
|
||||
if (systems[i]->GetId() == sysId)
|
||||
return systems[i];
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
NetSys* NetChannel::GetSystem(const Str_8& sysId) const
|
||||
NetSys* NetChannel::GetSystem(const Str_8& sysName) const
|
||||
{
|
||||
return GetSystem(sysId.Hash_64());
|
||||
return GetSystem(sysName.Hash_64());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user