From 71a0a6f5c82eda303e5bdc069c7a3717654843da Mon Sep 17 00:00:00 2001 From: Xavrax Date: Fri, 22 Sep 2023 13:32:03 +0200 Subject: [PATCH] remove dev file vol2 --- unreal/PubNubModule/Private/Publisher.cpp | 40 ----------------------- 1 file changed, 40 deletions(-) delete mode 100644 unreal/PubNubModule/Private/Publisher.cpp diff --git a/unreal/PubNubModule/Private/Publisher.cpp b/unreal/PubNubModule/Private/Publisher.cpp deleted file mode 100644 index ffc43516..00000000 --- a/unreal/PubNubModule/Private/Publisher.cpp +++ /dev/null @@ -1,40 +0,0 @@ -// Fill out your copyright notice in the Description page of Project Settings. - - -#include "Publisher.h" -#include "PubNub.h" - -// Sets default values -APublisher::APublisher() -{ - // Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it. - PrimaryActorTick.bCanEverTick = true; - -} - -// Called when the game starts or when spawned -void APublisher::BeginPlay() -{ - Super::BeginPlay(); - enum pubnub_res res; - pubnub_t* pb = pubnub_alloc(); - if (NULL == pb) { - return; - } - - pubnub_init(pb, "demo", "demo"); - pubnub_set_user_id(pb, "my_uuid"); - - pubnub_publish(pb, "my_channel", "\"Hello world from UE4!\""); - res = pubnub_await(pb); - - pubnub_free(pb); -} - -// Called every frame -void APublisher::Tick(float DeltaTime) -{ - Super::Tick(DeltaTime); - -} -