Skip to content

Instantly share code, notes, and snippets.

View chris-gong's full-sized avatar
:shipit:
I'm back

Chris Gong chris-gong

:shipit:
I'm back
View GitHub Profile
// Copyright Epic Games, Inc. All Rights Reserved.
#include "HttpTestGameMode.h"
#include "HttpTestCharacter.h"
#include "Json.h"
#include "UObject/ConstructorHelpers.h"
AHttpTestGameMode::AHttpTestGameMode()
{
// set default pawn class to our Blueprinted character
// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/GameModeBase.h"
#include "Http.h"
#include "HttpTestGameMode.generated.h"
UCLASS(minimalapi)
// Copyright Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
public class HttpTest : ModuleRules
{
public HttpTest(ReadOnlyTargetRules Target) : base(Target)
{
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
@chris-gong
chris-gong / test-gameserver.yaml
Last active October 17, 2021 14:13
For Google Cloud Agones testing purposes
apiVersion: "agones.dev/v1"
kind: GameServer
metadata:
generateName: "unreal-game-server-"
spec:
ports:
- name: default
portPolicy: Dynamic
containerPort: 7777
template:
@chris-gong
chris-gong / README.md
Created May 2, 2021 14:55
Readme for the GameLift C++ Server SDK

GameLiftServerSdk C++

Documentation

You can find the official GameLift documentation here.

Minimum requirements:

  • Either of the following:
    • Microsoft Visual Studio 2012 or later
    • GNU Compiler Collection (GCC) 4.9 or later
  • CMake version 3.1 or later
  • A Git client available on the PATH.

Building the SDK

#!/bin/sh
sudo chmod +x "./GameLiftTutorial/Binaries/Linux/GameLiftTutorialServer"
// Fill out your copyright notice in the Description page of Project Settings.
#include "GameLiftTutorialGameInstance.h"
#include "Json.h"
#include "JsonUtilities.h"
#include "TextReaderComponent.h"
UGameLiftTutorialGameInstance::UGameLiftTutorialGameInstance() {
UTextReaderComponent* TextReader = CreateDefaultSubobject<UTextReaderComponent>(TEXT("TextReaderComp"));
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Engine/GameInstance.h"
#include "Runtime/Online/HTTP/Public/Http.h"
#include "GameLiftTutorialGameInstance.generated.h"
/**
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Blueprint/UserWidget.h"
#include "Runtime/Online/HTTP/Public/Http.h"
#include "MainMenuWidget.generated.h"
class UWebBrowser;
// Fill out your copyright notice in the Description page of Project Settings.
#include "MainMenuWidget.h"
#include "TextReaderComponent.h"
#include "WebBrowser.h"
#include "WebBrowserModule.h"
#include "IWebBrowserSingleton.h"
#include "IWebBrowserCookieManager.h"
#include "Json.h"