std::vector< types::uint32 > ConvertColorPalette( const std::vector< types::color >& palette ) { std::vector< types::uint32 > result; for( unsigned int i = 0; i < palette.size(); ++i ) { result.push_back( ConvertToHex( palette[ i ] ) ); } return result; }
NickName::NickName(WHartShortAddress address_) { address = address_; textAddress = ConvertToHex((unsigned short)address); }