-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Communicator factory #4965
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
Communicator factory #4965
Conversation
|
||
/// <summary> | ||
/// Initializes a new instance of the RPCCommunicator class. | ||
/// </summary> | ||
/// <param name="communicatorInitParameters">Communicator parameters.</param> | ||
public RpcCommunicator(CommunicatorInitParameters communicatorInitParameters) |
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.
Don't pass these and don't store them anymore. They were only used for the port; that's now passed to Initialize()
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.
🙏
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.
How did you test this was working for mobile builds ?
Manual tested that I can do a WebGL build locally. I have a PR to start doing a WebGL build in yamato to guard against similar compiler errors in the future: #4966 (currently failing because it lacks this fix) |
Proposed change(s)
Follow up for the "RpcCommunicator on non-desktop" compilation problems.
CommunicatorInitParameters
in both it's constructor and Initialize() method. It stored the former but only used the port from it.CommunicatorFactory.Enabled = false
will skip creating (and attempting to connect) with RpcCommunicator. This is a bit clunky but it's the only way we have to avoid trying to connect to a trainer, which could be a problem for shipping games.Types of change(s)
Checklist
Other comments