local drawableSprite = require("structs.drawable_sprite")
local utils = require("utils")
local aelperLib = require("mods").requireFromPlugin("libraries.aelper_lib")

local entity = {}

entity.name = aelperLib.register_template_name("auspicioushelper/TemplateCloud")
entity.depth = -13000

entity.placements = {
  {
    name = "Template Cloud",
    data = {
      template = "",
      depthoffset=0,
      fragile = true,
      respawnTime = "2.5",
      cloudDir = "0,1",
      fromRiding = true,
      noDoubleBoost = true,
      followGravity=true,
      sideCoyote=false,
    }
  }
}
entity.fieldOrder = {
  "x","y", "template","depthoffset"
}
entity.fieldInformation = function(entity)
    return {
        template = {
            options = aelperLib.get_template_options(entity)
        }
    }
end

entity.selection = aelperLib.template_selection
entity.draw = aelperLib.get_entity_draw("tcloud")

return entity