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
Merge requests
!1
Fix/cluster event wrapper
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix/cluster event wrapper
fix/cluster-event-wrapper
into
dev/5.3
Overview
1
Commits
6
Pipelines
3
Changes
1
Merged
Jonathan Ehret
requested to merge
fix/cluster-event-wrapper
into
dev/5.3
11 months ago
Overview
1
Commits
6
Pipelines
3
Changes
1
Expand
0
0
Merge request reports
Compare
dev/5.3
version 2
ec62cdca
11 months ago
version 1
34721696
11 months ago
dev/5.3 (base)
and
latest version
latest version
4c763cbf
6 commits,
11 months ago
version 2
ec62cdca
5 commits,
11 months ago
version 1
34721696
4 commits,
11 months ago
1 file
+
8
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Source/RWTHVRCluster/Public/Events/DisplayClusterEventWrapper.h
+
8
−
6
Options
@@ -24,9 +24,10 @@ public:
void
Attach
(
ObjectType
*
NewObject
)
{
checkf
(
Object
==
nullptr
,
TEXT
(
"The event is already attached."
));
Object
=
NewObject
;
Object
Id
=
Object
->
Get
UniqueID
();
Object
Name
=
Object
->
Get
FullName
();
EDisplayClusterOperationMode
OperationMode
=
IDisplayCluster
::
Get
().
GetOperationMode
();
if
(
OperationMode
==
EDisplayClusterOperationMode
::
Cluster
)
@@ -45,10 +46,10 @@ public:
FMemoryReader
MemoryReader
(
Event
.
EventData
);
uint32
EventObject
Id
;
FString
EventObject
Name
;
// This reads the value!
MemoryReader
<<
EventObject
Id
;
if
(
EventObject
Id
!=
Object
Id
)
MemoryReader
<<
EventObject
Name
;
if
(
EventObject
Name
!=
Object
Name
)
{
// Event does not belong to this object.
return
;
@@ -100,6 +101,7 @@ public:
EDisplayClusterOperationMode
OperationMode
=
IDisplayCluster
::
Get
().
GetOperationMode
();
if
(
OperationMode
!=
EDisplayClusterOperationMode
::
Cluster
)
{
// Cluster event can be bypassed and function directly called
(
Object
->*
MemberFunction
)(
Forward
<
ArgTypes
>
(
Arguments
)...);
}
else
@@ -112,7 +114,7 @@ public:
ClusterEvent
.
bShouldDiscardOnRepeat
=
false
;
FMemoryWriter
MemoryWriter
(
ClusterEvent
.
EventData
);
MemoryWriter
<<
Object
Id
;
MemoryWriter
<<
const_cast
<
FString
&>
(
Object
Name
)
;
MemoryWriter
<<
const_cast
<
FString
&>
(
MethodName
);
SerializeParameters
(
&
MemoryWriter
,
Forward
<
ArgTypes
>
(
Arguments
)...);
@@ -122,7 +124,7 @@ public:
private
:
const
FString
MethodName
;
uint32
Object
Id
;
FString
Object
Name
;
ObjectType
*
Object
=
nullptr
;
FOnClusterEventBinaryListener
ClusterEventListenerDelegate
;
};
Loading