From 768e2d50fdbf8a2de8b57e7363cf26d95dbdc015 Mon Sep 17 00:00:00 2001 From: "1992414357@qq.com" <1992414357@qq.com> Date: Wed, 18 Jun 2025 02:52:12 +0800 Subject: Finished CBindings --- core/src/data/game/game_data.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/src/data/game/game_data.rs') diff --git a/core/src/data/game/game_data.rs b/core/src/data/game/game_data.rs index 35a5c0e..bc198df 100644 --- a/core/src/data/game/game_data.rs +++ b/core/src/data/game/game_data.rs @@ -91,6 +91,12 @@ impl GameData { }; Arc::new(Mutex::new(runtime)) } + + /// Build the game-side runtime using game data (borrowed) + pub fn runtime_with_borrowed_data(&self) -> Arc> { + let runtime = self.clone().runtime(); + runtime + } } impl From for GameRuntimeData { -- cgit