Skip to content

Latest commit

 

History

History
59 lines (37 loc) · 1.94 KB

README.md

File metadata and controls

59 lines (37 loc) · 1.94 KB

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.