feat: variable socket counts

This commit is contained in:
parker
2025-07-30 14:03:38 +01:00
parent 1c57b7a9e6
commit 83e0977d5d
13 changed files with 101 additions and 61 deletions

View File

@@ -1,8 +1,19 @@
#pragma once
#include <string>
#include "Engine/Operator/GeometryOpDef.h"
#include "Engine/Parameter/Template.h"
// forward declaration
namespace enzo::op
{
struct OpInfo;
}
namespace enzo::nt
{
class GeometryOpDef;
class NetworkManager;
using opConstructor = GeometryOpDef* (*)(enzo::nt::NetworkManager* network, enzo::op::OpInfo opInfo);
}
namespace enzo::op
{
struct OpInfo
@@ -11,6 +22,9 @@ struct OpInfo
std::string displayName;
enzo::nt::opConstructor ctorFunc;
enzo::prm::Template* templates;
size_t templatesSize;
unsigned int minInputs=0;
unsigned int maxInputs=1;
unsigned int maxOutputs=1;
};
}