symbol-art-parser
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

Symbol Art Parser

jsdelivr CDN NPM Downloads Open in unpkg npm version Open in Gitpod

TypeScript Phantasy Star Online 2's Symbol Art Parser Libraly.

This library only implements parsing and reading / writing of sar files, and does not include drawing processing.

Sample

Usage

import SymbolArt from 'symbol-art-parser';

const sar = new SymbolArt();

const reader = new FileReader();
reader.onload = () => {
  // Load SymbolArt
  sar.data = reader.result;
};
reader.readAsArrayBuffer('[*.sar file]');

// Dump Symbol Art to json.
const json = sar.json;

// Set Symbol Art from json.
sar.json = json;

// Save SymbolArt as ArrayBuffer
const data = sar.data;

Symbol Art Json Format

See SymbolArtInterface and LayerInterface.

Or use JSON Schema file.

https://github.com/logue/symbol-art-parser/blob/master/schema.json

Reference

  • saredit - The processing referred to this program.

License

MIT

© 2022-2024 By Logue.

All rights to the copyrighted works (images, data, audios, texts, etc.) used in "PSO2: NGS" are owned by SEGA Corporation or its licensors.

/symbol-art-parser/

    Package Sidebar

    Install

    npm i symbol-art-parser

    Weekly Downloads

    2

    Version

    0.2.1

    License

    MIT

    Unpacked Size

    3.06 MB

    Total Files

    394

    Last publish

    Collaborators

    • logue