forked from External/mage
Sending user data. Sending avatar to server on connect.
This commit is contained in:
parent
32d4d854f4
commit
bf1a49dd0b
27 changed files with 202 additions and 38 deletions
34
Mage/src/mage/players/net/UserData.java
Normal file
34
Mage/src/mage/players/net/UserData.java
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
package mage.players.net;
|
||||
|
||||
/**
|
||||
* User data that is passed during connection to the server.
|
||||
*
|
||||
* @author ayrat
|
||||
*/
|
||||
public class UserData {
|
||||
|
||||
protected int groupId;
|
||||
protected int avatarId;
|
||||
protected String privateKey;
|
||||
|
||||
public UserData(UserGroup userGroup, int avatarId) {
|
||||
this.groupId = userGroup.getGroupId();
|
||||
this.avatarId = avatarId;
|
||||
}
|
||||
|
||||
public void setGroupId(int groupId) {
|
||||
this.groupId = groupId;
|
||||
}
|
||||
|
||||
public int getGroupId() {
|
||||
return groupId;
|
||||
}
|
||||
|
||||
public int getAvatarId() {
|
||||
return avatarId;
|
||||
}
|
||||
|
||||
public void setAvatarId(int avatarId) {
|
||||
this.avatarId = avatarId;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue