XilonenImpact/gameserver/src/scene/scene_mgr.rs
2024-08-26 15:29:56 +03:00

12 lines
216 B
Rust

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
}