rename addDevice to AddDevice

This commit is contained in:
Robert 2023-07-02 18:26:29 +02:00
parent ddf35406c3
commit e227933b53
3 changed files with 6 additions and 6 deletions

View file

@ -35,10 +35,10 @@ int main(int argc, char** argv) {
auto dev1 = Device::Create();
auto dev2 = Device::Create();
dev1->Connect(dev2);
network.AddDevice(dev1);
network.AddDevice(dev2);
networkRenderer.AddDevice(dev1, 300, 400);
networkRenderer.AddDevice(dev2, 500, 400);
dev1->Connect(dev2);
bool shouldClose = false;
SDL_Event event;
@ -76,7 +76,7 @@ int main(int argc, char** argv) {
if (ImGui::MenuItem("Host")) {
auto device = Device::Create();
network.addDevice(device);
network.AddDevice(device);
networkRenderer.AddDevice(device, 400, 400);
};

View file

@ -13,7 +13,7 @@ public:
public:
Network(const std::string& name);
void addDevice(std::shared_ptr<Device> device);
void AddDevice(std::shared_ptr<Device> device);
private:
std::vector<std::shared_ptr<Device>> devices;

View file

@ -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);
}