This repository has been archived on 2026-10-29. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
Epiphany/epiphany-codex-bridge/src/scene.rs

16 lines
402 B
Rust
Raw Normal View History

2026-05-20 15:03:44 +01:00
use epiphany_core::EpiphanyScene;
2026-05-13 00:48:04 +01:00
use epiphany_core::EpiphanySceneInput;
use epiphany_core::derive_scene;
use epiphany_state_model::EpiphanyThreadState;
2026-05-13 00:48:04 +01:00
2026-05-20 15:03:44 +01:00
pub fn derive_epiphany_scene(
2026-05-13 00:48:04 +01:00
state: Option<&EpiphanyThreadState>,
loaded: bool,
2026-05-13 03:07:24 +01:00
reorient_binding_id: &str,
2026-05-20 15:03:44 +01:00
) -> EpiphanyScene {
derive_scene(EpiphanySceneInput {
2026-05-13 00:48:04 +01:00
state,
loaded,
2026-05-13 03:07:24 +01:00
reorient_binding_id,
2026-05-20 15:03:44 +01:00
})
2026-05-13 00:48:04 +01:00
}