| 186 | } |
| 187 | |
| 188 | bool StoryPageButtonData::ValidateFlags() const |
| 189 | { |
| 190 | uint8_t flags = GB(this->referenced_id, 24, 8); |
| 191 | /* Don't allow float left and right together */ |
| 192 | if ((flags & SPBF_FLOAT_LEFT) && (flags & SPBF_FLOAT_RIGHT)) return false; |
| 193 | /* Don't allow undefined flags */ |
| 194 | if (flags & ~(SPBF_FLOAT_LEFT | SPBF_FLOAT_RIGHT)) return false; |
| 195 | return true; |
| 196 | } |
| 197 | |
| 198 | /** Verify that the data stores a valid StoryPageButtonCursor value */ |
| 199 | bool StoryPageButtonData::ValidateCursor() const |
no test coverage detected