| 112 | |
| 113 | |
| 114 | void ReadAnnotations( Tr2EffectParameterAnnotationMap& annotationMap, EffectStream& stream ) |
| 115 | { |
| 116 | uint8_t annotationCount = stream.Read<uint8_t>(); |
| 117 | annotationMap.resize( annotationCount ); |
| 118 | |
| 119 | for( int annotationIx = 0; annotationIx < annotationCount; ++annotationIx ) |
| 120 | { |
| 121 | Tr2EffectParameterAnnotation& annotation = annotationMap[annotationIx]; |
| 122 | annotation.name = stream.ReadString(); |
| 123 | annotation.type = Tr2EffectParameterAnnotation::Type( stream.Read<uint8_t>() ); |
| 124 | |
| 125 | if( annotation.type == Tr2EffectParameterAnnotation::STRING ) |
| 126 | { |
| 127 | annotation.stringValue = stream.ReadString(); |
| 128 | } |
| 129 | else |
| 130 | { |
| 131 | annotation.intValue = int( stream.Read<uint32_t>() ); |
| 132 | } |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | Tr2EffectConstant ReadConstant( EffectStream& stream, unsigned version ) |
| 137 | { |
no test coverage detected