XilonenImpact/gameserver/src/scene/scene_mgr.rs

13 lines
216 B
Rust
Raw Normal View History

2024-08-26 12:29:56 +00:00
use std::rc::Rc;
use crate::player::Player;
use super::Scene;
pub fn create_scene(scene_id: u32, player: Rc<Player>) -> Scene {
let scene = Scene::new(scene_id);
scene.set_own_player(player);
scene
}