static */
| 253 | } |
| 254 | |
| 255 | /* static */ ScriptStoryPage::StoryPageButtonFormatting ScriptStoryPage::MakeTileButtonReference(StoryPageButtonColour colour, StoryPageButtonFlags flags, StoryPageButtonCursor cursor) |
| 256 | { |
| 257 | EnforcePrecondition(UINT32_MAX, IsValidStoryPageButtonColour(colour)); |
| 258 | EnforcePrecondition(UINT32_MAX, IsValidStoryPageButtonFlags(flags)); |
| 259 | EnforcePrecondition(UINT32_MAX, IsValidStoryPageButtonCursor(cursor)); |
| 260 | |
| 261 | StoryPageButtonData data; |
| 262 | data.SetColour((::Colours)colour); |
| 263 | data.SetFlags((::StoryPageButtonFlags)flags); |
| 264 | data.SetCursor((::StoryPageButtonCursor)cursor); |
| 265 | if (!data.ValidateColour()) return UINT32_MAX; |
| 266 | if (!data.ValidateFlags()) return UINT32_MAX; |
| 267 | if (!data.ValidateCursor()) return UINT32_MAX; |
| 268 | return data.referenced_id; |
| 269 | } |
| 270 | |
| 271 | /* static */ ScriptStoryPage::StoryPageButtonFormatting ScriptStoryPage::MakeVehicleButtonReference(StoryPageButtonColour colour, StoryPageButtonFlags flags, StoryPageButtonCursor cursor, ScriptVehicle::VehicleType vehtype) |
| 272 | { |
nothing calls this directly
no test coverage detected