var buffer = require("./buffer");

/**
 * @namespace Splat
 */
module.exports = {
  makeBuffer: buffer.makeBuffer,
  flipBufferHorizontally: buffer.flipBufferHorizontally,
  flipBufferVertically: buffer.flipBufferVertically,

  ads: require("./ads"),
  AStar: require("./astar"),
  BinaryHeap: require("./binary-heap"),
  Game: require("./game"),
  iap: require("./iap"),
  Input: require("./input"),
  leaderboards: require("./leaderboards"),
  math: require("./math"),
  openUrl: require("./openUrl"),
  NinePatch: require("./ninepatch"),
  Particles: require("./particles"),
  saveData: require("./save-data"),
  Scene: require("./scene"),

  components: {
    animation: require("./components/animation"),
    camera: require("./components/camera"),
    friction: require("./components/friction"),
    image: require("./components/image"),
    movement2d: require("./components/movement-2d"),
    playableArea: require("./components/playable-area"),
    playerController2d: require("./components/player-controller-2d"),
    position: require("./components/position"),
    size: require("./components/size"),
    timers: require("./components/timers"),
    velocity: require("./components/velocity")
  }
};

var buffer = require("./buffer");

/**
 * @namespace Splat
 */
module.exports = {
  makeBuffer: buffer.makeBuffer,
  flipBufferHorizontally: buffer.flipBufferHorizontally,
  flipBufferVertically: buffer.flipBufferVertically,

  ads: require("./ads"),
  AStar: require("./astar"),
  BinaryHeap: require("./binary-heap"),
  Game: require("./game"),
  iap: require("./iap"),
  Input: require("./input"),
  leaderboards: require("./leaderboards"),
  math: require("./math"),
  openUrl: require("./openUrl"),
  NinePatch: require("./ninepatch"),
  Particles: require("./particles"),
  saveData: require("./save-data"),
  Scene: require("./scene")
};

Remove big export of components