@@ -45,3 +45,72 @@ handler.ParseCommands(command);
4545### Key Files with Important Comments:
4646- `src/araxiaonline/mcp/ServerTools.cpp` - GM command implementation pattern
4747- `src/araxiaonline/mcp/AraxiaMCPServer.cpp` - MCP server architecture
48+ - `src/araxiaonline/eventbus/AraxiaEvents.h` - Event interface and concrete event classes
49+
50+ ---
51+
52+ ## Araxia Event Bus
53+
54+ The Event Bus is a ZeroMQ-based real-time event system that publishes game events to external consumers.
55+
56+ - **Documentation**: `/opt/trinitycore/araxia-content-tools/docs/game_engine/araxia_event_bus.md`
57+ - **Source**: `src/araxiaonline/eventbus/`
58+ - **Port**: `tcp://*:5555` (configurable)
59+
60+ ### Supported Events
61+ | Category | Events |
62+ |----------|--------|
63+ | Player | login, logout, death |
64+ | Quest | accept, complete, abandon |
65+ | Combat | enter, leave |
66+ | Loot | item |
67+ | Spawn | create, delete |
68+ | Encounter | start, wipe, end |
69+
70+ ### Quick Test
71+ ```bash
72+ cd /opt/trinitycore/TrinityCore/src/araxiaonline/tools
73+ source .venv/bin/activate
74+ python zmq_subscriber.py
75+ ```
76+
77+ ** Keep the wiki page updated** when adding new event types or changing the event bus architecture.
78+
79+ ---
80+
81+ ## AI Testing with Scarletseer
82+
83+ ** Scarletseer** is a dedicated test character for AI assistants to use for automated testing via MCP.
84+
85+ - ** Character** : Scarletseer (GUID 7, Level 80 Tauren Shaman)
86+ - ** Location** : Pandaria (Map 870) - Halfhill Farm area
87+ - ** Documentation** : See ` /opt/trinitycore/araxia-content-tools/docs/game_engine/scarletseer.md `
88+
89+ ### Quick Start
90+ ```
91+ mcp_session_create(owner_name="Cascade")
92+ mcp_player_login(session_id=1, character_name="Scarletseer")
93+ mcp_player_status(session_id=1) # Verify login
94+ # ... run tests ...
95+ mcp_player_logout(session_id=1)
96+ ```
97+
98+ ### Event Bus Testing
99+ Scarletseer can trigger events for the ZeroMQ event bus:
100+ - ** Player events** : login, logout, death
101+ - ** Quest events** : accept, complete, abandon
102+ - ** Combat events** : enter, leave
103+ - ** Loot events** : item looted
104+ - ** Encounter events** : start, wipe, end (requires dungeon/raid)
105+
106+ Monitor events with: ` python /opt/trinitycore/TrinityCore/src/araxiaonline/tools/zmq_subscriber.py `
107+
108+ ---
109+
110+ ### Building the server
111+ - Always use the max number of threads when building the server
112+ - Always use @araxiaonline /cmake_setup.sh to setup the build environment. Modify it if needed.
113+ - Please fix all compile warnings before marking a task as complete.
114+
115+ ### Pushing changes
116+ - Our working branch is ` araxia-main ` and all branches and PRs should be based on this branch.
0 commit comments