Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion addons/godot-playfab/JsonSerializable.gd
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func to_dict() -> Dictionary:
else:
var type_name = sub_prop.get_class()
# No to_dict method - likely an error!
# If it is a builtin class, however, a special handler needs to be iomplemented here.
# If it is a builtin class, however, a special handler needs to be implemented here.
#push_error("If '%s' is not a builtin class, please implement a to_dict() method! If it IS a builtin class, a special handler needs to be implemented in JsonSerializable." % type_name)
print_debug("If '%s' is not a builtin class, please implement a to_dict() method! If it IS a builtin class, a special handler needs to be implemented in JsonSerializable." % type_name)
dict[name] = type_name
Expand Down
2 changes: 1 addition & 1 deletion addons/godot-playfab/Models/EventContents.gd
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var OriginalId: String
var OriginalTimestamp: String

# Arbitrary data associated with the event. `PayloadJSON` is not implemented.
# If you ***need*** to use `PayloadJSON`, please use a verbaitim request instead.
# If you ***need*** to use `PayloadJSON`, please use a verbatim request instead.
var Payload: Dictionary


Expand Down
11 changes: 11 additions & 0 deletions addons/godot-playfab/Models/LoginWithEmailAddressRequest.gd
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,14 @@ var CustomTags: Dictionary #object

# Flags for which pieces of info to return for the user.
var InfoRequestParameters: GetPlayerCombinedInfoRequestParams


func _get_type_for_property(property_name: String) -> String:
match property_name:
"InfoRequestParameters":
return "GetPlayerCombinedInfoRequestParams"
_:
pass

push_error("Could not find mapping for property: " + property_name)
return super._get_type_for_property(property_name)
2 changes: 1 addition & 1 deletion addons/godot-playfab/PlayFab.gd
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,6 @@ func _add_auth_headers(additional_headers: Dictionary, auth_type) -> bool:
elif auth_type == AUTH_TYPE.ENTITY_TOKEN:
additional_headers["X-EntityToken"] = PlayFabManager.client_config.entity_token.EntityToken
else:
push_error("auth_type \"" + auth_type + "\" is invalid")
push_error("auth_type \"" + str(auth_type) + "\" is invalid")

return true
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class_name PlayFabClientConfigLoader
# Will only work in Debug Mode
const DEBUG_DO_NOT_ENCRYPT = false # Only works checked debug builds

# Section to write key/value paris to
# Section to write key/value pairs to
const SECTION_NAME = "PlayFab"

# **Accessibility: protected/virtual**
Expand Down Expand Up @@ -45,7 +45,7 @@ func _save(password: String):

# Loads an encrypted ConfigFile from disk and returns a `PlayFabClientConfig`
# with all properties set from values of ConfigFile
# @paramref password: String - Password used for file enxryption
# @paramref password: String - Password used for file encryption
func load(password: String) -> PlayFabClientConfig:
_config = ConfigFile.new()
var new_config = PlayFabClientConfig.new()
Expand All @@ -61,7 +61,7 @@ func load(password: String) -> PlayFabClientConfig:
if err == ERR_FILE_NOT_FOUND:
print_debug("No config file found. After login, it will be created at \"%s\"." % _load_path)
else:
var error_message = "Config file didn't load. Error code: %f" % err
var error_message = "Config file didn't load. Error code: %d" % err
print_debug(error_message)
errors.append(error_message)

Expand Down
2 changes: 1 addition & 1 deletion addons/godot-playfab/PlayFabEditor.gd
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var main_panel_instance

func _init():

add_custom_project_setting(PlayFabConstants.SETTING_PLAYFAB_TITLE_ID, "", TYPE_STRING, PROPERTY_HINT_PLACEHOLDER_TEXT, "Retieve from PlayFab Game Manager")
add_custom_project_setting(PlayFabConstants.SETTING_PLAYFAB_TITLE_ID, "", TYPE_STRING, PROPERTY_HINT_PLACEHOLDER_TEXT, "Retrieve from PlayFab Game Manager")

var process_mode_hint = ",".join([
"Inherit:%d" % Node.PROCESS_MODE_INHERIT,
Expand Down
8 changes: 4 additions & 4 deletions addons/godot-playfab/PlayFabHttp.gd
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,14 @@ func _http_request(request_method: int, body: Dictionary, path: String, callback
if callback.is_valid():
callback.call(json_parse_result)
else:
push_error("Response calback " + callback.get_method() + " is no longer valid! Make sure, a script is only removed after all requests returned!")
push_error("Response callback " + callback.get_method() + " is no longer valid! Make sure, a script is only removed after all requests returned!")
return
elif response_code >= 500:
emit_signal("server_error", path)
return
elif response_code >= 400:
var apiErrorWrapper = ApiErrorWrapper.new()
for key in json_parse_result.keys():
apiErrorWrapper.set(key, json_parse_result[key])
emit_signal("api_error", apiErrorWrapper)
return
if response_code >= 500:
emit_signal("server_error", path)
return