mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 20:30:05 +00:00 
			
		
		
		
	Packet create functions
This commit is contained in:
		
							parent
							
								
									95a3bb7cb7
								
							
						
					
					
						commit
						0ef21fd609
					
				
					 12 changed files with 95 additions and 0 deletions
				
			
		|  | @ -35,6 +35,8 @@ public: | |||
| 
 | ||||
|    bool Parse(std::istream& is) override; | ||||
| 
 | ||||
|    static std::shared_ptr<LinkedContourVectorPacket> Create(std::istream& is); | ||||
| 
 | ||||
| private: | ||||
|    std::unique_ptr<LinkedContourVectorPacketImpl> p; | ||||
| }; | ||||
|  |  | |||
|  | @ -34,6 +34,8 @@ public: | |||
| 
 | ||||
|    bool Parse(std::istream& is) override; | ||||
| 
 | ||||
|    static std::shared_ptr<LinkedVectorPacket> Create(std::istream& is); | ||||
| 
 | ||||
| private: | ||||
|    std::unique_ptr<LinkedVectorPacketImpl> p; | ||||
| }; | ||||
|  |  | |||
|  | @ -34,6 +34,8 @@ public: | |||
| 
 | ||||
|    bool Parse(std::istream& is) override; | ||||
| 
 | ||||
|    static std::shared_ptr<SetColorLevelPacket> Create(std::istream& is); | ||||
| 
 | ||||
|    static constexpr size_t SIZE = 6u; | ||||
| 
 | ||||
| private: | ||||
|  |  | |||
|  | @ -35,6 +35,8 @@ public: | |||
| 
 | ||||
|    bool Parse(std::istream& is) override; | ||||
| 
 | ||||
|    static std::shared_ptr<TextAndSpecialSymbolPacket> Create(std::istream& is); | ||||
| 
 | ||||
| private: | ||||
|    std::unique_ptr<TextAndSpecialSymbolPacketImpl> p; | ||||
| }; | ||||
|  |  | |||
|  | @ -35,6 +35,8 @@ public: | |||
| 
 | ||||
|    bool Parse(std::istream& is) override; | ||||
| 
 | ||||
|    static std::shared_ptr<UnlinkedContourVectorPacket> Create(std::istream& is); | ||||
| 
 | ||||
| private: | ||||
|    std::unique_ptr<UnlinkedContourVectorPacketImpl> p; | ||||
| }; | ||||
|  |  | |||
|  | @ -34,6 +34,8 @@ public: | |||
| 
 | ||||
|    bool Parse(std::istream& is) override; | ||||
| 
 | ||||
|    static std::shared_ptr<UnlinkedVectorPacket> Create(std::istream& is); | ||||
| 
 | ||||
| private: | ||||
|    std::unique_ptr<UnlinkedVectorPacketImpl> p; | ||||
| }; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat