mirror of
https://github.com/Noratrieb/game-wip-dontplay.git
synced 2026-01-16 12:25:02 +01:00
manual
This commit is contained in:
parent
dac93f611b
commit
ded76b32b8
15 changed files with 39 additions and 261 deletions
38
src/game.rs
38
src/game.rs
|
|
@ -20,43 +20,5 @@ use crate::{
|
|||
#[derivative(Debug)]
|
||||
pub(crate) struct GameState {
|
||||
pub(crate) camera_offset: WorldPos,
|
||||
pub(crate) world: World,
|
||||
pub(crate) tile_db: TileDb,
|
||||
}
|
||||
#[derive(PartialEq, Eq, Clone, Copy, Debug, Inspect)]
|
||||
pub(crate) enum Biome {
|
||||
Surface,
|
||||
Underground,
|
||||
}
|
||||
impl GameState {
|
||||
pub(crate) fn update(&mut self, input: &Input) {
|
||||
loop {}
|
||||
}
|
||||
pub(crate) fn draw_world(&mut self, rt: &mut RenderTexture, res: &mut Res) {
|
||||
loop {}
|
||||
}
|
||||
pub(crate) fn draw_entities(&mut self, rt: &mut RenderTexture) {
|
||||
loop {}
|
||||
}
|
||||
pub(crate) fn draw_ui(
|
||||
&mut self,
|
||||
rt: &mut RenderTexture,
|
||||
res: &Res,
|
||||
ui_dims: Vector2f,
|
||||
) {
|
||||
loop {}
|
||||
}
|
||||
pub(crate) fn light_pass(&mut self, lightmap: &mut RenderTexture, res: &Res) {
|
||||
loop {}
|
||||
}
|
||||
pub(crate) fn new(world_name: String, path: PathBuf, res: &Res) -> GameState {
|
||||
loop {}
|
||||
}
|
||||
}
|
||||
pub(crate) fn for_each_tile_on_screen(
|
||||
camera_offset: WorldPos,
|
||||
rt_size: Vector2u,
|
||||
mut f: impl FnMut(TilePos, ScreenVec),
|
||||
) {
|
||||
loop {}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue