Skip to content

Commit

Permalink
[OoT] Refactor scene_table_c.py (#272)
Browse files Browse the repository at this point in the history
* refactor scene_table_c.py

* review 1

* fix index issues

* bugfixes and docs

* minor improvements and bugfix

* black

* fix minor issue
  • Loading branch information
Yanis42 committed Apr 22, 2024
1 parent 6ccca2b commit 5af3b49
Show file tree
Hide file tree
Showing 4 changed files with 290 additions and 252 deletions.
2 changes: 1 addition & 1 deletion fast64_internal/oot/oot_level_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def __init__(self):

class OOTScene(OOTCommonCommands):
def __init__(self, name, model):
self.name = toAlnum(name)
self.name: str = toAlnum(name)
self.write_dummy_room_list = False
self.rooms = {}
self.transitionActorList = set()
Expand Down
3 changes: 2 additions & 1 deletion fast64_internal/oot/oot_utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from mathutils import Vector
from bpy.types import Object
from bpy.utils import register_class, unregister_class
from typing import Callable
from typing import Callable, Optional
from .oot_constants import ootSceneIDToName

from ..utility import (
Expand Down Expand Up @@ -214,6 +214,7 @@ def __init__(self, isCustomExport, exportPath, customSubPath, name):
self.exportPath = exportPath
self.customSubPath = customSubPath
self.name = name
self.option: Optional[str] = None


class OOTObjectCategorizer:
Expand Down

0 comments on commit 5af3b49

Please sign in to comment.