- type: entity
  id: BodyBag_Container
  name: body bag
  description: A plastic bag designed for the storage and transportation of cadavers.
  components:
  - type: Item
    size: 6
  - type: Sprite
    netsync: false
    drawdepth: SmallObjects # I guess body bags need appear above a coroner's table?
    sprite: Objects/Specific/Medical/Morgue/bodybags.rsi
    layers:
    - state: bag
      map: ["enum.FoldableVisualLayers.Base"]
    - state: open_overlay
      map: ["enum.StorageVisualLayers.Door"]
    - state: label_overlay
      map: ["enum.BodyBagVisualLayers.Label"]
  - type: Icon
    sprite: Objects/Specific/Medical/Morgue/bodybags.rsi
    state: bag
  - type: Tag
    tags:
    - BodyBag
  - type: Clickable
  - type: InteractionOutline
  - type: MovedByPressure
  - type: Physics
    bodyType: Dynamic
  - type: Fixtures
    fixtures:
    - shape:
        !type:PhysShapeAabb
          bounds: "-0.25,-0.4,0.25,0.1"
      mass: 5
      mask:
      - Impassable
  - type: BodyBagEntityStorage
    CanWeldShut: false
    Capacity: 1
    IsCollidableWhenOpen: true
    closeSound:
      path: /Audio/Misc/zip.ogg
    openSound:
      path: /Audio/Misc/zip.ogg
  - type: Foldable
  - type: PaperLabel
    labelSlot:
      insertVerbText: Attach Label
      ejectVerbText: Remove Label
      whitelist:
        components:
        - Paper
  - type: Appearance
    visuals:
    - type: StorageVisualizer
      state_open: open_overlay
    - type: FoldableVisualizer
      key: bag
    - type: BodyBagVisualizer
  - type: Pullable

- type: entity
  id: BodyBag_Folded
  name: body bag
  description: A plastic bag designed for the storage and transportation of cadavers.
  parent: BodyBag_Container
  suffix: Folded
  components:
  - type: Foldable
    folded: true
#  - type: BodyBagItem #TODO: we need some kind of generic placable, like thus:
# - type: Placeable
#   prototype: someId
#   snap: Center

- type: entity
  parent: BaseItem
  id: Ash
  name: ash
  description: This used to be something, but now it's not.
  components:
  - type: Sprite
    netsync: false
    sprite: Objects/Materials/materials.rsi
    state: ash
