mirror of
https://github.com/Noratrieb/game-wip-dontplay.git
synced 2026-01-17 04:45:02 +01:00
Remove unused clock from game state
This commit is contained in:
parent
a1e9bc6754
commit
08141c0e6f
1 changed files with 1 additions and 5 deletions
|
|
@ -4,8 +4,7 @@ use derivative::Derivative;
|
||||||
use egui_inspect::derive::Inspect;
|
use egui_inspect::derive::Inspect;
|
||||||
use sfml::{
|
use sfml::{
|
||||||
graphics::{Color, RectangleShape, RenderTarget, RenderTexture, Shape, Sprite, Transformable},
|
graphics::{Color, RectangleShape, RenderTarget, RenderTexture, Shape, Sprite, Transformable},
|
||||||
system::{Clock, Vector2u},
|
system::Vector2u,
|
||||||
SfBox,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
|
|
@ -33,8 +32,6 @@ pub struct GameState {
|
||||||
#[opaque]
|
#[opaque]
|
||||||
pub worldgen: Worldgen,
|
pub worldgen: Worldgen,
|
||||||
pub ambient_light: u8,
|
pub ambient_light: u8,
|
||||||
#[opaque]
|
|
||||||
pub clock: SfBox<Clock>,
|
|
||||||
pub light_sources: Vec<LightSource>,
|
pub light_sources: Vec<LightSource>,
|
||||||
pub tile_db: TileDb,
|
pub tile_db: TileDb,
|
||||||
/// This is the number of ticks since the world has started.
|
/// This is the number of ticks since the world has started.
|
||||||
|
|
@ -161,7 +158,6 @@ impl Default for GameState {
|
||||||
prev_biome: Biome::Surface,
|
prev_biome: Biome::Surface,
|
||||||
worldgen: Worldgen::default(),
|
worldgen: Worldgen::default(),
|
||||||
ambient_light: 0,
|
ambient_light: 0,
|
||||||
clock: Clock::start(),
|
|
||||||
light_sources: Vec::new(),
|
light_sources: Vec::new(),
|
||||||
tile_db: TileDb::load_or_default(),
|
tile_db: TileDb::load_or_default(),
|
||||||
ticks: 0,
|
ticks: 0,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue