Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
MasterTestProjekt
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kai Westerkamp
MasterTestProjekt
Commits
4caa3f1c
Commit
4caa3f1c
authored
Sep 22, 2017
by
wester
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UDPSender.cpp
parent
92bf458f
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
5 deletions
+11
-5
DefaultVRMap.umap
Content/DefaultVRMap.umap
+0
-0
VR_PAwn.uasset
Content/VR_PAwn.uasset
+0
-0
MasterTestProject.Build.cs
Source/MasterTestProject/MasterTestProject.Build.cs
+3
-1
VRPawnCode.cpp
Source/MasterTestProject/VRPawnCode.cpp
+6
-3
VRPawnCode.h
Source/MasterTestProject/VRPawnCode.h
+2
-1
No files found.
Content/DefaultVRMap.umap
View file @
4caa3f1c
No preview for this file type
Content/VR_PAwn.uasset
View file @
4caa3f1c
No preview for this file type
Source/MasterTestProject/MasterTestProject.Build.cs
View file @
4caa3f1c
...
@@ -20,7 +20,9 @@ public class MasterTestProject : ModuleRules
...
@@ -20,7 +20,9 @@ public class MasterTestProject : ModuleRules
public
MasterTestProject
(
ReadOnlyTargetRules
Target
)
:
base
(
Target
)
public
MasterTestProject
(
ReadOnlyTargetRules
Target
)
:
base
(
Target
)
{
{
PublicDependencyModuleNames
.
AddRange
(
new
string
[]
{
"Core"
,
"CoreUObject"
,
"Engine"
,
"InputCore"
,
"ImageWrapper"
,
"RawMesh"
,
"HTTP"
,
"Json"
,
"JsonUtilities"
,
"ProceduralMeshComponent"
,
"RHI"
,
"RenderCore"
});
PublicDependencyModuleNames
.
AddRange
(
new
string
[]
{
"Core"
,
"CoreUObject"
,
"Engine"
,
"InputCore"
,
"ImageWrapper"
,
"RawMesh"
,
"JsonUtilities"
,
"ProceduralMeshComponent"
,
"RHI"
,
"RenderCore"
,
"HTTP"
,
"Json"
,
"Sockets"
,
"Networking"
});
PrivateDependencyModuleNames
.
AddRange
(
new
string
[]
{
});
PrivateDependencyModuleNames
.
AddRange
(
new
string
[]
{
});
...
...
Source/MasterTestProject/VRPawnCode.cpp
View file @
4caa3f1c
...
@@ -45,12 +45,15 @@ void AVRPawnCode::SetupPlayerInputComponent(UInputComponent* PlayerInputComponen
...
@@ -45,12 +45,15 @@ void AVRPawnCode::SetupPlayerInputComponent(UInputComponent* PlayerInputComponen
}
}
void
AVRPawnCode
::
PublishMessage
(
FVector
start
,
FVector
end
)
void
AVRPawnCode
::
PublishMessage
(
FVector
start
,
FVector
end
,
AUDPSender
*
socket
)
{
{
UMyGameInstance
*
gameinstance
=
Cast
<
UMyGameInstance
>
(
GetGameInstance
());
UMyGameInstance
*
gameinstance
=
Cast
<
UMyGameInstance
>
(
GetGameInstance
());
//FPlatformTime::Seconds();
FString
Message
=
FString
::
Printf
(
TEXT
(
"{
\"
timestamp
\"
:%d,
\"
start
\"
:{
\"
x
\"
:%f,
\"
y
\"
:%f,
\"
z
\"
:%f},
\"
end
\"
:{
\"
x
\"
:%f,
\"
y
\"
:%f,
\"
z
\"
:%f}}"
),
0.0
f
,
start
.
X
,
start
.
Y
,
start
.
Z
,
end
.
X
,
end
.
Y
,
end
.
Z
);
FString
Message
=
FString
::
Printf
(
TEXT
(
"{
\"
timestamp
\"
:%d,
\"
start
\"
:{
\"
x
\"
:%f,
\"
y
\"
:%f,
\"
z
\"
:%f},
\"
end
\"
:{
\"
x
\"
:%f,
\"
y
\"
:%f,
\"
z
\"
:%f}}"
),
0.0
f
,
start
.
X
,
start
.
Y
,
start
.
Z
,
end
.
X
,
end
.
Y
,
end
.
Z
);
UE_LOG
(
TILES
,
Warning
,
TEXT
(
"Published Message %s"
),
*
Message
);
socket
->
SendString
(
Message
);
gameinstance
->
connection
->
publishMessage
(
TCHAR_TO_ANSI
(
*
Message
));
//UE_LOG(TILES, Warning, TEXT("Published Message %s"), *Message);
//gameinstance->connection->publishMessage(TCHAR_TO_UTF8(*Message));
}
}
Source/MasterTestProject/VRPawnCode.h
View file @
4caa3f1c
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
#include "CoreMinimal.h"
#include "CoreMinimal.h"
#include "GameFramework/Pawn.h"
#include "GameFramework/Pawn.h"
#include "RabbitMQConnection.h"
#include "RabbitMQConnection.h"
#include "UDPSender.h"
#include "VRPawnCode.generated.h"
#include "VRPawnCode.generated.h"
UCLASS
()
UCLASS
()
...
@@ -29,7 +30,7 @@ public:
...
@@ -29,7 +30,7 @@ public:
virtual
void
SetupPlayerInputComponent
(
class
UInputComponent
*
PlayerInputComponent
)
override
;
virtual
void
SetupPlayerInputComponent
(
class
UInputComponent
*
PlayerInputComponent
)
override
;
UFUNCTION
(
BlueprintCallable
,
Category
=
"RabbitMQ"
)
UFUNCTION
(
BlueprintCallable
,
Category
=
"RabbitMQ"
)
void
PublishMessage
(
FVector
start
,
FVector
end
);
void
PublishMessage
(
FVector
start
,
FVector
end
,
AUDPSender
*
socket
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment