-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing item info to NetworkItem sent in printjson packets.
add a helper method to get plain text of printjson packets. clean up some of the bitflags.
- Loading branch information
Showing
9 changed files
with
64 additions
and
35 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
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
18 changes: 18 additions & 0 deletions
18
src/main/java/dev/koifysh/archipelago/NetworkItemFlags.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,18 @@ | ||
package dev.koifysh.archipelago; | ||
|
||
public class NetworkItemFlags { | ||
/** | ||
* If set, indicates the item can unlock logical advancement | ||
*/ | ||
public final static int ADVANCEMENT = 0b001; | ||
|
||
/** | ||
* If set, indicates the item is important but not in a way that unlocks advancement | ||
*/ | ||
public final static int USEFUL = 0b010; | ||
|
||
/** | ||
* If set, indicates the item is a trap | ||
*/ | ||
public final static int TRAP = 0b100; | ||
} |
24 changes: 24 additions & 0 deletions
24
src/main/java/dev/koifysh/archipelago/NetworkPlayerFlags.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,24 @@ | ||
package dev.koifysh.archipelago; | ||
|
||
/** | ||
* Flags that will tell you more about the slot type.<br> | ||
* {@link #SPECTATOR}, | ||
* {@link #PLAYER}, | ||
* {@link #GROUP} | ||
*/ | ||
public class NetworkPlayerFlags { | ||
/** | ||
* If set, indicates the slot is a spectator | ||
*/ | ||
public final static int SPECTATOR = 0b001; | ||
|
||
/** | ||
* If set, indicates the slot is a player | ||
*/ | ||
public final static int PLAYER = 0b010; | ||
|
||
/** | ||
* If set, indicates the slot is a group. | ||
*/ | ||
public final static int GROUP = 0b100; | ||
} |
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
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