blob: adda8fc6da00c5c90bf09add93db629191806b37 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include "network.h"
#include <cache.h>
#include <game/network/link.h>
#include <gfx/models/texture.h>
Network::Network(const std::string & tn) : texture {Texture::cachedTexture.get(tn)} { }
NodePtr
Network::findNodeAt(glm::vec3 pos) const
{
if (const auto n = nodes.find(std::make_shared<Node>(pos)); n != nodes.end()) {
return *n;
}
return {};
}
|