# Окно
- type: entity
  id: BaseScpWindowDirectional
  parent: ScpBaseStructureDamageOnSpawnLow
  abstract: true
  components:
  - type: Sprite
    drawdepth: Mobs
    sprite: _Scp/Structures/Windows/directional.rsi
  - type: Icon
    sprite: _Scp/Structures/Windows/directional.rsi
  - type: SpriteFade
  - type: DamageVisuals
    damageOverlay:
      sprite: _Scp/Effects/DamageOverlay/cracks_directional.rsi

- type: entity
  id: BaseScpWindowDirectionalCorner
  parent: BaseScpWindowDirectional
  abstract: true
  components:
  - type: Sprite
    drawdepth: Mobs
    sprite: _Scp/Structures/Windows/directional_corner.rsi
  - type: Icon
    sprite: _Scp/Structures/Windows/directional_corner.rsi
  - type: Fixtures
    fixtures:
      fix1:
        shape:
          !type:PhysShapeAabb
          bounds: "-0.5,-0.5,0.5,-0.28125"
        density: 1000
        mask:
        - FullTileMask
        layer:
        - GlassLayer
      fix2:
        shape:
          !type:PhysShapeAabb
          bounds: "0.5,0.5,0.28125,-0.5"
        density: 1000
        mask:
        - FullTileMask
        layer:
        - GlassLayer
  - type: Airtight
    noAirWhenFullyAirBlocked: false
    airBlockedDirection:
    - South
    - East

- type: entity
  id: BaseScpWindowDirectionalRound
  parent: BaseScpWindowDirectional
  abstract: true
  components:
  - type: Sprite
    sprite: _Scp/Structures/Windows/directional_round.rsi
  - type: Icon
    sprite: _Scp/Structures/Windows/directional_round.rsi
  - type: Fixtures
    fixtures:
      fix1:
        shape:
          !type:PhysShapeAabb
          bounds: "-0.5,-0.5,0.5,-0.38125"
        density: 1000
        mask:
        - FullTileMask
        layer:
        - GlassLayer
      fix2:
        shape:
          !type:PhysShapeAabb
          bounds: "-0.5,-0.5,-0.38125,0.5"
        density: 1000
        mask:
        - FullTileMask
        layer:
        - GlassLayer
      fix3:
        shape:
          !type:PhysShapeAabb
          bounds: "0.38125,-0.5,0.5,0.5"
        density: 1000
        mask:
        - FullTileMask
        layer:
        - GlassLayer
  - type: Airtight
    noAirWhenFullyAirBlocked: false
    airBlockedDirection:
    - South
    - East
    - West

- type: entity
  parent:
   - Window
   - ScpBaseStructureDamageOnSpawnLow
  id: ScpWindow
  components:
  - type: Sprite
    sprite: _Scp/Structures/Windows/window.rsi
  - type: Icon
    sprite: _Scp/Structures/Windows/window.rsi
  - type: DamageVisuals
    supportIconSmooth: true
    damageOverlay:
      sprite: _Scp/Effects/DamageOverlay/cracks_smooth.rsi

- type: entity
  id: ScpWindowDirectional
  parent:
  - BaseScpWindowDirectional
  - WindowDirectional
  placement:
    mode: SnapgridCenter
    snap:
    - Window
  components:
  - type: Sprite
    state: window
  - type: Icon
    state: window

- type: entity
  id: ScpWindowDirectionalCorner
  parent:
  - BaseScpWindowDirectionalCorner
  - WindowDirectional
  placement:
    mode: SnapgridCenter
    snap:
    - Window
  components:
  - type: Sprite
    state: window
  - type: Icon
    state: window

- type: entity
  id: ScpWindowDirectionalRound
  parent:
  - BaseScpWindowDirectionalRound
  - WindowDirectional
  placement:
    mode: SnapgridCenter
    snap:
    - Window
  components:
  - type: Sprite
    drawdepth: Mobs
    state: window
  - type: Icon
    state: window

- type: entity
  parent:
  - Window
  - ScpBaseStructureDamageOnSpawnLow
  id: ScpWindowDiagonal
  suffix: SCP diagonal
  placement:
    mode: SnapgridCenter
    snap:
    - Window
  components:
  - type: Sprite
    drawdepth: WallTops
    sprite: _Scp/Structures/Windows/window_diagonal.rsi
    state: state0
  - type: Tag
    tags:
    - Diagonal
  - type: IconSmooth
    mode: Diagonal
    key: walls
    base: state
  - type: Icon
    sprite: _Scp/Structures/Windows/window_diagonal.rsi
    state: state0
  - type: Fixtures
    fixtures:
      fix1:
        shape:
          !type:PolygonShape
            vertices:
            - "-0.5,-0.5"
            - "0.5,0.5"
            - "0.5,-0.5"
        mask:
        - FullTileMask
        layer:
        - GlassLayer
  - type: Airtight
    noAirWhenFullyAirBlocked: false
    airBlockedDirection:
    - South
    - East
  - type: DamageVisuals
    damageOverlay:
      sprite: _Scp/Effects/DamageOverlay/cracks_diagonal.rsi
  - type: Construction
    graph: WindowDiagonal
    node: windowDiagonal

- type: entity
  parent:
  - ReinforcedWindow
  - ScpBaseStructureDamageOnSpawnLow
  id: ScpReinforcedWindow
  components:
  - type: Sprite
    sprite: _Scp/Structures/Windows/reinforced_window.rsi
  - type: Icon
    sprite: _Scp/Structures/Windows/reinforced_window.rsi
  - type: DamageVisuals
    supportIconSmooth: true
    damageOverlay:
      sprite: _Scp/Effects/DamageOverlay/cracks_smooth.rsi

- type: entity
  id: ScpWindowReinforcedDirectional
  parent:
  - BaseScpWindowDirectional
  - WindowReinforcedDirectional
  placement:
    mode: SnapgridCenter
    snap:
    - Window
  components:
  - type: Sprite
    state: reinforced_window
  - type: Icon
    state: reinforced_window
  - type: DamageVisuals
    damageOverlay:
      sprite: _Scp/Effects/DamageOverlay/cracks_directional.rsi

- type: entity
  id: ScpWindowReinforcedDirectionalCorner
  parent:
  - BaseScpWindowDirectionalCorner
  - WindowReinforcedDirectional
  placement:
    mode: SnapgridCenter
    snap:
    - Window
  components:
  - type: Sprite
    state: reinforced_window
  - type: Icon
    state: reinforced_window
  - type: DamageVisuals
    damageOverlay:
      sprite: _Scp/Effects/DamageOverlay/cracks_directional.rsi

- type: entity
  id: ScpWindowReinforcedDirectionalRound
  parent:
  - BaseScpWindowDirectionalRound
  - WindowReinforcedDirectional
  placement:
    mode: SnapgridCenter
    snap:
    - Window
  components:
  - type: Sprite
    state: reinforced_window
  - type: Icon
    state: reinforced_window
  - type: DamageVisuals
    damageOverlay:
      sprite: _Scp/Effects/DamageOverlay/cracks_directional.rsi

- type: entity
  parent:
  - ReinforcedWindow
  - ScpBaseStructureDamageOnSpawnLow
  id: ScpReinforcedWindowDiagonal
  suffix: SCP diagonal
  placement:
    mode: SnapgridCenter
    snap:
    - Window
  components:
  - type: Sprite
    drawdepth: WallTops
    sprite: _Scp/Structures/Windows/reinforced_window_diagonal.rsi
    state: state0
  - type: Tag
    tags:
    - Diagonal
  - type: IconSmooth
    mode: Diagonal
    key: walls
    base: state
  - type: Icon
    sprite: _Scp/Structures/Windows/reinforced_window_diagonal.rsi
    state: state0
  - type: Fixtures
    fixtures:
      fix1:
        shape:
          !type:PolygonShape
            vertices:
            - "-0.5,-0.5"
            - "0.5,0.5"
            - "0.5,-0.5"
        mask:
        - FullTileMask
        layer:
        - GlassLayer
  - type: Airtight
    noAirWhenFullyAirBlocked: false
    airBlockedDirection:
    - South
    - East
  - type: DamageVisuals
    damageOverlay:
      sprite: _Scp/Effects/DamageOverlay/cracks_diagonal.rsi
  - type: Construction
    graph: WindowDiagonal
    node: reinforcedWindowDiagonal

# Плазменное окно
- type: entity
  parent:
  - PlasmaWindow
  - ScpBaseStructureDamageOnSpawnLow
  id: ScpPlasmaWindow
  name: window
  components:
  - type: Sprite
    sprite: _Scp/Structures/Windows/plasma_window.rsi
  - type: Icon
    sprite: _Scp/Structures/Windows/plasma_window.rsi
  - type: DamageVisuals
    supportIconSmooth: true
    damageOverlay:
      sprite: _Scp/Effects/DamageOverlay/cracks_smooth.rsi

