MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / PixelDataKindFromJS

Function PixelDataKindFromJS

src/openrct2-ui/scripting/CustomImages.cpp:317–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315 }
316
317 static PixelDataKind PixelDataKindFromJS(const std::string& s)
318 {
319 if (s == "raw")
320 return PixelDataKind::Raw;
321 if (s == "rle")
322 return PixelDataKind::Rle;
323 if (s == "palette")
324 return PixelDataKind::Palette;
325 if (s == "png")
326 return PixelDataKind::Png;
327 return PixelDataKind::Unknown;
328 }
329
330 static PixelDataPaletteKind PixelDataPaletteKindFromJS(const std::string& s)
331 {

Callers 1

GetPixelDataFromJSFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected