% File: rpgicons.sty
% Copyright 2024-2025 Jasper Habicht (mail(at)jasperhabicht.de).
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License version 1.3c,
% available at http://www.latex-project.org/lppl/.
%
% This file is part of the `rpgicons'  package (The Work in LPPL)
% and all files in that bundle must be distributed together.
%
% This work has the LPPL maintenance status `maintained'.
%
\ProvidesExplPackage {rpgicons} {2025-12-10} {2.3.2} {RPG Icons Package}

\bool_new:N \l__rpgicons_use_pgf_variant_bool
\clist_new:N \l__rpgicons_forwarded_options_clist
\keys_define:nn { rpgicons / variant } {
  l3        .bool_set:N = \l__rpgicons_use_pgf_variant_bool ,
  l3        .default:n  = { false } ,
  pgf       .bool_set:N = \l__rpgicons_use_pgf_variant_bool ,
  pgf       .default:n  = { true } ,
  pics      .code:n     = {
    \clist_put_right:Nn \l__rpgicons_forwarded_options_clist { pics }
  } ,
  compat    .code:n     = {
    \clist_put_right:Nn \l__rpgicons_forwarded_options_clist { compat }
  } ,
  opacity   .code:n     = {
    \clist_put_right:Nn \l__rpgicons_forwarded_options_clist { opacity }
  }
}
\ProcessKeyOptions [ rpgicons / variant ]

\bool_if:NTF \l__rpgicons_use_pgf_variant_bool {
  \RequirePackage [ \l__rpgicons_forwarded_options_clist ] { rpgicons-pgf }
} {
  \RequirePackage [ \l__rpgicons_forwarded_options_clist ] { rpgicons-l3 }
}

% EOF
