wsf 1.0.0

WereShift Format


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

WereShift Format

A D binary serialization format made for the game "Wereshift". It can be used elsewhere as a small binary format.

Parsing file

Tag data = Tag.parseFile("file.wsf");
writeln(data["foo"]);
writeln(data.seq[0]);

Building file

Tag myData = Tag.emptyCompound();
myData["foo"] = "bar";
myData.seq ~= new Tag("baz");

// Note: this will overwrite the contents of the file
myData.buildFile("file.wsf");

Notes

TODO

  • Memory based streams
  • Proper struct/class serialization via interface
  • C interface(?)
Authors:
  • clipsey
Dependencies:
taggedalgebraic
Versions:
1.0.0 2019-Oct-30
~master 2019-Nov-15
Show all 2 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 8 downloads total

Score:
0.8
Short URL:
wsf.dub.pm