72 lines
2.3 KiB
C#
72 lines
2.3 KiB
C#
namespace Server.Networking.Messages;
|
|
|
|
/// <summary>
|
|
/// OpCodes for the dungeon crawler game mode
|
|
/// </summary>
|
|
public static class DungeonOpCodes
|
|
{
|
|
// Hub (200-299)
|
|
public const int HUB_STATE = 200;
|
|
public const int STAT_ALLOCATE = 201;
|
|
|
|
// Dungeon (300-399)
|
|
public const int DUNGEON_ENTER = 300;
|
|
public const int DUNGEON_ENTER_RESULT = 301;
|
|
public const int DUNGEON_STATE = 302;
|
|
public const int DUNGEON_LEAVE = 303;
|
|
public const int DUNGEON_CLEARED = 304;
|
|
|
|
// Dungeon Browser (310-319)
|
|
public const int DUNGEON_LIST_REQUEST = 310;
|
|
public const int DUNGEON_LIST_RESPONSE = 311;
|
|
public const int DUNGEON_CREATE = 312;
|
|
public const int DUNGEON_JOIN = 313;
|
|
|
|
// Input (400-449)
|
|
public const int DUNGEON_INPUT_MOVE = 400;
|
|
public const int DUNGEON_INPUT_ATTACK = 401;
|
|
public const int DUNGEON_INPUT_PICKUP = 402;
|
|
public const int DUNGEON_INPUT_CHEST = 403;
|
|
public const int DUNGEON_INPUT_PORTAL = 404;
|
|
|
|
// Escape (450-499)
|
|
public const int ESCAPE_START = 450;
|
|
public const int ESCAPE_CANCEL = 451;
|
|
public const int ESCAPE_INTERRUPTED = 452;
|
|
public const int ESCAPE_SUCCESS = 453;
|
|
public const int PORTAL_USED = 454;
|
|
|
|
// Events (500-599)
|
|
public const int EVENT_DAMAGE = 500;
|
|
public const int EVENT_DEATH = 501;
|
|
public const int EVENT_LEVELUP = 502;
|
|
public const int EVENT_LOOT = 503;
|
|
public const int LOOT_RECEIVED = 160;
|
|
public const int DUNGEON_CLEARED = 304;
|
|
|
|
// Inventory (250-259)
|
|
public const int INVENTORY_REQUEST = 250;
|
|
public const int INVENTORY_STATE = 251;
|
|
public const int EQUIP_ITEM = 252;
|
|
public const int UNEQUIP_ITEM = 253;
|
|
public const int USE_ITEM = 254;
|
|
public const int DROP_ITEM = 255;
|
|
public const int HOTBAR_ASSIGN = 256;
|
|
|
|
// Chat (260-269)
|
|
public const int CHAT_SEND = 260;
|
|
public const int CHAT_MESSAGE = 261;
|
|
|
|
// Loot Chests (270-279)
|
|
public const int LOOT_CHEST_OPEN = 270;
|
|
public const int LOOT_CHEST_STATE = 271;
|
|
public const int LOOT_CHEST_TAKE_ITEM = 272;
|
|
public const int LOOT_CHEST_TAKE_ALL = 273;
|
|
public const int LOOT_CHEST_CLOSE = 274;
|
|
public const int LOOT_CHEST_SPAWNED = 275;
|
|
public const int LOOT_CHEST_REMOVED = 276;
|
|
|
|
// Player Death (280-289)
|
|
public const int PLAYER_DEATH_LOOT_LOST = 280; // Notifies victim what they lost
|
|
}
|