Skip to content

Commit

Permalink
Renamed and partially mapped event_datum
Browse files Browse the repository at this point in the history
Fixed missing include for `effect_datum`
  • Loading branch information
twist84 committed Oct 10, 2024
1 parent 956b62e commit bee8e4b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
20 changes: 16 additions & 4 deletions game/source/effects/effects.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include "effects/screen_effect.hpp"
#include "effects/vision_mode.hpp"
#include "memory/data.hpp"
#include "objects/damage_owner.hpp"

enum e_effect_pass
{
Expand Down Expand Up @@ -41,7 +42,7 @@ struct effect_datum :
long definition_index;
long looping_sound_index;

string_id marker_name;
c_string_id marker_name;

byte __unknown14;
byte __unknown15;
Expand Down Expand Up @@ -78,12 +79,23 @@ struct effect_datum :
};
static_assert(sizeof(effect_datum) == 0xA0);

struct effect_event_datum :
struct event_datum :
s_datum_header
{
byte __data[0x12];
byte_flags flags;

byte __data3[0x1];

word event_counter; // `counter`?

byte __data6[0x2];

long next_event_index; // `next_index`?

real __unknownC;
real __unknown10;
};
static_assert(sizeof(effect_event_datum) == 0x14);
static_assert(sizeof(event_datum) == 0x14);

struct effect_location_datum :
s_datum_header
Expand Down
2 changes: 1 addition & 1 deletion game/source/memory/thread_local.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ struct s_thread_local_storage
// name: "effect event"
// count: 640
// size: 0x14
c_smart_data_array<effect_event_datum> event_data;
c_smart_data_array<event_datum> event_data;

// name: "effect location"
// count: 1152
Expand Down

0 comments on commit bee8e4b

Please sign in to comment.