-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dd28724
commit a7612a8
Showing
5 changed files
with
44 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,5 @@ wsf-test-* | |
*.obj | ||
*.lst | ||
dub.selections.json | ||
test.bin | ||
test.bin | ||
test.wsf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# WereShift Format | ||
A D binary serialization format made for the game "Wereshift". | ||
It can be used elsewhere as a small binary format. | ||
|
||
|
||
## Parsing file | ||
```d | ||
Tag data = Tag.parseFile("file.wsf"); | ||
writeln(data["foo"]); | ||
writeln(data.seq[0]); | ||
``` | ||
|
||
## Building file | ||
```d | ||
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(?) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
|
||
// Copyright Luna & Cospec 2019. | ||
// Distributed under the Boost Software License, Version 1.0. | ||
// (See accompanying file LICENSE_1_0.txt or copy at | ||
// https://www.boost.org/LICENSE_1_0.txt) | ||
|
||
module wsf.spec.scene; | ||
|
||
// TODO: Implement | ||
|
||
class Scene { | ||
|
||
} |