feat: migrate old code to project

This commit is contained in:
2024-08-01 22:38:55 +08:00
parent ef1261e349
commit 6736bfbde5
16 changed files with 622 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ add_library(VSWShared STATIC "")
target_sources(VSWShared
PRIVATE
# Sources
DataTypes.cpp
"EnumTypes.cpp"
)
# Setup header files
target_sources(VSWShared
@@ -12,7 +12,7 @@ PUBLIC
FILE_SET HEADERS
FILES
# Headers
DataTypes.hpp
"EnumTypes.hpp"
)
# Setup include directory
target_include_directories(VSWShared

View File

22
shared/EnumTypes.hpp Normal file
View File

@@ -0,0 +1,22 @@
#pragma once
#include <cinttypes>
namespace VSW {
enum class BehaviorLinkIOType : uint32_t {
Input,
Output
};
enum class ParameterLinkIOType : uint32_t {
ParameterIn,
ParameterOut,
/// @brief When using this, ignore [index] and [input_is_bb], set [input_index] to -1
ParameterLocal,
/// @brief When using this, ignore [index] and [input_is_bb], set [input_index] to -1
ParameterTarget,
/// @brief When using this, ignore [index], and [input_is_bb] will become [input_is_dataarray]
pParameterAttribute
};
}