Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Agones SDK with Unreal Engine Example #2241

Closed
wants to merge 15 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 92 additions & 0 deletions examples/unrealengine/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
# Visual Studio 2015 user specific files
.vs/

# Compiled Object files
*.slo
*.lo
*.o
*.obj

# Precompiled Headers
*.gch
*.pch

# Compiled Dynamic libraries
*.so
*.dylib
*.dll

# Fortran module files
*.mod

# Compiled Static libraries
*.lai
*.la
*.a
*.lib

# Keep Compiled Static libraries for Plugins to save trouble for others
!Plugins/**/*.lai
!Plugins/**/*.la
!Plugins/**/*.a
!Plugins/**/*.lib

# Executables
*.exe
*.out
*.app
*.ipa

# These project files can be generated by the engine
*.xcodeproj
*.xcworkspace
*.sln
*.suo
*.opensdf
*.sdf
*.VC.db
*.VC.opendb

# Precompiled Assets
SourceArt/**/*.png
SourceArt/**/*.tga

# Binary Files
Binaries/*
Plugins/*/Binaries/*

# Builds
Build/*

# Whitelist PakBlacklist-<BuildConfiguration>.txt files
!Build/*/
Build/*/**
!Build/*/PakBlacklist*.txt

# Don't ignore icon files in Build
!Build/**/*.ico

# Built data for maps
*_BuiltData.uasset

# Configuration files generated by the Editor
Saved/*

# Compiled source files for the engine to use
Intermediate/*
Plugins/*/Intermediate/*

# Cache files for the editor to use
DerivedDataCache/*

# Obsidian files
.obsidian/

# Packaged Files
Package/

# Zip files
*.zip

# Rider
.idea/
16 changes: 16 additions & 0 deletions examples/unrealengine/AgonesExample.uproject
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"FileVersion": 3,
"EngineAssociation": "4.26",
"Category": "",
"Description": "",
"Modules": [
{
"Name": "AgonesExample",
"Type": "Runtime",
"LoadingPhase": "Default",
"AdditionalDependencies": [
"Engine"
]
}
]
}
8 changes: 8 additions & 0 deletions examples/unrealengine/Config/DefaultEditor.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[UnrealEd.SimpleMap]
SimpleMapName=/Game/FirstPerson/Maps/FirstPersonExampleMap

[EditoronlyBP]
bAllowClassAndBlueprintPinMatching=true
bReplaceBlueprintWithClass= true
bDontLoadBlueprintOutsideEditor= true
bBlueprintIsNotBlueprintType= true
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[ContentBrowser]
ContentBrowserTab1.SelectedPaths=/Game/FirstPerson
36 changes: 36 additions & 0 deletions examples/unrealengine/Config/DefaultEngine.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[/Script/Engine.CollisionProfile]
+Profiles=(Name="Projectile",CollisionEnabled=QueryOnly,ObjectTypeName="Projectile",CustomResponses=,HelpMessage="Preset for projectiles",bCanModify=True)
+DefaultChannelResponses=(Channel=ECC_GameTraceChannel1,Name="Projectile",DefaultResponse=ECR_Block,bTraceType=False,bStaticObject=False)
+EditProfiles=(Name="Trigger",CustomResponses=((Channel=Projectile, Response=ECR_Ignore)))

[/Script/EngineSettings.GameMapsSettings]
EditorStartupMap=/Game/FirstPersonCPP/Maps/EntryLevel.EntryLevel
LocalMapOptions=
TransitionMap=
bUseSplitscreen=True
TwoPlayerSplitscreenLayout=Horizontal
ThreePlayerSplitscreenLayout=FavorTop
GameInstanceClass=/Script/Engine.GameInstance
GameDefaultMap=/Game/FirstPersonCPP/Maps/EntryLevel.EntryLevel
ServerDefaultMap=/Game/FirstPersonCPP/Maps/EntryLevel.EntryLevel
GlobalDefaultGameMode=/Script/AgonesExample.AgonesExampleGameMode
GlobalDefaultServerGameMode=None

[/Script/IOSRuntimeSettings.IOSRuntimeSettings]
MinimumiOSVersion=IOS_12


[/Script/HardwareTargeting.HardwareTargetingSettings]
TargetedHardwareClass=Desktop
AppliedTargetedHardwareClass=Desktop
DefaultGraphicsPerformance=Maximum
AppliedDefaultGraphicsPerformance=Maximum

[/Script/Engine.Engine]
+ActiveGameNameRedirects=(OldGameName="TP_FirstPerson",NewGameName="/Script/AgonesExample")
+ActiveGameNameRedirects=(OldGameName="/Script/TP_FirstPerson",NewGameName="/Script/AgonesExample")
+ActiveClassRedirects=(OldClassName="TP_FirstPersonProjectile",NewClassName="AgonesExampleProjectile")
+ActiveClassRedirects=(OldClassName="TP_FirstPersonHUD",NewClassName="AgonesExampleHUD")
+ActiveClassRedirects=(OldClassName="TP_FirstPersonGameMode",NewClassName="AgonesExampleGameMode")
+ActiveClassRedirects=(OldClassName="TP_FirstPersonCharacter",NewClassName="AgonesExampleCharacter")

6 changes: 6 additions & 0 deletions examples/unrealengine/Config/DefaultGame.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[ProjectSettings]
ProjectID=(A=1823396784,B=1298598689,C=1743498150,D=-2048051708)
ProjectName=First Person Template

[/Script/EngineSettings.GeneralProjectSettings]
ProjectID=B8F9C18E44B1814CF95410BD782BCB03
185 changes: 185 additions & 0 deletions examples/unrealengine/Config/DefaultInput.ini

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 2 additions & 0 deletions examples/unrealengine/Plugins/Agones/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Binaries/
Intermediate/
24 changes: 24 additions & 0 deletions examples/unrealengine/Plugins/Agones/Agones.uplugin
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"CanContainContent": false,
"Category": "Agones",
"CreatedBy": "",
"CreatedByURL": "",
"Description": "Agones SDK for Unreal, wrapping the Agones REST API.",
"DocsURL": "https://agones.dev/site/docs/guides/client-sdks/unreal/",
"FileVersion": 3,
"FriendlyName": "Agones",
"Installed": false,
"IsBetaVersion": false,
"IsExperimentalVersion": false,
"MarketplaceURL": "",
"Modules": [
{
"LoadingPhase": "PreLoadingScreen",
"Name": "Agones",
"Type": "Runtime"
}
],
"SupportURL": "https://github.com/googleforgames/agones",
"Version": 2,
"VersionName": "2.0.0"
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions examples/unrealengine/Plugins/Agones/Source/Agones/Agones.Build.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// Copyright 2020 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

using UnrealBuildTool;

public class Agones : ModuleRules
{
public Agones(ReadOnlyTargetRules target) : base(target)
{
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
PublicIncludePaths.AddRange(new string[] {});
PrivateIncludePaths.AddRange(new string[] {});
PublicDependencyModuleNames.AddRange(new[]
{
"Core",
"Http",
"Json",
"JsonUtilities",
"WebSockets"
});
PrivateDependencyModuleNames.AddRange(
new[]
{
"CoreUObject",
"Engine",
"Slate",
"SlateCore"
});
DynamicallyLoadedModuleNames.AddRange(new string[]{ });
}
}
Loading