- type: entity
  parent: [ BaseStructure, StructureHealthDoorWeak ]
  id: WindoorAssembly
  name: windoor assembly
  description: It opens, it closes, and you can see through it!
  placement:
    mode: SnapgridCenter
  components:
  - type: InteractionOutline
  - type: Sprite
    sprite: Structures/Doors/Windoors/windoor.rsi
    layers:
    - state: assembly
  - type: Physics
  - type: Fixtures
    fixtures:
      fix1:
        shape:
          !type:PhysShapeAabb
          bounds: "-0.49,-0.49,0.49,-0.2"
        density: 40
        mask:
        - Impassable
        - HighImpassable
  - type: Anchorable
  - type: Pullable
  - type: Rotatable
  - type: RCDDeconstructable
    cost: 6
    delay: 8
    fx: EffectRCDDeconstruct8
  - type: Damageable
    damageModifierSet: SteelMod
  - type: Destructible
    thresholds:
    - trigger: &DamageDoorWeak
        !type:DamageTrigger
        damage: 100
      behaviors:
      - !type:SpawnEntitiesBehavior
        spawn:
          SheetSteel1: &BaseWindoorDrop
            min: 1
            max: 2
  - type: Construction
    graph: Windoor
    node: assembly

#plasma windoor assemblies
- type: entity
  parent: WindoorAssembly
  id: WindoorAssemblyPlasma
  name: plasma windoor assembly
  description: It opens, it closes, and you can see through it! This one looks purp-, no, pink. Wait...
  components:
  - type: Sprite
    sprite: Structures/Doors/Windoors/plasma.rsi
    layers:
    - state: assembly
  - type: Destructible
    thresholds:
    - trigger: *DamageDoorWeak
      behaviors:
      - !type:SpawnEntitiesBehavior
        spawn:
          SheetPGlass1: *BaseWindoorDrop
  - type: Construction
    graph: Windoor
    node: pglass

#uranium windoor assemblies
- type: entity
  parent: WindoorAssembly
  id: WindoorAssemblyUranium
  name: uranium windoor assembly
  description: It opens, it closes, and you can see through it! This one looks sickly green...
  components:
  - type: Sprite
    sprite: Structures/Doors/Windoors/uranium.rsi
    layers:
    - state: assembly
  - type: Destructible
    thresholds:
    - trigger: *DamageDoorWeak
      behaviors:
      - !type:SpawnEntitiesBehavior
        spawn:
          SheetUGlass1: *BaseWindoorDrop
  - type: Construction
    graph: Windoor
    node: uglass
