rename to more standard names

This commit is contained in:
Schrottkatze 2024-11-23 19:29:35 +01:00
parent 6568fc5b77
commit ed3434e538
Signed by: schrottkatze
SSH key fingerprint: SHA256:hXb3t1vINBFCiDCmhRABHX5ocdbLiKyCdKI4HK2Rbbc

View file

@ -67,8 +67,8 @@ pub(super) fn import_text_world(
mut player_spawn_oneshot: Res<PlayerSpawnOneshot>, mut player_spawn_oneshot: Res<PlayerSpawnOneshot>,
) { ) {
let world_string = fs::read_to_string("assets/world.txt").expect("need a world to load"); let world_string = fs::read_to_string("assets/world.txt").expect("need a world to load");
let [info_string, world_string] = &readf("info section\n{}\nworld section\n{}", &world_string) let [info_string, world_string] =
.expect("world does not have sections")[..] &readf("header\n{}\nbody\n{}", &world_string).expect("world does not have sections")[..]
else { else {
unreachable!() unreachable!()
}; };