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.
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;
See SymbolArtInterface and LayerInterface.
Or use JSON Schema file.
https://github.com/logue/symbol-art-parser/blob/master/schema.json
- saredit - The processing referred to this program.
© 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.