-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Arrays are now DynamicArrays, Tuples are now Arrays, and... proper Tu…
…ples exist. * Migrating to Vitest for tests. * Wrote tests for unwrapping and parsing
- Loading branch information
Showing
32 changed files
with
2,560 additions
and
1,321 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
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,7 +1,7 @@ | ||
import { i32, arrayOf, object } from 'typed-binary'; | ||
import { i32, dynamicArrayOf, object } from 'typed-binary'; | ||
import { NodeTemplate } from './node'; | ||
|
||
export const Graph = object({ | ||
entryNode: i32, | ||
nodes: arrayOf(NodeTemplate), | ||
nodes: dynamicArrayOf(NodeTemplate), | ||
}); |
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,10 +1,10 @@ | ||
import { bool, f32, i32, string, arrayOf, object } from 'typed-binary'; | ||
import { bool, f32, i32, string, dynamicArrayOf, object } from 'typed-binary'; | ||
import { ConnectionTemplate } from './connection'; | ||
|
||
export const NodeTemplate = object({ | ||
animationKey: string, | ||
startFrame: i32, | ||
playbackSpeed: f32, | ||
looping: bool, | ||
connections: arrayOf(ConnectionTemplate), | ||
connections: dynamicArrayOf(ConnectionTemplate), | ||
}); |
Oops, something went wrong.