-
Notifications
You must be signed in to change notification settings - Fork 799
Commit
* Implements GetCounter and UpdateCounter on the SDK Server * Adds UpdateCounter SDKServer test * Changes Update Counter Request to batch and validate in the SDK * Cleans up duplicate code in sdkserver updateCounter * Adds a cached version of the GameServer to the SDK If the GameServer has been successfully updated by the client in the updateCounter this updated version is stored in the SDK. If the s.gameServer() is called and the Generation of the gameServer is less than (older than) the version stored in the SDK, then the SDK version is returned. * Removes the diffList for counterUpdateRequest The diff will be a single aggregated number that may be truncated if final Count of the Counter would be less than zero or greater than capacity. This means a request to increment or decrement a Counter may only be partially applied. * Adds logic to allow for decrementing the Count even when Count is greater than Capacity after decrementation Also adds tests. * More tests for updateCounter * Removes UpdateCounter from the LocalSDK This logic followed a previous version of the proto for UpdateCounter. * Adds in debug logs for when the UpdateCounter request truncates requests * Generated Files * Removes file that should no longer be generated * Changes per review comments Largest change is to truncate any existing Count to the Capacity, so that Count is always less than or equal to Capacity on any change. * Removing unused swagger model * Generated files * Minor updates per review comments * Updates error messages to follow the Google Style Guide * Adds debug log for flaky TestGameServerResourceValidation
- Loading branch information
There are no files selected for viewing
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.