Large architecture refactor of the scripting system. Previous implementation required Lua scripts to return "action tables" which were interpreted by a large and not very flexible at all if-else ladder in C++. While fine for the initial implementation, it's not scalable, and it makes it impossible for players to write their own meaningful tools.
		
			
				
	
	
		
			7 lines
		
	
	
		
			188 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			7 lines
		
	
	
		
			188 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
-- /bin/exit - Disconnects from a remote session or cloes terminal window.
 | 
						|
if is_remote_session then
 | 
						|
  return bettola.disconnect(context)
 | 
						|
else
 | 
						|
  return bettola.close_terminal(context)
 | 
						|
end
 |