# SPDX-FileCopyrightText: 2025 CerberusWolfie <wb.johnb.willis@gmail.com>
# SPDX-FileCopyrightText: 2025 GoobBot <uristmchands@proton.me>
#
# SPDX-License-Identifier: AGPL-3.0-or-later



- type: entity
  id: AirlockSealed
  parent: Airlock
  name: sealed airlock
  description: It opens, it closes, and maybe crushes you. Now it stops little creatures too!
  suffix: DO NOT MAP
  components:
  - type: AnimationPlayer
  - type: Fixtures
    fixtures:
      fix1:
        shape:
          !type:PhysShapeAabb
          bounds: "-0.49,-0.49,0.49,0.49" # don't want this colliding with walls or they won't close
        density: 100
        mask:
        - FullTileMask
        layer:
        - WallLayer
  - type: LayerChangeOnWeld # To undo the other.
    unWeldedLayer: WallLayer
    weldedLayer: WallLayer
  - type: Construction
    graph: Airlock
    node: sealedAirlock
  - type: PaintableAirlock
    group: Standard
    department: null
  - type: Tag
    tags:
      - SealedAirlock
      # This tag is used to nagivate the Airlock construction graph. It's needed because the construction graph is shared between Airlock, AirlockGlass, Sealed Variants, and HighSecDoor

- type: entity
  id: AirlockSealedGlass
  parent: AirlockGlass
  name: sealed glass airlock
  description: It opens, it closes, and maybe crushes you. Now it stops little creatures too!
  suffix: DO NOT MAP
  components:
  - type: AnimationPlayer
  - type: Fixtures
    fixtures:
      fix1:
        shape:
          !type:PhysShapeAabb
          bounds: "-0.49,-0.49,0.49,0.49" # don't want this colliding with walls or they won't close
        density: 100
        mask:
        - FullTileMask
        layer:     #removed opaque from the layer, allowing lasers to pass through glass airlocks
        - GlassLayer
  - type: LayerChangeOnWeld # To undo the other
    unWeldedLayer: GlassLayer
    weldedLayer: GlassLayer
  - type: Construction
    graph: Airlock
    node: sealedGlassAirlock
  - type: PaintableAirlock
    group: Glass
    department: null
  - type: Tag
    tags:
      - SealedGlassAirlock
      # This tag is used to nagivate the Airlock construction graph. It's needed because the construction graph is shared between Airlock, AirlockGlass, and HighSecDoor
