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

Enum Support #136

Merged
merged 13 commits into from
Mar 3, 2025
Merged

Enum Support #136

merged 13 commits into from
Mar 3, 2025

Conversation

uzaiiirahmed
Copy link
Contributor

@uzaiiirahmed uzaiiirahmed commented Feb 24, 2025

Enum support for SetState and GetState added

@uzaiiirahmed
Copy link
Contributor Author

@SaadBazaz

Copy link
Collaborator

@SaadBazaz SaadBazaz left a comment

Choose a reason for hiding this comment

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

Please review the questions. IF you think they make no sense, or are incorrect, simply give an explanation and resolve the comment.

 - retrieves state using interop.
 - removed unnecessary comments.
@SaadBazaz
Copy link
Collaborator

Calling in the big guns. @momintlh

@SaadBazaz
Copy link
Collaborator

Is this tested? @uzaiiirahmed

  • Local Mock Mode
  • Browser Bridge Mock Mode
  • Production

@uzaiiirahmed
Copy link
Contributor Author

Is this tested? @SaadBazaz

  • Local Mock Mode
  • Browser Bridge Mock Mode
  • Production

NOT YET

@momintlh
Copy link
Collaborator

Also add ENUM support for Player.SetState and Player.GetState

json = JsonUtility.ToJson(value is int or float or bool or string
? new PrimitiveWrapper<object>(value)
: value);
if (value is int or float or bool or string)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah always better to have clear if-elses, makes code readable 👍

Copy link
Collaborator

@SaadBazaz SaadBazaz left a comment

Choose a reason for hiding this comment

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

lgtm

@momintlh momintlh dismissed their stale review March 3, 2025 06:35

Fixed

@momintlh momintlh merged commit 0f32efd into playroomkit:main Mar 3, 2025
1 check passed
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.

3 participants