symbol-art-parser
v0.2.1
Published
Phantasy Star Online 2 New Genesis Symbol Art file (*.sar) parser class.
Downloads
19
Maintainers
Readme
Symbol Art Parser
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
© 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.