Scripting API
Scripting API
WindowsIcon
Class in Abyss.Core, from Abyss.Core.
A game's icon at the sizes an executable carries it, made by the engine.
public static class WindowsIconMethods
Png
public static byte[] Png(string path, int size)The image at path — a PNG, a JPEG, a BMP or a TGA — as a PNG icon size pixels square: as it is where it is that size, and scaled to fit a transparent square otherwise.
Parameters
pathsize
Exceptions
AbyssException: The file cannot be read or is no image the engine decodes.AbyssException: In a game's executable, which is built without what only the editor does (AbyssStatus.NotInBuiltGame).
Pixels
public static byte[] Pixels(string path, int size)The same icon as WindowsIcon.Png makes, as its pixels: size square, four bytes each, red first — what the editor shows it with before a build.
Parameters
pathsize
Exceptions
AbyssException: The file cannot be read or is not a PNG.AbyssException: In a game's executable, which is built without what only the editor does (AbyssStatus.NotInBuiltGame).
EngineVersionOfRust
public static string EngineVersionOfRust()The engine's version as its Rust says it, which its C#'s, EngineVersion.Current, is held to.
