mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-12-22 20:31:14 +00:00
Rename initialize for client/server/parent
This commit is contained in:
parent
9318ab10b2
commit
a035be66bd
3 changed files with 5 additions and 5 deletions
|
@ -20,7 +20,7 @@ class IClient {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void Initialize(SharedPtr<Parent> parent)
|
void SetParent(SharedPtr<Parent> parent)
|
||||||
{
|
{
|
||||||
this->parent = std::move(parent);
|
this->parent = std::move(parent);
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,11 +13,11 @@ class IClientServerParent {
|
||||||
using ServerType = Server;
|
using ServerType = Server;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void Initialize()
|
void SetClientServerParent()
|
||||||
{
|
{
|
||||||
Parent par = (Parent *)this;
|
Parent par = (Parent *)this;
|
||||||
client.Initialize(par);
|
client.SetParent(par);
|
||||||
server.Initialize(par);
|
server.SetParent(par);
|
||||||
}
|
}
|
||||||
|
|
||||||
ClientType client{};
|
ClientType client{};
|
||||||
|
|
|
@ -20,7 +20,7 @@ class IServer {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void Initialize(SharedPtr<Parent> parent)
|
void SetParent(SharedPtr<Parent> parent)
|
||||||
{
|
{
|
||||||
this->parent = std::move(parent);
|
this->parent = std::move(parent);
|
||||||
this->client = &this->parent->client;
|
this->client = &this->parent->client;
|
||||||
|
|
Loading…
Reference in a new issue