-
Notifications
You must be signed in to change notification settings - Fork 4
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
Enum Support #136
Conversation
There was a problem hiding this 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.
Assets/PlayroomKit/modules/MockMode/BrowserMode/BrowserMockService.cs
Outdated
Show resolved
Hide resolved
Assets/PlayroomKit/modules/MockMode/BrowserMode/BrowserMockService.cs
Outdated
Show resolved
Hide resolved
- retrieves state using interop. - removed unnecessary comments.
Calling in the big guns. @momintlh |
Is this tested? @uzaiiirahmed
|
NOT YET |
Assets/PlayroomKit/modules/MockMode/BrowserMode/BrowserMockService.cs
Outdated
Show resolved
Hide resolved
Assets/PlayroomKit/modules/MockMode/BrowserMode/BrowserMockService.cs
Outdated
Show resolved
Hide resolved
Also add ENUM support for |
- tested in Local mode - tested in Browser Bridge mode
Assets/PlayroomKit/modules/MockMode/BrowserMode/BrowserMockPlayerService.cs
Show resolved
Hide resolved
Assets/PlayroomKit/modules/MockMode/BrowserMode/BrowserMockPlayerService.cs
Outdated
Show resolved
Hide resolved
Assets/PlayroomKit/modules/MockMode/BrowserMode/BrowserMockService.cs
Outdated
Show resolved
Hide resolved
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) |
There was a problem hiding this comment.
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 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Enum support for SetState and GetState added