From 7d93b6e4e6d9156cd411c54f391b43ea75af26cb Mon Sep 17 00:00:00 2001 From: Josh-Larson Date: Sat, 5 Oct 2024 13:42:19 -0500 Subject: [PATCH] Fixed SuiComponent deserialization --- .../com/projectswg/common/data/sui/SuiComponent.kt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/projectswg/common/data/sui/SuiComponent.kt b/src/main/java/com/projectswg/common/data/sui/SuiComponent.kt index 49ea126..ff449a8 100644 --- a/src/main/java/com/projectswg/common/data/sui/SuiComponent.kt +++ b/src/main/java/com/projectswg/common/data/sui/SuiComponent.kt @@ -1,11 +1,10 @@ /*********************************************************************************** * Copyright (c) 2024 /// Project SWG /// www.projectswg.com * * * - * ProjectSWG is the first NGE emulator for Star Wars Galaxies founded on * + * ProjectSWG is an emulation project for Star Wars Galaxies founded on * * July 7th, 2011 after SOE announced the official shutdown of Star Wars Galaxies. * - * Our goal is to create an emulator which will provide a server for players to * - * continue playing a game similar to the one they used to play. We are basing * - * it on the final publish of the game prior to end-game events. * + * Our goal is to create one or more emulators which will provide servers for * + * players to continue playing a game similar to the one they used to play. * * * * This file is part of PSWGCommon. * * * @@ -47,6 +46,9 @@ class SuiComponent(type: Type, widget: String) : Encodable { */ get() = _narrowParams[0] + @Deprecated("Properly initialize each field with the full constructor.", ReplaceWith("SuiComponent(type, widget)")) + constructor() : this(Type.NONE, "") + fun addNarrowParam(param: String) { _narrowParams.add(param) }