forked from ArchipelagoMW/Java-Client
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix "archipelago" game not showing up in SlotData
Add APPrintJsonType enum to printjson packets, instead of just passing a string. defaults to Unknown for invalid/missing field.
- Loading branch information
Showing
6 changed files
with
126 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
102 changes: 102 additions & 0 deletions
102
src/main/java/dev/koifysh/archipelago/Print/APPrintJsonType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
package dev.koifysh.archipelago.Print; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
|
||
public enum APPrintJsonType { | ||
|
||
/** | ||
* A player received an item. | ||
*/ | ||
@SerializedName("ItemSend") | ||
ItemSend, | ||
|
||
/** | ||
* A player used the `!getitem` command. | ||
*/ | ||
@SerializedName("ItemCheat") | ||
ItemCheat, | ||
|
||
/** | ||
* A player hinted. | ||
*/ | ||
@SerializedName("Hint") | ||
Hint, | ||
|
||
/** | ||
* A player connected. | ||
*/ | ||
@SerializedName("Join") | ||
Join, | ||
|
||
/** | ||
* A player disconnected. | ||
*/ | ||
@SerializedName("Part") | ||
Part, | ||
|
||
/** | ||
* A player sent a chat message. | ||
*/ | ||
@SerializedName("Chat") | ||
Chat, | ||
|
||
/** | ||
* The server broadcast a message. | ||
*/ | ||
@SerializedName("ServerChat") | ||
ServerChat, | ||
|
||
/** | ||
* The client has triggered a tutorial message, such as when first connecting. | ||
*/ | ||
@SerializedName("entrance_name") | ||
Tutorial, | ||
|
||
/** | ||
* A player changed their tags. | ||
*/ | ||
@SerializedName("TagsChanged") | ||
TagsChanged, | ||
|
||
/** | ||
* Someone (usually the client) entered an ! command. | ||
*/ | ||
@SerializedName("CommandResult") | ||
CommandResult, | ||
|
||
/** | ||
* The client entered an !admin command. | ||
*/ | ||
@SerializedName("AdminCommandResult") | ||
AdminCommandResult, | ||
|
||
/** | ||
* A player reached their goal. | ||
*/ | ||
@SerializedName("Goal") | ||
Goal, | ||
|
||
/** | ||
* A player released the remaining items in their world. | ||
*/ | ||
@SerializedName("Release") | ||
Release, | ||
|
||
/** | ||
* A player collected the remaining items for their world. | ||
*/ | ||
@SerializedName("Collect") | ||
Collect, | ||
|
||
/** | ||
* The current server countdown has progressed. | ||
*/ | ||
@SerializedName("Countdown") | ||
Countdown, | ||
|
||
/** | ||
* The Message type was not set, or is invalid. | ||
*/ | ||
Unknown | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters