wip: week of changes
This commit is contained in:
parent
03e8f34dba
commit
176ea52ab0
20 changed files with 171 additions and 47 deletions
|
|
@ -1,9 +1,20 @@
|
|||
use std::collections::HashMap;
|
||||
use std::path::{Path, PathBuf};
|
||||
|
||||
pub struct Scene {
|
||||
title: String,
|
||||
world: hecs::World,
|
||||
skybox_texture_path: String,
|
||||
skybox_texture_path: Option<PathBuf>,
|
||||
}
|
||||
|
||||
impl Scene {
|
||||
pub fn new(title: String, skybox_texture_path: Option<PathBuf>) -> Self {
|
||||
Self {
|
||||
title,
|
||||
world: hecs::World::new(),
|
||||
skybox_texture_path,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl AsRef<Scene> for Scene {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue