Skip to content

Conversation

@timjbruce
Copy link

Issue #, if available:

Description of changes:

  1. Moved AWSGameSDK to the addons folder and created a plugin that contains 2 components - Auth and Backend. Separated the two features into their own components so we can work on adding additional features (webscokets, analytics, etc) to the plugin without affecting core functionality.

  2. Auth component changes/updates

  • Removed callbacks for the more Godot-style using signals. This impacts the API for each of the calls, removing the need to pass a callback.
  • Moved file load and save save_game.dat functionality to the plugin. These steps are now in the plugin to simplify the integration for developers.
  • Changed Login api to just use login. The plugin will determine login as new or existing guest account, based on the save_gaeme.dat file loading and valid.
  • Removed the need to pass tokens to each request. Token is now read from user_info that is local to the Auth component.
  • Changed token refresh to use a timer. This reduces CPU for the code to work in a game.
  • Updated private methods and signals to have _ in front of their name. This should help to avoid issues where developers use private methods by mistake.
  • Added export variable for login_endpoint, allowing developers to configure this using a property page versus code updates.

3/ Backend component changes/updates

  • Created new backend_set_request and backend_get_request methods to signify the action developers want to take. This encapsulates the URI for the developer with the goal of simplifying development.
  • Added get_response_data method, to actively retrieve any responses from the backend versus passing as part of a signal.
  • Added export variables for backend_endpoint, get_player_data_URI, set_player_data_URI, and post_player_data_URI. This allows developers to set these via a property page versus code updates.

4/ Updated the samples to use the new plugin and methods. Also updated the readme to help developers add the plugin and configure it within their project.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@armandocv armandocv requested review from armandocv and juhoaws March 27, 2025 18:08
Copy link
Contributor

@armandocv armandocv left a comment

Choose a reason for hiding this comment

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

Thank you for submitting this PR. Your contribution is appreciated. I have reviewed your changes and left some comments for your consideration. Please take a moment to review these suggestions and make any necessary adjustments.

@armandocv armandocv marked this pull request as draft October 15, 2025 22:38
@armandocv armandocv removed the request for review from juhoaws October 15, 2025 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants