Skip to content

Commit

Permalink
layer fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Auto committed May 30, 2024
1 parent c58fedb commit 9e01388
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 33 deletions.
38 changes: 6 additions & 32 deletions src/game_api/layer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ struct Layer

EntityList unknown_entities2;
std::array<EntityList, 53> 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<Entity*> unknown_vector; // add_to_layer uses this
Expand All @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion src/game_api/savedata.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ struct ConstellationLine
struct Constellation
{
uint8_t star_count;
uint8_t unknown[3];
uint8_t unknown[3]; // possibly something?
std::array<ConstellationStar, 45> stars;
float scale;
uint8_t line_count;
Expand Down

0 comments on commit 9e01388

Please sign in to comment.