@tak-ps/node-cot
    Preparing search index...

    Class Iconset

    Helper class for creating and parsing Iconset XML documents

    Hierarchy

    • default<IconsetType>
      • Iconset
    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    • Parameters

      • raw: {
            iconset: {
                _attributes: {
                    default_friendly?: string;
                    default_group?: string;
                    default_hostile?: string;
                    default_neutral?: string;
                    default_unknown?: string;
                    name: string;
                    skip_resize?: boolean;
                    uid: string;
                    version: number;
                };
                icon: | { _attributes: { name: string; type2525b?: string } }[]
                | { _attributes: { name: string; type2525b?: string } };
            };
        }

      Returns Iconset

    Properties

    raw: {
        iconset: {
            _attributes: {
                default_friendly?: string;
                default_group?: string;
                default_hostile?: string;
                default_neutral?: string;
                default_unknown?: string;
                name: string;
                skip_resize?: boolean;
                uid: string;
                version: number;
            };
            icon: | { _attributes: { name: string; type2525b?: string } }[]
            | { _attributes: { name: string; type2525b?: string } };
        };
    }

    Accessors

    Methods

    • Returns Set<{ name: string; type2525b?: string }>

    • Returns {
          default_friendly?: string;
          default_group?: string;
          default_hostile?: string;
          default_neutral?: string;
          default_unknown?: string;
          name: string;
          skip_resize?: boolean;
          uid: string;
          version: number;
      }

    • Type Parameters

      • U

      Parameters

      • input: string
      • check: ValidateFunction<unknown>

      Returns U

    • Return an Iconset from a string XML representation

      Parameters

      • input: string | Buffer<ArrayBufferLike>

      Returns Iconset