- type: entity
  id: ScpPlasmaWindowDirectional
  parent:
  - BaseScpWindowDirectional
  - PlasmaWindowDirectional
  placement:
    mode: SnapgridCenter
    snap:
    - Window
  components:
  - type: Sprite
    state: plasma_window
  - type: Icon
    state: plasma_window
  - type: DamageVisuals
    damageOverlay:
      sprite: _Scp/Effects/DamageOverlay/cracks_directional.rsi

- type: entity
  id: ScpPlasmaWindowDirectionalCorner
  parent:
  - BaseScpWindowDirectionalCorner
  - PlasmaWindowDirectional
  placement:
    mode: SnapgridCenter
    snap:
    - Window
  components:
  - type: Sprite
    state: plasma_window
  - type: Icon
    state: plasma_window
  - type: DamageVisuals
    damageOverlay:
      sprite: _Scp/Effects/DamageOverlay/cracks_directional.rsi

- type: entity
  id: ScpPlasmaWindowDirectionalRound
  parent:
  - BaseScpWindowDirectionalRound
  - PlasmaWindowDirectional
  placement:
    mode: SnapgridCenter
    snap:
    - Window
  components:
  - type: Sprite
    state: plasma_window
  - type: Icon
    state: plasma_window
  - type: DamageVisuals
    damageOverlay:
      sprite: _Scp/Effects/DamageOverlay/cracks_directional.rsi

- type: entity
  parent:
  - PlasmaWindow
  - ScpBaseStructureDamageOnSpawnLow
  id: ScpPlasmaWindowDiagonal
  suffix: SCP diagonal
  placement:
    mode: SnapgridCenter
    snap:
    - Window
  components:
  - type: Sprite
    drawdepth: WallTops
    sprite: _Scp/Structures/Windows/plasma_diagonal.rsi
    state: state0
  - type: Tag
    tags:
    - Diagonal
  - type: IconSmooth
    mode: Diagonal
    key: walls
    base: state
  - type: Icon
    sprite: _Scp/Structures/Windows/plasma_diagonal.rsi
    state: state0
  - type: Fixtures
    fixtures:
      fix1:
        shape:
          !type:PolygonShape
            vertices:
            - "-0.5,-0.5"
            - "0.5,0.5"
            - "0.5,-0.5"
        mask:
        - FullTileMask
        layer:
        - GlassLayer
  - type: Airtight
    noAirWhenFullyAirBlocked: false
    airBlockedDirection:
    - South
    - East
  - type: DamageVisuals
    damageOverlay:
      sprite: _Scp/Effects/DamageOverlay/cracks_diagonal.rsi
  - type: Construction
    graph: WindowDiagonal
    node: plasmaWindowDiagonal

- type: entity
  parent:
  - ReinforcedPlasmaWindow
  - ScpBaseStructureDamageOnSpawnLow
  id: ScpReinforcedPlasmaWindow
  components:
  - type: Sprite
    sprite: _Scp/Structures/Windows/reinforced_plasma_window.rsi
  - type: Icon
    sprite: _Scp/Structures/Windows/reinforced_plasma_window.rsi
  - type: DamageVisuals
    supportIconSmooth: true
    damageOverlay:
      sprite: _Scp/Effects/DamageOverlay/cracks_smooth.rsi

- type: entity
  id: ScpPlasmaReinforcedWindowDirectional
  parent:
  - BaseScpWindowDirectional
  - PlasmaReinforcedWindowDirectional
  placement:
    mode: SnapgridCenter
    snap:
    - Window
  components:
  - type: Sprite
    state: plasma_reinforced_window
  - type: Icon
    state: plasma_reinforced_window
  - type: DamageVisuals
    damageOverlay:
      sprite: _Scp/Effects/DamageOverlay/cracks_directional.rsi

- type: entity
  id: ScpPlasmaReinforcedWindowDirectionalCorner
  parent:
  - BaseScpWindowDirectionalCorner
  - PlasmaReinforcedWindowDirectional
  placement:
    mode: SnapgridCenter
    snap:
    - Window
  components:
  - type: Sprite
    state: plasma_reinforced_window
  - type: Icon
    state: plasma_reinforced_window
  - type: DamageVisuals
    damageOverlay:
      sprite: _Scp/Effects/DamageOverlay/cracks_directional.rsi

