fix bioyond resource io

This commit is contained in:
Junhan Chang
2025-09-30 17:02:38 +08:00
parent 3fe8f4ca44
commit 1c9d2ee98a
4 changed files with 152 additions and 24 deletions

View File

@@ -36,9 +36,18 @@ class BIOYOND_PolymerReactionStation_Deck(Deck):
class BIOYOND_PolymerPreparationStation_Deck(Deck):
def __init__(self, name: str = "PolymerPreparationStation_Deck") -> None:
def __init__(
self,
name: str = "PolymerPreparationStation_Deck",
size_x: float = 2700.0,
size_y: float = 1080.0,
size_z: float = 1500.0,
category: str = "deck",
setup: bool = False
) -> None:
super().__init__(name=name, size_x=2700.0, size_y=1080.0, size_z=1500.0)
self.warehouses = {}
if setup:
self.setup()
def setup(self) -> None:
# 添加仓库

View File

@@ -99,7 +99,7 @@ class ItemizedCarrier(ResourcePLR):
raise ValueError(f"resource {resource} has no location")
if resource is not None:
self.child_locations[spot] = resource.location
self.child_size[spot] = {"width": resource.size_x, "height": resource.size_y, "depth": resource.size_z}
self.child_size[spot] = {"width": resource._size_x, "height": resource._size_y, "depth": resource._size_z}
else:
self.child_locations[spot] = Coordinate.zero()
self.child_size[spot] = {"width": 0, "height": 0, "depth": 0}