Skip to content

Commit 7c50719

Browse files
authored
Implementation of GameServer() for Unity (agones-dev#1169)
- Refactored `SendRequestAsync` to return a `AsyncResult` which contains both a success bool, and the returned body text from the http call. - Used the swagger.json to generate the basic structure of the `GameServer` object, and then hand modified as needed. - Had to include third_party/MiniJSON because Unity doesn't natively support `Dictionary`, which means we can't get Label or Annotation data. Then had to manually import the MiniJSON data into GameServer and related model objects. - Used a set of symlinks to share the Agones Unity SDK code with the unity-simple example. Couldn't think of a better way. - Minor version update on the example project as that is the earliest version I could get in 2018.4.x - Added `GameServer` command to the simple-unity example as well. Work on agones-dev#927
1 parent 72523e2 commit 7c50719

33 files changed

Lines changed: 1442 additions & 37 deletions

‎examples/unity-simple/.gitignore‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,7 @@ sysinfo.txt
3434
# Builds
3535
*.apk
3636
*.unitypackage
37+
38+
# Rider plugins
39+
/Assets/Plugins/
40+
/Assets/Plugins.meta

‎examples/unity-simple/Assets/Scripts/Agones/model.meta‎

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../../../sdks/unity/model/GameServer.cs

‎examples/unity-simple/Assets/Scripts/Agones/model/GameServer.cs.meta‎

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../../../sdks/unity/model/GameServerObjectMeta.cs

‎examples/unity-simple/Assets/Scripts/Agones/model/GameServerObjectMeta.cs.meta‎

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../../../sdks/unity/model/GameServerSpec.cs

‎examples/unity-simple/Assets/Scripts/Agones/model/GameServerSpec.cs.meta‎

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../../../sdks/unity/model/GameServerStatus.cs

‎examples/unity-simple/Assets/Scripts/Agones/model/GameServerStatus.cs.meta‎

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)