local gameplay = import_package "vaststars.gameplay"
local prototype = gameplay.register.prototype

prototype "小铁制箱子I" {
    model = "/pkg/vaststars.resources/glbs/small-chest.glb/mesh.prefab",
    icon = "mem:/pkg/vaststars.resources/glbs/small-chest.glb/mesh.prefab config:s,1,3",
    check_coord = {"exclusive"},
    builder = "normal",
    type = {"building", "chest"},
    chest_type = "supply",
    area = "1x1",
}

prototype "小铁制箱子II" {
    model = "/pkg/vaststars.resources/glbs/small-chest.glb/mesh.prefab",
    icon = "mem:/pkg/vaststars.resources/glbs/small-chest.glb/mesh.prefab config:s,1,3",
    check_coord = {"exclusive"},
    builder = "normal",
    type = {"building"},
    area = "1x1",
}

prototype "大铁制箱子I" {
    model = "/pkg/vaststars.resources/glbs/small-chest.glb/mesh.prefab",
    icon = "mem:/pkg/vaststars.resources/glbs/small-chest.glb/mesh.prefab config:s,1,3",
    check_coord = {"exclusive"},
    builder = "normal",
    type = {"building"},
    area = "2x2",
}

prototype "仓库I" {
    model = "/pkg/vaststars.resources/glbs/depot/depot.gltf/mesh.prefab",
    icon = "mem:/pkg/vaststars.resources/glbs/depot/depot.gltf/mesh.prefab config:s,1,3,1.3",
    check_coord = {"exclusive"},
    builder = "normal",
    type = {"building", "chest", "depot"},
    chest_style = "depot",
    chest_type = "transit",
    area = "1x1",
    maxslot = 4,
}

prototype "无人机平台I" {
    model = "/pkg/vaststars.resources/glbs/drone-depot/drone-depot.gltf/mesh.prefab",
    icon = "mem:/pkg/vaststars.resources/glbs/drone-depot/drone-depot.gltf/mesh.prefab config:s,1,3",
    check_coord = {"exclusive"},
    builder = "normal",
    type = {"building", "airport", "consumer"},
    chest_style = "airport",
    priority = "secondary",
    power = "20kW",
    capacitance = "40kJ",
    area = "1x1",
    supply_area = "5x5",
    drone = {
        "无人机I",
    },
    -- sound = "building/drone",
}

prototype "无人机平台II" {
    model = "/pkg/vaststars.resources/glbs/drone-depot/drone-depot.gltf/mesh.prefab",
    icon = "mem:/pkg/vaststars.resources/glbs/drone-depot/drone-depot.gltf/mesh.prefab config:s,1,3",
    check_coord = {"exclusive"},
    builder = "normal",
    type = {"building", "airport", "consumer"},
    chest_style = "airport",
    priority = "secondary",
    power = "80kW",
    capacitance = "160kJ",
    area = "1x1",
    supply_area = "7x7",
    drone = {
        "无人机II",
        "无人机II",
    },
    -- sound = "building/drone",
}

prototype "无人机平台III" {
    model = "/pkg/vaststars.resources/glbs/drone-depot/drone-depot.gltf/mesh.prefab",
    icon = "mem:/pkg/vaststars.resources/glbs/drone-depot/drone-depot.gltf/mesh.prefab config:s,1,3",
    check_coord = {"exclusive"},
    builder = "normal",
    type = {"building", "airport", "consumer"},
    chest_style = "airport",
    priority = "secondary",
    power = "240kW",
    capacitance = "480kJ",
    area = "1x1",
    supply_area = "9x9",
    drone = {
        "无人机III",
        "无人机III",
        "无人机III",
        "无人机III",
    },
    -- sound = "building/drone",
}

--{ "无人机", 1 }, 表示一个无人机带一种货物1
--{ "无人机", 1 }, { "无人机", 2 },表示一个无人机带货物1，另外一个无人机带货物2
--{ "无人机", 1 }, { "无人机", 1 },表示两个无人机带货物1