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

Godot 4 AWS Plugin v 1.0.0 #66

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant