API Reference#
All SDK functionality is accessed through a single include:
Everything lives in the xenon namespace.
Modules#
| Module | Header | Description |
|---|---|---|
| Types | Types.hpp |
Vector2, Vector3, Color, Team, EntityType |
| Core | Core.hpp |
Log, LogDebug, LogWarning, LogError, GetTime, IsKeyDown, ScreenSize, WorldToScreen, GetCurrentHero |
| Entity | Entity.hpp |
Entity class, PluginEntity struct, iterators |
| Draw | Draw.hpp |
Draw::Line, Circle, Rect, Text, HealthBar |
| ImGui | ImGui.hpp |
Checkbox, SliderFloat, Combo, CollapsingHeader |
| Config | Config.hpp |
GetBool, SetFloat, Save — persistent settings |
| Raycast | Core.hpp |
Raycast, IsPointVisible, IsRaycastReady, RaycastResult |
| Connection | Core.hpp |
GetClientPing, GetServerPing, PressGameButton, ReleaseGameButton |
| Format & Strings | Format.hpp, String.hpp, Memory.hpp |
TextBuilder, fmt::int_to_str, strlen, memcpy |
| Constants | Types.hpp |
Bone, VK, GameButton, PluginFlags, HeroId |
| Macros | SDK.hpp |
XENON_PLUGIN_INFO, XENON_PLUGIN, XENON_LIBRARY_INFO |
Conventions#
- All functions are in the
xenonnamespace (e.g.,xenon::Log()) - Most examples use
using namespace xenon;for brevity - Functions that can fail return
bool(true = success) - Colors use ARGB format (
0xAARRGGBB) - Strings are null-terminated
const char*(nostd::string)