2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-21 04:59:11 +00:00

Add incoming connections

This commit is contained in:
2021-05-26 23:31:38 -07:00
committed by Luke Street
parent 9dc8f664af
commit acb827a3b5
5 changed files with 86 additions and 11 deletions

View File

@@ -2,6 +2,7 @@
#include <string>
#include <vector>
#include <set>
#include "Runtime/RetroTypes.hpp"
#include "Runtime/World/CEntityInfo.hpp"
@@ -44,7 +45,7 @@ protected:
// Used in ImGuiConsole
bool m_debugSelected = false;
bool m_debugHovered = false;
const std::set<SConnection>* m_incomingConnections = nullptr;
public:
static const std::vector<SConnection> NullConnectionList;
virtual ~CEntity() = default;
@@ -82,6 +83,9 @@ public:
const std::vector<SConnection>& GetConnectionList() const { return x20_conns; }
std::string_view GetName() const { return x10_name; }
void SetIncomingConnectionList(const std::set<SConnection>* conns) {
m_incomingConnections = conns;
}
};
} // namespace metaforce