rename addDevice to AddDevice
This commit is contained in:
parent
ddf35406c3
commit
e227933b53
|
@ -35,10 +35,10 @@ int main(int argc, char** argv) {
|
||||||
auto dev1 = Device::Create();
|
auto dev1 = Device::Create();
|
||||||
auto dev2 = Device::Create();
|
auto dev2 = Device::Create();
|
||||||
|
|
||||||
dev1->Connect(dev2);
|
network.AddDevice(dev1);
|
||||||
|
network.AddDevice(dev2);
|
||||||
|
|
||||||
networkRenderer.AddDevice(dev1, 300, 400);
|
dev1->Connect(dev2);
|
||||||
networkRenderer.AddDevice(dev2, 500, 400);
|
|
||||||
|
|
||||||
bool shouldClose = false;
|
bool shouldClose = false;
|
||||||
SDL_Event event;
|
SDL_Event event;
|
||||||
|
@ -76,7 +76,7 @@ int main(int argc, char** argv) {
|
||||||
if (ImGui::MenuItem("Host")) {
|
if (ImGui::MenuItem("Host")) {
|
||||||
auto device = Device::Create();
|
auto device = Device::Create();
|
||||||
|
|
||||||
network.addDevice(device);
|
network.AddDevice(device);
|
||||||
networkRenderer.AddDevice(device, 400, 400);
|
networkRenderer.AddDevice(device, 400, 400);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ public:
|
||||||
public:
|
public:
|
||||||
Network(const std::string& name);
|
Network(const std::string& name);
|
||||||
|
|
||||||
void addDevice(std::shared_ptr<Device> device);
|
void AddDevice(std::shared_ptr<Device> device);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::vector<std::shared_ptr<Device>> devices;
|
std::vector<std::shared_ptr<Device>> devices;
|
||||||
|
|
|
@ -7,7 +7,7 @@ Network::Network(const std::string& name) :
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void Network::addDevice(std::shared_ptr<Device> device) {
|
void Network::AddDevice(std::shared_ptr<Device> device) {
|
||||||
devices.push_back(device);
|
devices.push_back(device);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue