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

ServerManager SetProfileValues improvements #47

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

Conversation

jpetays
Copy link
Contributor

@jpetays jpetays commented Nov 17, 2024

JToken Type Conversions' best practices while keeping original semantics.
Except PlayerPrefs(playerId) which is empty string (not null) if not found in JSON.
JToken can be converted to its containing value using either explicit cast or explicit value conversion. IMO explicit cast is better. Even better is this was using JToken.ToObject so JSON conversion is done implicitly on one place.

JToken Type Conversions' best practices while keeping original semantics.
 Except PlayerPrefs(playerId) which is empty string (not null) if not found in JSON.
JToken can be converted to its containing value using either explicit cast or explicit value conversion. IMO explicit cast is better.
Even better is this was using JToken.ToObject<T> so JSON conversion is done implicitly on one place.
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