mirror of
				https://github.com/alicealys/t5-gsc-utils.git
				synced 2025-10-31 01:26:58 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			31 lines
		
	
	
		
			573 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			573 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #pragma once
 | |
| #include "game/game.hpp"
 | |
| 
 | |
| namespace scripting
 | |
| {
 | |
| 	class vector final
 | |
| 	{
 | |
| 	public:
 | |
| 		vector() = default;
 | |
| 		vector(const float* value);
 | |
| 		vector(const game::vec3_t& value);
 | |
| 		vector(float x, float y, float z);
 | |
| 
 | |
| 		operator game::vec3_t& ();
 | |
| 		operator const game::vec3_t& () const;
 | |
| 
 | |
| 		game::vec_t& operator[](size_t i);
 | |
| 		const game::vec_t& operator[](size_t i) const;
 | |
| 
 | |
| 		float get_x() const;
 | |
| 		float get_y() const;
 | |
| 		float get_z() const;
 | |
| 
 | |
| 		void set_x(float value);
 | |
| 		void set_y(float value);
 | |
| 		void set_z(float value);
 | |
| 
 | |
| 	private:
 | |
| 		game::vec3_t value_{ 0 };
 | |
| 	};
 | |
| } |