Added getters and setters to some packets, so can work with them in automated tests

This commit is contained in:
Ziggy
2023-11-28 16:43:25 +01:00
parent 66b93d2624
commit 4fcb6279b4
2 changed files with 27 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
/***********************************************************************************
* Copyright (c) 2018 /// Project SWG /// www.projectswg.com *
* Copyright (c) 2023 /// Project SWG /// www.projectswg.com *
* *
* ProjectSWG is the first NGE emulator for Star Wars Galaxies founded on *
* July 7th, 2011 after SOE announced the official shutdown of Star Wars Galaxies. *
@@ -88,7 +88,15 @@ public class ChatSystemMessage extends SWGPacket {
public String getMessage() {
return message;
}
public OutOfBandPackage getOob() {
return oob;
}
public SystemChatType getType() {
return type;
}
public enum SystemChatType {
PERSONAL (0x00),
BROADCAST (0x01),

View File

@@ -1,5 +1,5 @@
/***********************************************************************************
* Copyright (c) 2018 /// Project SWG /// www.projectswg.com *
* Copyright (c) 2023 /// Project SWG /// www.projectswg.com *
* *
* ProjectSWG is the first NGE emulator for Star Wars Galaxies founded on *
* July 7th, 2011 after SOE announced the official shutdown of Star Wars Galaxies. *
@@ -82,4 +82,20 @@ public class SuiEventNotification extends SWGPacket {
public List<String> getSubscribedToProperties() { return this.subscribedToProperties; }
public int getEventIndex() { return this.eventIndex; }
public int getUpdateCount() { return this.updateCount; }
public void setWindowId(int windowId) {
this.windowId = windowId;
}
public void setEventIndex(int eventIndex) {
this.eventIndex = eventIndex;
}
public void setUpdateCount(int updateCount) {
this.updateCount = updateCount;
}
public void addSubscribedToProperty(String property) {
this.subscribedToProperties.add(property);
}
}