Skip to content

Commit

Permalink
fixed ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
steven11sjf committed Oct 20, 2024
1 parent 7cf92a1 commit a34c836
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/mercury_engine_data_structures/formats/bmssd.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
from mercury_engine_data_structures.base_resource import BaseResource
from mercury_engine_data_structures.common_types import CVector3D, StrId, VersionAdapter, make_dict, make_vector
from mercury_engine_data_structures.crc import crc32, crc64
from mercury_engine_data_structures.game_check import Game

TransformStruct = Struct("position" / CVector3D, "rotation" / CVector3D, "scale" / CVector3D)

Expand Down Expand Up @@ -157,7 +156,7 @@ def obj_to_tuple(o):
for o in obj._objects:
objects[o["model_name"]].append(o)

object_order = dict()
object_order = {}
object_containers = construct.ListContainer()
i = 0
for name, objs in objects.items():
Expand All @@ -172,9 +171,9 @@ def obj_to_tuple(o):

res = construct.Container(
_version=obj._version,
scene_blocks=[blk for blk in obj._scene_blocks.values()],
scene_blocks=obj._scene_blocks.values(),
objects=object_containers,
lights=[lgt for lgt in obj._lights.values()],
lights=obj._lights.values(),
scene_groups=construct.ListContainer(),
)

Expand Down Expand Up @@ -212,7 +211,7 @@ def __new__(cls, value: int, group_name: str):

class Bmssd(BaseResource):
@classmethod
def construct_class(cls, target_game: Game) -> Construct:
def construct_class(cls, target_game: game_check.Game) -> Construct:
return BmssdAdapter(BMSSD)

def get_item(self, item_name_or_id: str | int, item_type: ItemType) -> construct.Container:
Expand Down

0 comments on commit a34c836

Please sign in to comment.