static */
| 240 | } |
| 241 | |
| 242 | /* static */ ScriptStoryPage::StoryPageButtonFormatting ScriptStoryPage::MakePushButtonReference(StoryPageButtonColour colour, StoryPageButtonFlags flags) |
| 243 | { |
| 244 | EnforcePrecondition(UINT32_MAX, IsValidStoryPageButtonColour(colour)); |
| 245 | EnforcePrecondition(UINT32_MAX, IsValidStoryPageButtonFlags(flags)); |
| 246 | |
| 247 | StoryPageButtonData data; |
| 248 | data.SetColour((::Colours)colour); |
| 249 | data.SetFlags((::StoryPageButtonFlags)flags); |
| 250 | if (!data.ValidateColour()) return UINT32_MAX; |
| 251 | if (!data.ValidateFlags()) return UINT32_MAX; |
| 252 | return data.referenced_id; |
| 253 | } |
| 254 | |
| 255 | /* static */ ScriptStoryPage::StoryPageButtonFormatting ScriptStoryPage::MakeTileButtonReference(StoryPageButtonColour colour, StoryPageButtonFlags flags, StoryPageButtonCursor cursor) |
| 256 | { |
nothing calls this directly
no test coverage detected