<Items>
  <Item
    name="Door"
    linkable="true"
    pickdistance="150.0">

    <Sprite texture ="door.png" sourcerect="0,0,48,208" depth="0.8" origin="0.5,0.5"/>

    <Door>
      <Sprite texture ="door.png" sourcerect="80,0,19,208" depth="0.0" origin="0.5,0.0"/>
    </Door>

    <AiTarget sightrange="5000.0"/>
  
    <ConnectionPanel canbeselected = "true" msg="Rewire [Screwdriver]">
      <requireditem name="Screwdriver" type="Equipped"/>
      <input name="toggle"/>
      <input name="set_state"/>
      <output name="state_out"/>
    </ConnectionPanel>

  </Item>

  <Item
    name="Windowed Door"
    linkable="true"
    pickdistance="150.0">

    <Sprite texture ="door.png" sourcerect="0,0,48,208" depth="0.8" origin="0.5,0.5"/>

    <Door window="0,-18,10,89">
      <Sprite texture ="door.png" sourcerect="56,0,19,208" depth="0.0" origin="0.5,0.0"/>
    </Door>

    <AiTarget sightrange="5000.0"/>

    <ConnectionPanel canbeselected = "true" msg="Rewire [Screwdriver]">
      <requireditem name="Screwdriver" type="Equipped"/>
      <input name="toggle"/>
      <input name="set_state"/>
      <output name="state_out"/>
    </ConnectionPanel>

  </Item>
</Items>