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
onLogin playerSession.getPlayer() is null #7
Comments
seems that in LoginHandler handleGameRoomJoin parameter player is not used at all. |
This is known, meaning I have a TODO in code for this. |
If you have alternate suggestions on this, let me know. The reason "Player" object has lower precedence is that it will be hooked up from backend database based on the ref key, when someone uses jetserver. For the trivial example games I have done, it is un-necessary. |
That's a little confusing, in order to that I have to modify the internal code and build the project again to get new jar files. public static PlayerSession newPlayerSession(GameRoom gameRoom) |
Hmm, yes its little confusing. I will modify the signature of newPlayerSession to what you have mentioned. I don't think you would need to touch internal code. Given an option, at which point would you have the player looked up from database during the login process? Any suggestions. |
Okay, please let me know when I can download a new version of the code and jars. |
For now I am using a hack to distinguish different clients public class ConnectGameRoom extends GameRoomSession {
} |
This works, but like you said not the best solution. Let me see if I can clean it up. |
public class ConnectGameRoom extends GameRoomSession {
}
prints true. Why is it so?
The text was updated successfully, but these errors were encountered: