extend-game-sdk
Extend the Legends Client SDK (Overlay & Inspector)
Extend Game Client SDK
1. Adding New Entity Highlights
Modify
src/systems/sdk/mod.rs:// Inside draw_highlights system
match interactable.interaction_type {
InteractionType::NewType => Color::PURPLE, // Maps type to color
// ...
}2. Adding New Inspectors
Modify
src/systems/ui/mod.rs:- Inject Resource: Add
Res<T>orQuery<T>toui_example_system. - Draw Label:
ui.label(format!("My New Stat: {}", my_resource.value));
3. Architecture Reference
InteractableComponent: Tags entities for SDK visibility.InteractionEvent: Bridges gameplay clicks to SDK logic.