Refactored entirety of SuiWindows so they're easier to add callbacks and set properties, including the addition of parameters map in replacement of returnParams for window callbacks

This commit is contained in:
Waverunner
2015-08-16 11:39:26 -04:00
parent 74f0fc620e
commit c7d1919c98
17 changed files with 1075 additions and 454 deletions
+10
View File
@@ -1,6 +1,7 @@
package utilities;
import intents.sui.SuiWindowIntent;
import network.packets.swg.zone.chat.ChatSystemMessage;
import resources.Terrain;
import resources.encodables.OutOfBandPackage;
import resources.encodables.ProsePackage;
@@ -88,6 +89,15 @@ public final class IntentFactory {
new ChatBroadcastIntent(target, new ProsePackage("StringId", new StringId(table, key), objects)).broadcast();
}
/**
* Sends a message to just the console chat for the target.
* @param target Player to receive the message
* @param message Message to display in the players chat console.
*/
public void sendConsoleMessage(Player target, String message) {
target.sendPacket(new ChatSystemMessage(ChatSystemMessage.SystemChatType.CHAT, message));
}
/**
* Sends a mail to the receiver with the specified subject, message, from the specified sender.
* @param receiver Player receiving the mail.