public static void InitialiseAssets() { Font = MultiFont.Load(FontInfoPath, FontPngPath); Font6 = Font.GetFont(6); Font10 = Font.GetFont(10); Palette1Id = UAlbion.Base.Palette.Toronto2D; var commonRaw = new uint[256]; var torontoRaw = new uint[256]; Array.Copy(RawPalette, 192, commonRaw, 192, 64); Array.Copy(RawPalette, 0, torontoRaw, 0, 255); PaletteCommon = new AlbionPalette(((PaletteId)UAlbion.Base.Palette.Common).ToUInt32(), null, commonRaw); Palette1 = new AlbionPalette(Palette1Id.ToUInt32(), Palette1Id.ToString(), torontoRaw); Tileset1 = new TestTilemap(Font6, Font10); }
internal SingleFont(MultiFont font, int size) { _font = font ?? throw new ArgumentNullException(nameof(font)); _size = size; }