Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix AE2 types #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/components/abstracts/CommonNetworkAPI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function CommonNetworkAPI.getCpus() end


---Get a list of known item recipes. These can be used to issue crafting requests.
---@return AECraftable
---@return AECraftable[]
function CommonNetworkAPI.getCraftables(filter) end


Expand All @@ -74,7 +74,7 @@ function CommonNetworkAPI.getAvgPowerUsage() end
function CommonNetworkAPI.getMaxStoredPower() end


---Get the stored power in the network.
---Get the stored power in the network.
---@return number
function CommonNetworkAPI.getStoredPower() end

Expand Down
4 changes: 2 additions & 2 deletions docs/type_definitions/ae_types/AECraftable.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
local AECraftable = {}

---Sends a craft request to the ME system for this pattern
---@param amount string # The amount of items to craft
---@param amount number # The amount of items to craft
---@param prioritizePower boolean # Wether to prioririze power usage idk needs more digging?
---@param cpuName string # the name of the cpu to start the craft in
---@return AECraftingJob # A tracker for the craft
---@return AECraftingJob # A tracker for the craft
function AECraftable.request(amount, prioritizePower, cpuName) end


Expand Down
1 change: 0 additions & 1 deletion docs/type_definitions/ae_types/AECraftingJob.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
--#region AECraftingJob

---@class AECraftingJob
---@class type "userdata"
local AECraftingJob = {}


Expand Down