Skip to content

Commit

Permalink
Remove add_actor_to_entity_groups method
Browse files Browse the repository at this point in the history
  • Loading branch information
MayberryZoom committed Oct 12, 2024
1 parent 0ac279c commit 428922d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
15 changes: 0 additions & 15 deletions src/mercury_engine_data_structures/formats/brfld.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion tests/formats/test_brfld.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 428922d

Please sign in to comment.