Skip to content

Commit

Permalink
chore: prototype annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
fgardt committed Oct 26, 2023
1 parent 6d71e43 commit 2c44b4a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 6 additions & 0 deletions prototypes/deployer.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
local graphics_path = "__vehicle-deployer__/graphics/"

-- icon
---@type data.IconData
local deployer_icon = {
icon = graphics_path .. "icon/vehicle-deployer.png",
icon_mipmaps = 4,
Expand All @@ -9,6 +10,8 @@ local deployer_icon = {

-- entity
local entity_graphics_path = graphics_path .. "entity/vehicle-deployer/"

---@type data.FurnacePrototype
local entity = {
type = "furnace",
name = "VD_vehicle-deployer",
Expand Down Expand Up @@ -244,6 +247,7 @@ local entity = {
}

-- item
---@type data.ItemPrototype
local item = {
type = "item",
name = "VD_vehicle-deployer",
Expand All @@ -258,6 +262,7 @@ local item = {
}

-- recipe
---@type data.RecipePrototype
local recipe = {
type = "recipe",
name = "VD_vehicle-deployer",
Expand All @@ -273,6 +278,7 @@ local recipe = {
}

-- technology
---@type data.TechnologyPrototype
local technology = {
type = "technology",
name = "VD_vehicle-deployer",
Expand Down
7 changes: 5 additions & 2 deletions prototypes/vehicle-recipes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
data:extend({ {
type = "recipe-category",
name = "VD_vehicle-deployment"
} })
} --[[@as data.RecipeCategory]]
})

-- get all vehicles to make recipes for
---@type data.VehiclePrototype[]
local vehicles = {}

-- car vehicles
Expand Down Expand Up @@ -56,7 +58,8 @@ for name, vehicle in pairs(vehicles) do
allow_inserter_overload = false,
overload_multiplier = 1,
order = "z[vehicle-deployer-" .. name .. "-" .. item.name .. "]"
} })
} --[[@as data.RecipePrototype]]
})
end

::continue::
Expand Down

0 comments on commit 2c44b4a

Please sign in to comment.