From 428922d49942d83c80e6bb619ffcb45be586ae63 Mon Sep 17 00:00:00 2001 From: Mayberry Date: Sat, 12 Oct 2024 11:50:12 -0400 Subject: [PATCH] Remove add_actor_to_entity_groups method --- .../formats/brfld.py | 15 --------------- tests/formats/test_brfld.py | 2 +- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/src/mercury_engine_data_structures/formats/brfld.py b/src/mercury_engine_data_structures/formats/brfld.py index ad217f3..4ad7bce 100644 --- a/src/mercury_engine_data_structures/formats/brfld.py +++ b/src/mercury_engine_data_structures/formats/brfld.py @@ -109,18 +109,3 @@ def add_actor_to_actor_groups( for group in collision_camera_groups: logger.debug("Add actor %s to group %s", actor_name, group) self.add_actor_to_group(group, actor_name, sublayer_name, actor_layer_name) - - def add_actor_to_entity_groups( - self, - collision_camera_name: str, - actor_name: str, - sublayer_name: str = "default", - ): - """ - adds an actor to all entity groups starting with "eg_" + collision_camera_name - - param collision_camera_name: name of the collision camera group (prefix "eg_" is added) - param actor_name: name of the actor to add to the group - param sublayer_name: name of the sublayer the actor belongs to - """ - self.add_actor_to_actor_groups(f"eg_{collision_camera_name}", actor_name, sublayer_name, ActorLayer.ENTITIES) diff --git a/tests/formats/test_brfld.py b/tests/formats/test_brfld.py index 2a2dad0..02bcbec 100644 --- a/tests/formats/test_brfld.py +++ b/tests/formats/test_brfld.py @@ -33,7 +33,7 @@ def test_dread_brfld_210(dread_tree_210, brfld_path): def test_add_actor_to_actor_groups(dread_tree_100): scenario = dread_tree_100.get_file("maps/levels/c10_samus/s010_cave/s010_cave.brfld", Brfld) - scenario.add_actor_to_entity_groups("collision_camera_000", "breakabletilegroup_000", "breakables") + scenario.add_actor_to_actor_groups("collision_camera_000", "breakabletilegroup_000", "breakables") assert scenario.is_actor_in_group("eg_collision_camera_000", "breakabletilegroup_000", "breakables") scenario.add_actor_to_actor_groups(