From 9e01388db7111282db277f684e35a9a333804de5 Mon Sep 17 00:00:00 2001 From: Mr-Auto <36127424+Mr-Auto@users.noreply.github.com> Date: Thu, 30 May 2024 14:28:48 +0200 Subject: [PATCH] layer fix --- src/game_api/layer.hpp | 38 ++++++-------------------------------- src/game_api/savedata.hpp | 2 +- 2 files changed, 7 insertions(+), 33 deletions(-) diff --git a/src/game_api/layer.hpp b/src/game_api/layer.hpp index e77c86e0d..bf2241d2f 100644 --- a/src/game_api/layer.hpp +++ b/src/game_api/layer.hpp @@ -153,6 +153,7 @@ struct Layer EntityList unknown_entities2; std::array entities_by_draw_depth; + EntityList unknown_entities2a; EntityList unknown_entities3; // debris, explosions, laserbeams etc. ? EntityList unknown_entities4; // explosions, laserbeams, BG_LEVEL_*_SOOT ? only for short time while there are spawned? std::vector unknown_vector; // add_to_layer uses this @@ -162,38 +163,11 @@ struct Layer EntityList expired_entities; bool is_layer_loading; bool unknown14; - uint8_t unknown15; - uint8_t unknown16; - uint32_t unknown17; - uint32_t unknown18; - uint32_t unknown19; - size_t entity_items_begin; // begin of the memory that holds the items of entities, maybe vector? - size_t unknown21; - size_t unknown22; - bool unknown23; - bool layer_freeze; // locking mechanism? - uint8_t unknown25; - uint8_t unknown26; - uint32_t unknown27; - uint64_t unknown28; - uint64_t unknown29; - uint64_t unknown30; - uint64_t unknown31; - uint64_t unknown32; - uint32_t unknown33; - uint32_t unknown34; - size_t unknown35; // maybe vector? - size_t unknown36; - size_t unknown37; - bool unknown38; - bool unknown39; - uint8_t unknown40; - uint8_t unknown41; - uint32_t unknown42; - uint64_t unknown43; - uint64_t unknown44; - uint64_t unknown45; - uint64_t unknown46; // next layer below + + // probably just padding + // uint8_t unknown15; + // uint8_t unknown16; + // uint32_t unknown17; Entity* spawn_entity(ENT_TYPE id, float x, float y, bool screen, float vx, float vy, bool snap); diff --git a/src/game_api/savedata.hpp b/src/game_api/savedata.hpp index 13804bfdc..cafab8c64 100644 --- a/src/game_api/savedata.hpp +++ b/src/game_api/savedata.hpp @@ -68,7 +68,7 @@ struct ConstellationLine struct Constellation { uint8_t star_count; - uint8_t unknown[3]; + uint8_t unknown[3]; // possibly something? std::array stars; float scale; uint8_t line_count;