adofai-parser

This is a nodejs package parsing custom .adofai files*(most likely called "levels")* from a steam game called "A Dance of Fire and Ice" developed by "7th Beat Games".

Usage no npm install needed!

<script type="module">
  import adofaiParser from 'https://cdn.skypack.dev/adofai-parser';
</script>

README

.adofai parser

This is a nodejs package parsing custom .adofai files*(most likely called "levels")* from a steam game called "A Dance of Fire and Ice" developed by "7th Beat Games".

It is a simple tool making parsing more easier.

Examples

When importing a file :

const adofai = require("adofai-parser");

var adofaiOptions = { verboseLevel: 0 }; // optional, can be 0 to 2

adofai.import(
  "file path",
  (cb, err) => {
    if (err) throw err;
    console.log(`Parsing is finished! It took ${cb.time}ms!`);
  },
  adofaiOptions
);

When exporting a file :

const adofai = require('adofai-parser');

var adofaiOptions = { verboseLevel: 0 }; // optional, can be 0 to 2

adofai.export(
  "file path", /* Object or JSON here */, (cb, err) => {
    if(err) throw err;
    else console.log("done!")
  }, adofaiOptions
);

Author Informations

Discord: @CrackThrough#5067

Discord Server: Invition link

I hope this can help some people trying to make a better editor or a simple macro! I am open to any kind of feedbacks.. please give me any ideas to improve this creation!