landsandboat/scripts/specs/test/CClientEntityPairEvents.lua
sruon 6b4ef12dca xi_test: LSB test framework
Co-Authored-By: KnowOne134 <35616771+KnowOne134@users.noreply.github.com>
Co-Authored-By: InoUno <774909+InoUno@users.noreply.github.com>
Co-Authored-By: Corey <2593549+cocosolos@users.noreply.github.com>
2025-09-06 00:03:15 -06:00

35 lines
1 KiB
Lua

---@meta
-- luacheck: ignore 241
---@class CClientEntityPairEvents
local CClientEntityPairEvents = {}
---Finish the current event
---@param eventId? integer Event ID (uses current event if not provided)
---@param option? integer Finish option value
---@return nil
function CClientEntityPairEvents:finish(eventId, option)
end
---Send an update to the current event
---@param eventId? integer Event ID (uses current event if not provided)
---@param option? integer Update option value
---@return nil
function CClientEntityPairEvents:update(eventId, option)
end
---Assert that the client is not currently in an event
---@return nil
function CClientEntityPairEvents:expectNotInEvent()
end
---@class ExpectedEvent
---@field eventId? integer Event ID to expect
---@field updates? integer[] Array of update option values
---@field finishOption? integer Option value for finishing the event
---Process an expected event with updates and finish
---@param expectedEvent ExpectedEvent Event configuration
---@return nil
function CClientEntityPairEvents:expect(expectedEvent)
end