21 static constexpr const char *
node_idname =
"GeometryNodeSimulationOutput";
29 return {&storage->
items, &storage->items_num, &storage->active_index};
52 return ELEM(socket_type,
75 return "Item_" + std::to_string(item.
identifier);
char * BLI_strdup_null(const char *str) ATTR_WARN_UNUSED_RESULT ATTR_MALLOC
struct NodeSimulationItem NodeSimulationItem
void set_item_name_and_make_unique(bNode &node, typename Accessor::ItemT &item, const char *value)
NodeSimulationItem * items
static constexpr const char * node_idname
static char ** get_name(NodeSimulationItem &item)
static void blend_write(BlendWriter *writer, const bNode &node)
static constexpr bool has_single_identifier_str
static socket_items::SocketItemsRef< NodeSimulationItem > get_items_from_node(bNode &node)
static std::string socket_identifier_for_item(const NodeSimulationItem &item)
static constexpr bool has_name
static void destruct_item(NodeSimulationItem *item)
static StructRNA * item_srna
static void blend_read_data(BlendDataReader *reader, bNode &node)
static bool supports_socket_type(const eNodeSocketDatatype socket_type)
static constexpr bool has_type
static void init_with_socket_type_and_name(bNode &node, NodeSimulationItem &item, const eNodeSocketDatatype socket_type, const char *name)
static eNodeSocketDatatype get_socket_type(const NodeSimulationItem &item)
static void copy_item(const NodeSimulationItem &src, NodeSimulationItem &dst)