22 lines
		
	
	
		
			476 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			476 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#pragma once
 | 
						|
 | 
						|
#include <vector>
 | 
						|
#include <string>
 | 
						|
#include <SDL3/SDL.h>
 | 
						|
 | 
						|
#include "gfx/txt_renderer.h"
 | 
						|
 | 
						|
class BootSequence {
 | 
						|
public:
 | 
						|
  BootSequence(void);
 | 
						|
  ~BootSequence(void);
 | 
						|
 | 
						|
  bool is_finished(void);
 | 
						|
  void render(TextRenderer* txt_renderer, int screen_height);
 | 
						|
private:
 | 
						|
  std::vector<std::string> _messages;
 | 
						|
  Uint32 _start_time;
 | 
						|
  Uint32 _line_interval_ms;   /* Time for each line to appear. */
 | 
						|
  Uint32 _total_duration_ms;  /* Total time for the whole sequence. */
 | 
						|
};
 |