- type: entity
  id: ScpPlasmaReinforcedWindowDirectionalRound
  parent:
  - BaseScpWindowDirectionalRound
  - PlasmaReinforcedWindowDirectional
  placement:
    mode: SnapgridCenter
    snap:
    - Window
  components:
  - type: Sprite
    state: plasma_reinforced_window
  - type: Icon
    state: plasma_reinforced_window
  - type: DamageVisuals
    damageOverlay:
      sprite: _Scp/Effects/DamageOverlay/cracks_directional.rsi

- type: entity
  parent:
  - ReinforcedPlasmaWindow
  - ScpBaseStructureDamageOnSpawnLow
  id: ScpReinforcedPlasmaWindowDiagonal
  suffix: SCP diagonal
  placement:
    mode: SnapgridCenter
    snap:
    - Window
  components:
  - type: Sprite
    drawdepth: WallTops
    sprite: _Scp/Structures/Windows/reinforced_plasma_diagonal.rsi
    state: state0
  - type: Tag
    tags:
    - Diagonal
  - type: IconSmooth
    mode: Diagonal
    key: walls
    base: state
  - type: Icon
    sprite: _Scp/Structures/Windows/reinforced_plasma_diagonal.rsi
    state: state0
  - type: Fixtures
    fixtures:
      fix1:
        shape:
          !type:PolygonShape
            vertices:
            - "-0.5,-0.5"
            - "0.5,0.5"
            - "0.5,-0.5"
        mask:
        - FullTileMask
        layer:
        - GlassLayer
  - type: Airtight
    noAirWhenFullyAirBlocked: false
    airBlockedDirection:
    - South
    - East
  - type: DamageVisuals
    damageOverlay:
      sprite: _Scp/Effects/DamageOverlay/cracks_diagonal.rsi
  - type: Construction
    graph: WindowDiagonal
    node: reinforcedPlasmaWindowDiagonal

# Урановое окно
- type: entity
  parent:
  - UraniumWindow
  - ScpBaseStructureDamageOnSpawnLow
  id: ScpUraniumWindow
  components:
  - type: Sprite
    sprite: _Scp/Structures/Windows/uranium_window.rsi
  - type: Icon
    sprite: _Scp/Structures/Windows/uranium_window.rsi
  - type: DamageVisuals
    supportIconSmooth: true
    damageOverlay:
      sprite: _Scp/Effects/DamageOverlay/cracks_smooth.rsi

- type: entity
  id: ScpUraniumWindowDirectional
  parent:
  - BaseScpWindowDirectional
  - UraniumWindowDirectional
  placement:
    mode: SnapgridCenter
    snap:
    - Window
  components:
  - type: Sprite
    state: uranium_window
  - type: Icon
    state: uranium_window
  - type: DamageVisuals
    damageOverlay:
      sprite: _Scp/Effects/DamageOverlay/cracks_directional.rsi

- type: entity
  id: ScpUraniumWindowDirectionalCorner
  parent:
  - BaseScpWindowDirectionalCorner
  - UraniumWindowDirectional
  placement:
    mode: SnapgridCenter
    snap:
    - Window
  components:
  - type: Sprite
    state: uranium_window
  - type: Icon
    state: uranium_window
  - type: DamageVisuals
    damageOverlay:
      sprite: _Scp/Effects/DamageOverlay/cracks_directional.rsi

- type: entity
  id: ScpUraniumWindowDirectionalRound
  parent:
  - BaseScpWindowDirectionalRound
  - UraniumWindowDirectional
  placement:
    mode: SnapgridCenter
    snap:
    - Window
  components:
  - type: Sprite
    state: uranium_window
  - type: Icon
    state: uranium_window
  - type: DamageVisuals
    damageOverlay:
      sprite: _Scp/Effects/DamageOverlay/cracks_directional.rsi

- type: entity
  parent:
  - UraniumWindow
  - ScpBaseStructureDamageOnSpawnLow
  id: ScpUraniumWindowDiagonal
  suffix: SCP diagonal
  placement:
    mode: SnapgridCenter
    snap:
    - Window
  components:
  - type: Sprite
    drawdepth: WallTops
    sprite: _Scp/Structures/Windows/uranium_window_diagonal.rsi
    state: state0
  - type: Tag
    tags:
    - Diagonal
  - type: IconSmooth
    mode: Diagonal
    key: walls
    base: state
  - type: Icon
    sprite: _Scp/Structures/Windows/uranium_window_diagonal.rsi
    state: state0
  - type: Fixtures
    fixtures:
      fix1:
        shape:
          !type:PolygonShape
            vertices:
            - "-0.5,-0.5"
            - "0.5,0.5"
            - "0.5,-0.5"
        mask:
        - FullTileMask
        layer:
        - GlassLayer
  - type: Airtight
    noAirWhenFullyAirBlocked: false
    airBlockedDirection:
    - South
    - East
  - type: DamageVisuals
    damageOverlay:
      sprite: _Scp/Effects/DamageOverlay/cracks_diagonal.rsi
  - type: Construction
    graph: WindowDiagonal
    node: uraniumWindowDiagonal

