Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 22, 2024
1 parent 1d10685 commit 1fc067c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/mercury_engine_data_structures/formats/bmscc.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,21 @@ def get_data(self, entry_idx: int = 0) -> Container:
return self.raw.layers[0].entries[entry_idx].data

"""Returns all data associated with a poly (points, boundings)"""

def get_poly(self, entry_idx: int = 0, poly_idx: int = 0) -> Container:
return self.get_data(entry_idx).polys[poly_idx]

"""Returns a specific point in a poly"""

def get_point(self, entry_idx: int = 0, poly_idx: int = 0, point_idx: int = 0) -> Container:
return self.get_poly(entry_idx, poly_idx).points[point_idx]

"""Returns the total boundary of collision/collision_camera"""

def get_total_boundings(self, entry_idx: int = 0) -> Container:
return self.get_data(entry_idx).total_boundings

"""Returns the boundary of a poly"""

def get_poly_boundings(self, entry_idx: int = 0, poly_idx: int = 0) -> Container:
return self.get_poly(entry_idx, poly_idx).boundings

0 comments on commit 1fc067c

Please sign in to comment.