Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
RWTH VR Cluster Plugin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LuFG VR VIS
VR-Group
Unreal-Development
Plugins
RWTH VR Cluster Plugin
Commits
6cfd3f4f
Commit
6cfd3f4f
authored
11 months ago
by
David Gilbert
Browse files
Options
Downloads
Patches
Plain Diff
pull changes forward
parent
e8ae1108
No related branches found
No related tags found
1 merge request
!2
pull changes forward
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Source/RWTHVRCluster/Public/Events/DisplayClusterEventWrapper.h
+8
-6
8 additions, 6 deletions
.../RWTHVRCluster/Public/Events/DisplayClusterEventWrapper.h
with
8 additions
and
6 deletions
Source/RWTHVRCluster/Public/Events/DisplayClusterEventWrapper.h
+
8
−
6
View file @
6cfd3f4f
...
@@ -24,9 +24,10 @@ public:
...
@@ -24,9 +24,10 @@ public:
void
Attach
(
ObjectType
*
NewObject
)
void
Attach
(
ObjectType
*
NewObject
)
{
{
checkf
(
Object
==
nullptr
,
TEXT
(
"The event is already attached."
));
checkf
(
Object
==
nullptr
,
TEXT
(
"The event is already attached."
));
Object
=
NewObject
;
Object
=
NewObject
;
Object
Id
=
Object
->
Get
UniqueID
();
Object
Name
=
Object
->
Get
FullName
();
EDisplayClusterOperationMode
OperationMode
=
IDisplayCluster
::
Get
().
GetOperationMode
();
EDisplayClusterOperationMode
OperationMode
=
IDisplayCluster
::
Get
().
GetOperationMode
();
if
(
OperationMode
==
EDisplayClusterOperationMode
::
Cluster
)
if
(
OperationMode
==
EDisplayClusterOperationMode
::
Cluster
)
...
@@ -45,10 +46,10 @@ public:
...
@@ -45,10 +46,10 @@ public:
FMemoryReader
MemoryReader
(
Event
.
EventData
);
FMemoryReader
MemoryReader
(
Event
.
EventData
);
uint32
EventObject
Id
;
FString
EventObject
Name
;
// This reads the value!
// This reads the value!
MemoryReader
<<
EventObject
Id
;
MemoryReader
<<
EventObject
Name
;
if
(
EventObject
Id
!=
Object
Id
)
if
(
EventObject
Name
!=
Object
Name
)
{
{
// Event does not belong to this object.
// Event does not belong to this object.
return
;
return
;
...
@@ -100,6 +101,7 @@ public:
...
@@ -100,6 +101,7 @@ public:
EDisplayClusterOperationMode
OperationMode
=
IDisplayCluster
::
Get
().
GetOperationMode
();
EDisplayClusterOperationMode
OperationMode
=
IDisplayCluster
::
Get
().
GetOperationMode
();
if
(
OperationMode
!=
EDisplayClusterOperationMode
::
Cluster
)
if
(
OperationMode
!=
EDisplayClusterOperationMode
::
Cluster
)
{
{
// Cluster event can be bypassed and function directly called
(
Object
->*
MemberFunction
)(
Forward
<
ArgTypes
>
(
Arguments
)...);
(
Object
->*
MemberFunction
)(
Forward
<
ArgTypes
>
(
Arguments
)...);
}
}
else
else
...
@@ -112,7 +114,7 @@ public:
...
@@ -112,7 +114,7 @@ public:
ClusterEvent
.
bShouldDiscardOnRepeat
=
false
;
ClusterEvent
.
bShouldDiscardOnRepeat
=
false
;
FMemoryWriter
MemoryWriter
(
ClusterEvent
.
EventData
);
FMemoryWriter
MemoryWriter
(
ClusterEvent
.
EventData
);
MemoryWriter
<<
Object
Id
;
MemoryWriter
<<
const_cast
<
FString
&>
(
Object
Name
)
;
MemoryWriter
<<
const_cast
<
FString
&>
(
MethodName
);
MemoryWriter
<<
const_cast
<
FString
&>
(
MethodName
);
SerializeParameters
(
&
MemoryWriter
,
Forward
<
ArgTypes
>
(
Arguments
)...);
SerializeParameters
(
&
MemoryWriter
,
Forward
<
ArgTypes
>
(
Arguments
)...);
...
@@ -122,7 +124,7 @@ public:
...
@@ -122,7 +124,7 @@ public:
private
:
private
:
const
FString
MethodName
;
const
FString
MethodName
;
uint32
Object
Id
;
FString
Object
Name
;
ObjectType
*
Object
=
nullptr
;
ObjectType
*
Object
=
nullptr
;
FOnClusterEventBinaryListener
ClusterEventListenerDelegate
;
FOnClusterEventBinaryListener
ClusterEventListenerDelegate
;
};
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment