mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 17:50:04 +00:00 
			
		
		
		
	Packet create functions
This commit is contained in:
		
							parent
							
								
									95a3bb7cb7
								
							
						
					
					
						commit
						0ef21fd609
					
				
					 12 changed files with 95 additions and 0 deletions
				
			
		|  | @ -142,6 +142,19 @@ bool LinkedVectorPacket::Parse(std::istream& is) | |||
|    return blockValid; | ||||
| } | ||||
| 
 | ||||
| std::shared_ptr<LinkedVectorPacket> LinkedVectorPacket::Create(std::istream& is) | ||||
| { | ||||
|    std::shared_ptr<LinkedVectorPacket> packet = | ||||
|       std::make_shared<LinkedVectorPacket>(); | ||||
| 
 | ||||
|    if (!packet->Parse(is)) | ||||
|    { | ||||
|       packet.reset(); | ||||
|    } | ||||
| 
 | ||||
|    return packet; | ||||
| } | ||||
| 
 | ||||
| } // namespace rpg
 | ||||
| } // namespace wsr88d
 | ||||
| } // namespace scwx
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat