mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 02:50:04 +00:00 
			
		
		
		
	Contour vectors
This commit is contained in:
		
							parent
							
								
									96cd27adcb
								
							
						
					
					
						commit
						e505edf156
					
				
					 8 changed files with 515 additions and 16 deletions
				
			
		|  | @ -0,0 +1,44 @@ | |||
| #pragma once | ||||
| 
 | ||||
| #include <scwx/wsr88d/rpg/packet.hpp> | ||||
| 
 | ||||
| #include <cstdint> | ||||
| #include <memory> | ||||
| 
 | ||||
| namespace scwx | ||||
| { | ||||
| namespace wsr88d | ||||
| { | ||||
| namespace rpg | ||||
| { | ||||
| 
 | ||||
| class LinkedContourVectorPacketImpl; | ||||
| 
 | ||||
| class LinkedContourVectorPacket : public Packet | ||||
| { | ||||
| public: | ||||
|    explicit LinkedContourVectorPacket(); | ||||
|    ~LinkedContourVectorPacket(); | ||||
| 
 | ||||
|    LinkedContourVectorPacket(const LinkedContourVectorPacket&) = delete; | ||||
|    LinkedContourVectorPacket& | ||||
|    operator=(const LinkedContourVectorPacket&) = delete; | ||||
| 
 | ||||
|    LinkedContourVectorPacket(LinkedContourVectorPacket&&) noexcept; | ||||
|    LinkedContourVectorPacket& operator=(LinkedContourVectorPacket&&) noexcept; | ||||
| 
 | ||||
|    uint16_t packet_code() const; | ||||
|    uint16_t initial_point_indicator() const; | ||||
|    uint16_t length_of_vectors() const; | ||||
| 
 | ||||
|    size_t data_size() const override; | ||||
| 
 | ||||
|    bool Parse(std::istream& is) override; | ||||
| 
 | ||||
| private: | ||||
|    std::unique_ptr<LinkedContourVectorPacketImpl> p; | ||||
| }; | ||||
| 
 | ||||
| } // namespace rpg
 | ||||
| } // namespace wsr88d
 | ||||
| } // namespace scwx
 | ||||
							
								
								
									
										45
									
								
								wxdata/include/scwx/wsr88d/rpg/set_color_level_packet.hpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										45
									
								
								wxdata/include/scwx/wsr88d/rpg/set_color_level_packet.hpp
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,45 @@ | |||
| #pragma once | ||||
| 
 | ||||
| #include <scwx/wsr88d/rpg/packet.hpp> | ||||
| 
 | ||||
| #include <cstdint> | ||||
| #include <memory> | ||||
| 
 | ||||
| namespace scwx | ||||
| { | ||||
| namespace wsr88d | ||||
| { | ||||
| namespace rpg | ||||
| { | ||||
| 
 | ||||
| class SetColorLevelPacketImpl; | ||||
| 
 | ||||
| class SetColorLevelPacket : public Packet | ||||
| { | ||||
| public: | ||||
|    explicit SetColorLevelPacket(); | ||||
|    ~SetColorLevelPacket(); | ||||
| 
 | ||||
|    SetColorLevelPacket(const SetColorLevelPacket&) = delete; | ||||
|    SetColorLevelPacket& operator=(const SetColorLevelPacket&) = delete; | ||||
| 
 | ||||
|    SetColorLevelPacket(SetColorLevelPacket&&) noexcept; | ||||
|    SetColorLevelPacket& operator=(SetColorLevelPacket&&) noexcept; | ||||
| 
 | ||||
|    uint16_t packet_code() const; | ||||
|    uint16_t color_value_indicator() const; | ||||
|    uint16_t value_of_contour() const; | ||||
| 
 | ||||
|    size_t data_size() const override; | ||||
| 
 | ||||
|    bool Parse(std::istream& is) override; | ||||
| 
 | ||||
|    static constexpr size_t SIZE = 6u; | ||||
| 
 | ||||
| private: | ||||
|    std::unique_ptr<SetColorLevelPacketImpl> p; | ||||
| }; | ||||
| 
 | ||||
| } // namespace rpg
 | ||||
| } // namespace wsr88d
 | ||||
| } // namespace scwx
 | ||||
|  | @ -0,0 +1,44 @@ | |||
| #pragma once | ||||
| 
 | ||||
| #include <scwx/wsr88d/rpg/packet.hpp> | ||||
| 
 | ||||
| #include <cstdint> | ||||
| #include <memory> | ||||
| 
 | ||||
| namespace scwx | ||||
| { | ||||
| namespace wsr88d | ||||
| { | ||||
| namespace rpg | ||||
| { | ||||
| 
 | ||||
| class UnlinkedContourVectorPacketImpl; | ||||
| 
 | ||||
| class UnlinkedContourVectorPacket : public Packet | ||||
| { | ||||
| public: | ||||
|    explicit UnlinkedContourVectorPacket(); | ||||
|    ~UnlinkedContourVectorPacket(); | ||||
| 
 | ||||
|    UnlinkedContourVectorPacket(const UnlinkedContourVectorPacket&) = delete; | ||||
|    UnlinkedContourVectorPacket& | ||||
|    operator=(const UnlinkedContourVectorPacket&) = delete; | ||||
| 
 | ||||
|    UnlinkedContourVectorPacket(UnlinkedContourVectorPacket&&) noexcept; | ||||
|    UnlinkedContourVectorPacket& | ||||
|    operator=(UnlinkedContourVectorPacket&&) noexcept; | ||||
| 
 | ||||
|    uint16_t packet_code() const; | ||||
|    uint16_t length_of_vectors() const; | ||||
| 
 | ||||
|    size_t data_size() const override; | ||||
| 
 | ||||
|    bool Parse(std::istream& is) override; | ||||
| 
 | ||||
| private: | ||||
|    std::unique_ptr<UnlinkedContourVectorPacketImpl> p; | ||||
| }; | ||||
| 
 | ||||
| } // namespace rpg
 | ||||
| } // namespace wsr88d
 | ||||
| } // namespace scwx
 | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat