feat: add context
This commit is contained in:
@@ -19,6 +19,7 @@ set(ENGINE_SOURCES
|
||||
src/Engine/Operator/GeometryConnection.cpp
|
||||
src/Engine/Operator/GeometryOpDef.cpp
|
||||
src/Engine/Operator/OperatorTable.cpp
|
||||
src/Engine/Operator/Context.cpp
|
||||
src/Engine/Operator/GOP_test.cpp
|
||||
src/Engine/Network/NetworkManager.cpp
|
||||
)
|
||||
|
||||
8
src/Engine/Operator/Context.cpp
Normal file
8
src/Engine/Operator/Context.cpp
Normal file
@@ -0,0 +1,8 @@
|
||||
#include "Engine/Operator/Context.h"
|
||||
|
||||
|
||||
enzo::op::Context::Context(enzo::nt::OpId opId, enzo::nt::NetworkManager& networkManager)
|
||||
: opId_{opId}, networkManager_(networkManager)
|
||||
{
|
||||
|
||||
}
|
||||
16
src/Engine/Operator/Context.h
Normal file
16
src/Engine/Operator/Context.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
#include "Engine/Network/NetworkManager.h"
|
||||
#include "Engine/Types.h"
|
||||
namespace enzo::op
|
||||
{
|
||||
class Context
|
||||
{
|
||||
public:
|
||||
Context(enzo::nt::OpId opId, enzo::nt::NetworkManager& networkManager);
|
||||
private:
|
||||
enzo::nt::OpId opId_;
|
||||
enzo::nt::NetworkManager& networkManager_;
|
||||
|
||||
};
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
#pragma once
|
||||
#include "Engine/Operator/Geometry.h"
|
||||
#include "Engine/Operator/Context.h"
|
||||
#include "Engine/Types.h"
|
||||
#include <boost/config.hpp>
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@ add_library(${libName} SHARED
|
||||
../Engine/Operator/GeometryOpDef.cpp
|
||||
../Engine/Operator/GeometryOperator.cpp
|
||||
../Engine/Operator/GeometryConnection.cpp
|
||||
../Engine/Operator/Context.cpp
|
||||
../Engine/Operator/Geometry.cpp
|
||||
../Engine/Operator/Attribute.cpp
|
||||
../Engine/Network/NetworkManager.cpp
|
||||
|
||||
Reference in New Issue
Block a user