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

Add the missing functions to the C++ SDK (Allocated & Reserve) #948

Merged
merged 1 commit into from
Jul 27, 2019

Conversation

roberthbailey
Copy link
Member

Part of #927.

Since the C++ SDK doesn't have any automated tests, I tested this manually by modifying the simple-cpp example to call Allocate / Reserve instead of Ready when starting up, and then verified that the gameserver made the expected state transitions.

@roberthbailey
Copy link
Member Author

@devjgm

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: e0cd0ca7-f3f2-4b26-b349-794e6d88c3a6

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/GoogleCloudPlatform/agones.git pull/948/head:pr_948 && git checkout pr_948
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=0.12.0-d5a7235

@@ -39,6 +39,13 @@ class SDK {
// Marks the Game Server as ready to receive connections
AGONES_EXPORT grpc::Status Ready();

// Self marks this gameserver as Allocated.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is "Self"?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"self marks" is a phrase -- basically instead of having the gameserver be allocated through the allocation service, the gameserver does the allocation itself. The comment matches the comment in the go sdk (as do all of the other comments in this file).

Copy link
Member

@markmandel markmandel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we please also update the docs here? https://agones.dev/site/docs/guides/client-sdks/cpp/

@roberthbailey
Copy link
Member Author

Can we please also update the docs here? https://agones.dev/site/docs/guides/client-sdks/cpp/

Done.

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 6c55f5b0-9df9-4912-97ae-8d8ec8cb48f2

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

@markmandel
Copy link
Member

Looks like the reserve link will need to be done as a ...

See: https://github.com/wjdp/htmltest#see_no_evil-ignoring-content

@roberthbailey
Copy link
Member Author

Fixed the link for reserve.

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: d5089c7f-cdeb-4e75-98ce-b98ea1c77712

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/GoogleCloudPlatform/agones.git pull/948/head:pr_948 && git checkout pr_948
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=0.12.0-066412d

Copy link
Member

@markmandel markmandel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@markmandel markmandel merged commit c3bd424 into googleforgames:master Jul 27, 2019
@markmandel markmandel added this to the 0.12.0 milestone Aug 1, 2019
@markmandel markmandel added area/user-experience Pertaining to developers trying to use Agones, e.g. SDK, installation, etc kind/feature New features for Agones labels Aug 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/user-experience Pertaining to developers trying to use Agones, e.g. SDK, installation, etc kind/feature New features for Agones
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants