mission-core-sdk
Mission CORE-SDK: Client Integration Layer
- Understand Requirements: Read the mission details in
pending_tasks.md. - Animation State Machine:
- Define
AnimationStateenum inloh-libs/shared-protocol/src/lib.rs(or appropriate module). - States should include:
Idle,Walking,Running,Attacking(Style),Gathering(Skill),Eating,Dying.
- Define
- Asset Map Protocol:
- Create a struct
AssetMapthat can be deserialized from JSON. - Fields:
item_id,model_path,texture_path,animation_set_id. - Place in
loh-libs/shared-protocolorloh-game.
- Create a struct
- Client Event Bus:
- Identify where
ServerMessageis received inloh-game. - Create a system that translates
ServerMessagetoClientVisualEventbevy events. - Ensure logical events (e.g., "Player X hit Player Y") trigger visual events (e.g., "Play hit anim on Y", "Show splat").
- Identify where
- Hot-Reload Support:
- Use
bevy_asset::AssetServer's watching capabilities or a custom systems to reloadAssetMapJSON when changed. - Verify that changing the JSON updates the game without restart.
- Use
- Verification:
- compile
loh-libsandloh-game. - Run unit tests.
- compile