Refactored Player and NPC packets

This commit is contained in:
thedaneeffect committed 2023-01-05 13:31:06 -05:00
1 parent 22587cdb5a
commit 65b84fdeaa
11 files changed
+2196 -2044

No files matched your search

+10 -10
View File
@@ -7,7 +7,7 @@ public final class PacketIn {
public static final int CAM_RESET = 107;
public static final int CAM_SETPOS = 166;
public static final int CAM_SHAKE = 35;
public static final int CHAT_COMPONENT = 164;
public static final int IF_CHAT = 164;
public static final int CHAT_COMPONENT_STICKY = 218;
public static final int CHAT_FILTER_SETTINGS = 206;
public static final int CLEAR_MAP_FLAG = 78;
@@ -50,19 +50,19 @@ public final class PacketIn {
public static final int OBJ_COUNT = 84;
public static final int OBJ_DEL = 156;
public static final int OBJ_REVEAL = 215;
public static final int PLAYER_LOC = 147;
public static final int MAP_PROJANIM = 117;
public static final int LOC_PLAYER = 147;
public static final int MAP_PROJECTILE = 117;
public static final int REBUILD_REGION = 73;
public static final int REBUILD_REGION_INSTANCE = 241;
public static final int RESET_ANIMS = 1;
public static final int RESET_CLIENT_VARCACHE = 68;
public static final int SET_PLAYER_OP = 104;
public static final int SOUND_AREA = 105;
public static final int MAP_SOUND = 105;
public static final int MAP_ANIM = 4;
public static final int SYNC_NPCS = 65;
public static final int SYNC_PLAYERS = 81;
public static final int SYNTH_SOUND = 174;
public static final int TAB_COMPONENT = 71;
public static final int IF_TAB = 71;
public static final int TAB_HINT = 24;
public static final int TAB_SELECTED = 106;
public static final int UPDATE_INV_FULL = 53;
@@ -93,7 +93,7 @@ public final class PacketIn {
SIZE[ZONE_CLEAR] = 2;
SIZE[SYNC_NPCS] = -2;
SIZE[IF_SETPOSITION] = 6;
SIZE[TAB_COMPONENT] = 3;
SIZE[IF_TAB] = 3;
SIZE[INV_CLEAR] = 2;
SIZE[REBUILD_REGION] = 4;
SIZE[MIDI_SONG] = 2;
@@ -107,21 +107,21 @@ public final class PacketIn {
SIZE[MINIMAP_TOGGLE] = 1;
SIZE[LOC_DEL] = 2;
SIZE[SET_PLAYER_OP] = -1;
SIZE[SOUND_AREA] = 4;
SIZE[MAP_SOUND] = 4;
SIZE[TAB_SELECTED] = 1;
SIZE[UPDATE_RUNENERGY] = 1;
SIZE[UPDATE_REBOOT_TIMER] = 2;
SIZE[MAP_PROJANIM] = 15;
SIZE[MAP_PROJECTILE] = 15;
SIZE[MIDI_JINGLE] = 4;
SIZE[IF_SETCOLOR] = 4;
SIZE[IF_SETTEXT] = -2;
SIZE[UPDATE_STAT] = 6;
SIZE[IF_STOPANIM] = 2;
SIZE[PLAYER_LOC] = 14;
SIZE[LOC_PLAYER] = 14;
SIZE[LOC_ADD] = 4;
SIZE[OBJ_DEL] = 3;
SIZE[LOC_CHANGE] = 4;
SIZE[CHAT_COMPONENT] = 2;
SIZE[IF_CHAT] = 2;
SIZE[CAM_SETPOS] = 6;
SIZE[IF_SETHIDE] = 3;
SIZE[SYNTH_SOUND] = 5;