text: import DrawablesComponent    from "/scripts/ecs/comp/graph/DrawablesComponent.js"
  import DrawablesDirComponent from "/scripts/ecs/comp/graph/DrawablesDirComponent.js"
  import System                from "/scripts/ecs/sys/System.js"
  
  export default class DrawablesDirSystem extends System {
      constructor() {
          super({
              tag:      "drawables-dir",
              priority: 2,
              required: [DrawablesDirComponent]
          })
      }
  
      update(entity) {
          const [{ dir }, { drawables }] = entity.components.getAll(DrawablesDirComponent, DrawablesComponent)
  
          for (const [, drawable] of drawables)
              drawable.horizontalDir = dir
  
          return this
      }
  }
  