Skip to content

Commit

Permalink
Rename ActorLink to BrfldLink and hint it in follow_link argument
Browse files Browse the repository at this point in the history
  • Loading branch information
MayberryZoom committed Oct 17, 2024
1 parent 4e90100 commit 7f3b6f7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/mercury_engine_data_structures/formats/brfld.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

logger = logging.getLogger(__name__)

ActorLink = str
BrfldLink = str


class ActorLayer(str, Enum):
Expand Down Expand Up @@ -72,7 +72,7 @@ def all_actors_in_actor_layer(
for actor_name, actor in sublayer.dctActors.items():
yield sublayer_name, actor_name, actor

def follow_link(self, link: str) -> Any | None:
def follow_link(self, link: BrfldLink) -> Any | None:
"""
Gets the object a link is referencing
Expand All @@ -86,7 +86,7 @@ def follow_link(self, link: str) -> Any | None:

def link_for_actor(
self, actor_name: str, sublayer_name: str = "default", actor_layer: ActorLayer = ActorLayer.ENTITIES
) -> ActorLink:
) -> BrfldLink:
"""
Builds a link for an actor
Expand All @@ -104,7 +104,7 @@ def actor_groups_for_actor_layer(self, actor_layer: ActorLayer = ActorLayer.ENTI
returns: each actor group in the actor layer"""
yield from self.raw.Root.pScenario[actor_layer].dctActorGroups.keys()

def get_actor_group(self, group_name: str, actor_layer: ActorLayer = ActorLayer.ENTITIES) -> list[ActorLink]:
def get_actor_group(self, group_name: str, actor_layer: ActorLayer = ActorLayer.ENTITIES) -> list[BrfldLink]:
"""
Gets an actor group
Expand Down

0 comments on commit 7f3b6f7

Please sign in to comment.