- type: entity
  parent:
  - ReinforcedUraniumWindow
  - ScpBaseStructureDamageOnSpawnLow
  id: ScpReinforcedUraniumWindow
  components:
  - type: Sprite
    sprite: _Scp/Structures/Windows/reinforced_uranium_window.rsi
  - type: Icon
    sprite: _Scp/Structures/Windows/reinforced_uranium_window.rsi
  - type: DamageVisuals
    supportIconSmooth: true
    damageOverlay:
      sprite: _Scp/Effects/DamageOverlay/cracks_smooth.rsi

- type: entity
  id: ScpUraniumReinforcedWindowDirectional
  parent:
  - BaseScpWindowDirectional
  - UraniumReinforcedWindowDirectional
  placement:
    mode: SnapgridCenter
    snap:
    - Window
  components:
  - type: Sprite
    state: uranium_reinforced_window
  - type: Icon
    state: uranium_reinforced_window
  - type: DamageVisuals
    damageOverlay:
      sprite: _Scp/Effects/DamageOverlay/cracks_directional.rsi

- type: entity
  id: ScpUraniumReinforcedWindowDirectionalCorner
  parent:
  - BaseScpWindowDirectionalCorner
  - UraniumReinforcedWindowDirectional
  placement:
    mode: SnapgridCenter
    snap:
    - Window
  components:
  - type: Sprite
    state: uranium_reinforced_window
  - type: Icon
    state: uranium_reinforced_window
  - type: DamageVisuals
    damageOverlay:
      sprite: _Scp/Effects/DamageOverlay/cracks_directional.rsi

- type: entity
  id: ScpUraniumReinforcedWindowDirectionalRound
  parent:
  - BaseScpWindowDirectionalRound
  - UraniumReinforcedWindowDirectional
  placement:
    mode: SnapgridCenter
    snap:
    - Window
  components:
  - type: Sprite
    state: uranium_reinforced_window
  - type: Icon
    state: uranium_reinforced_window
  - type: DamageVisuals
    damageOverlay:
      sprite: _Scp/Effects/DamageOverlay/cracks_directional.rsi

- type: entity
  parent:
  - ReinforcedUraniumWindow
  - ScpBaseStructureDamageOnSpawnLow
  id: ScpReinforcedUraniumWindowDiagonal
  suffix: SCP diagonal
  placement:
    mode: SnapgridCenter
    snap:
    - Window
  components:
  - type: Sprite
    drawdepth: WallTops
    sprite: _Scp/Structures/Windows/reinforced_uranium_diagonal.rsi
    state: state0
  - type: Tag
    tags:
    - Diagonal
  - type: IconSmooth
    mode: Diagonal
    key: walls
    base: state
  - type: Icon
    sprite: _Scp/Structures/Windows/reinforced_uranium_diagonal.rsi
    state: state0
  - type: Fixtures
    fixtures:
      fix1:
        shape:
          !type:PolygonShape
            vertices:
            - "-0.5,-0.5"
            - "0.5,0.5"
            - "0.5,-0.5"
        mask:
        - FullTileMask
        layer:
        - GlassLayer
  - type: Airtight
    noAirWhenFullyAirBlocked: false
    airBlockedDirection:
    - South
    - East
  - type: DamageVisuals
    damageOverlay:
      sprite: _Scp/Effects/DamageOverlay/cracks_diagonal.rsi
  - type: Construction
    graph: WindowDiagonal
    node: reinforcedUraniumWindowDiagonal

# Тонированное окно
- type: entity
  parent:
  - TintedWindow
  - ScpBaseStructureDamageOnSpawnLow
  id: ScpTintedWindow
  components:
  - type: Sprite
    sprite: _Scp/Structures/Windows/tinted_window.rsi
  - type: Icon
    sprite: _Scp/Structures/Windows/tinted_window.rsi
  - type: DamageVisuals
    supportIconSmooth: true
    damageOverlay:
      sprite: _Scp/Effects/DamageOverlay/cracks_smooth.rsi
