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:
  1. Inject Resource: Add Res<T> or Query<T> to ui_example_system.
  2. Draw Label:
    ui.label(format!("My New Stat: {}", my_resource.value));

3. Architecture Reference

  • Interactable Component: Tags entities for SDK visibility.
  • InteractionEvent: Bridges gameplay clicks to SDK logic.