Events: remove ProcessingStationEvents
This commit is contained in:
@@ -1,22 +0,0 @@
|
|||||||
---@alias Events.ProcessingStationEvents.EventName 'on_push_container'
|
|
||||||
|
|
||||||
---@alias Events.ProcessingStationEvents.Callback fun(eventName:Events.ProcessingStationEvents.EventName, ...)
|
|
||||||
|
|
||||||
---@class Events.ProcessingStationEvents : Events
|
|
||||||
---@field subscribe fun(self:Events.ProcessingStationEvents,eventName:Events.ProcessingStationEvents.EventName, callback:Events.ProcessingStationEvents.Callback)
|
|
||||||
---@field call fun(self:Events.ProcessingStationEvents,eventName:Events.ProcessingStationEvents.EventName, ...)
|
|
||||||
local ProcessingStationEvents = Events:extend()
|
|
||||||
|
|
||||||
---@param callback fun(eventName:Events.ProcessingStationEvents.EventName, pos:MapVector, fuelGroup:string, remainingFuel:number)
|
|
||||||
function ProcessingStationEvents:subscribeOnPushContainer(callback)
|
|
||||||
self:subscribe('on_push_container', callback)
|
|
||||||
end
|
|
||||||
|
|
||||||
---@param pos MapVector
|
|
||||||
---@param fuelGroup string
|
|
||||||
---@param remainingFuel number
|
|
||||||
function ProcessingStationEvents:callOnPushContainer(pos, fuelGroup, remainingFuel)
|
|
||||||
self:call('on_push_container', pos, fuelGroup, remainingFuel)
|
|
||||||
end
|
|
||||||
|
|
||||||
return ProcessingStationEvents
|
|
||||||
Reference in New Issue
Block a user