mirror of https://github.com/zyllian/classics.git synced 2025-05-10 09:46:39 -07:00

make all config options default

This commit is contained in:
Zoey 2024-04-22 10:18:05 -07:00
parent e309a46cd3
commit 8dc89d959e
No known key found for this signature in database
GPG key ID: 8611B896D1AAFAF2
6 changed files with 73 additions and 31 deletions

View file

@ -5,7 +5,7 @@ use serde::{Deserialize, Serialize};
use super::{block::BLOCK_STRING_ID_MAP, Level};
/// enum for different kinds of level generation
#[derive(Debug, Serialize, Deserialize)]
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
#[serde(tag = "type")]
pub enum LevelGeneration {
/// an empty level
@ -17,7 +17,7 @@ pub enum LevelGeneration {
}
/// enum for level presents
#[derive(Debug, Serialize, Deserialize)]
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
#[serde(tag = "flat_type")]
pub enum FlatPreset {
/// the level is mostly stone, then dirt, then a layer of grass on the top
@ -27,7 +27,7 @@ pub enum FlatPreset {
}
/// description of a flat world's layer
#[derive(Debug, Serialize, Deserialize)]
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct FlatLayer {
/// the block for the layer
pub block: String,