mirror of
				https://github.com/sammy-ette/Hilbish
				synced 2025-08-10 02:52:03 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			473 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			473 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
--- @meta
 | 
						|
 | 
						|
local bait = {}
 | 
						|
 | 
						|
--- Catches a hook with `name`. Runs the `cb` when it is thrown
 | 
						|
--- @param name string
 | 
						|
--- @param cb function
 | 
						|
function bait.catch(name, cb) end
 | 
						|
 | 
						|
--- Same as catch, but only runs the `cb` once and then removes the hook
 | 
						|
--- @param name string
 | 
						|
--- @param cb function
 | 
						|
function bait.catchOnce(name, cb) end
 | 
						|
 | 
						|
--- Throws a hook with `name` with the provided `args`
 | 
						|
--- @param name string
 | 
						|
--- @vararg any
 | 
						|
function bait.throw(name, ...) end
 | 
						|
 | 
						|
return bait
 |