mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2025-02-18 20:12:36 +01:00
Little fixes for data structures
* Expose HWallItem's parse method * Rename UserProfile to HUserProfile Signed-off-by: Eduardo Alonso <edu@error404software.com>
This commit is contained in:
parent
3ff1abdf9b
commit
8bb0fb5176
@ -2,7 +2,7 @@ package gearth.extensions.parsers;
|
|||||||
|
|
||||||
import gearth.protocol.HPacket;
|
import gearth.protocol.HPacket;
|
||||||
|
|
||||||
public class UserProfile {
|
public class HUserProfile {
|
||||||
private int id;
|
private int id;
|
||||||
private String username;
|
private String username;
|
||||||
private String motto;
|
private String motto;
|
||||||
@ -20,7 +20,7 @@ public class UserProfile {
|
|||||||
private int lastAccessSince;
|
private int lastAccessSince;
|
||||||
private boolean openProfile;
|
private boolean openProfile;
|
||||||
|
|
||||||
public UserProfile(HPacket packet) {
|
public HUserProfile(HPacket packet) {
|
||||||
id = packet.readInteger();
|
id = packet.readInteger();
|
||||||
username = packet.readString();
|
username = packet.readString();
|
||||||
motto = packet.readString();
|
motto = packet.readString();
|
@ -28,7 +28,7 @@ public class HWallItem implements IFurni {
|
|||||||
ownerId = packet.readInteger();
|
ownerId = packet.readInteger();
|
||||||
}
|
}
|
||||||
|
|
||||||
static HWallItem[] parse(HPacket packet) {
|
public static HWallItem[] parse(HPacket packet) {
|
||||||
int ownersCount = packet.readInteger();
|
int ownersCount = packet.readInteger();
|
||||||
HashMap<Integer, String> owners = new HashMap<>(ownersCount);
|
HashMap<Integer, String> owners = new HashMap<>(ownersCount);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user