Skip to content

Commit

Permalink
fix: structure of Actor class
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-vincent committed Aug 23, 2024
1 parent 0372c3d commit bfc0044
Showing 1 changed file with 20 additions and 21 deletions.
41 changes: 20 additions & 21 deletions include/bedrock/world/actor/actor.h
Original file line number Diff line number Diff line change
Expand Up @@ -278,27 +278,26 @@ class Actor {

protected:
EntityContext entity_context_; // +8
ActorInitializationMethod init_method_; // +32
std::string custom_init_event_name_; // +40
std::array<char[16], 10> unknown3_; // +72 (+64)
bool force_init_method_to_spawn_on_reload_; // +232 (+224)
bool added_; // +233 (+225)
ActorDefinitionGroup *definitions_; // +240 (+232)
std::unique_ptr<ActorDefinitionDescriptor> current_description_; // +248 (+240)
std::shared_ptr<RopeSystem> leash_rope_system_; // +256 (+248)
std::string unknown6_; // +272 (+264)
char unknown7_[72]; // +304 (+288)
std::map<HashedString, std::vector<std::vector<glm::mat4x4>>> unknown8_; // +376 (+360)
std::int32_t unknown9_; // +392 (+384)
SynchedActorDataEntityWrapper entity_data_; // +400 (+392)
std::unique_ptr<SpatialActorNetworkData> network_data_; // +448 (+440)
Vec3 sent_delta_; // +456 (+448)
char unknown11_[108]; // +468 (+460)
WeakRef<Dimension> dimension_; // +576 (+568)
Level *level_; // +592 (+584)
HashedString actor_renderer_id_; // +600 (+592)
ActorCategory categories_; // +648 (+632)
BuiltInActorComponents built_in_components_; // +656 (+640)
std::array<char[16], 10> unknown3_; // +32
std::string custom_init_event_name_; // +192
ActorInitializationMethod init_method_; // +224
bool force_init_method_to_spawn_on_reload_; // +225
bool added_; // +226
ActorDefinitionGroup *definitions_; // +232
std::unique_ptr<ActorDefinitionDescriptor> current_description_; // +240
std::shared_ptr<RopeSystem> leash_rope_system_; // +248
std::string unknown6_; // +264
char unknown7_[72]; // +296
std::map<HashedString, std::vector<std::vector<glm::mat4x4>>> unknown8_; // +368
SynchedActorDataEntityWrapper entity_data_; // +384
std::unique_ptr<SpatialActorNetworkData> network_data_; // +432
Vec3 sent_delta_; // +440
char unknown11_[92]; // +452
WeakRef<Dimension> dimension_; // +544
Level *level_; // +560
HashedString actor_renderer_id_; // +568
ActorCategory categories_; // +616
BuiltInActorComponents built_in_components_; // +624
// ...

public:
Expand Down

0 comments on commit bfc0044

Please sign in to comment.