-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from sandrofigo/develop
Release v4.0.0
- Loading branch information
Showing
24 changed files
with
408 additions
and
20 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
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using VoxReader.Interfaces; | ||
|
||
namespace VoxReader.Chunks | ||
{ | ||
internal class IndexMapChunk : Chunk, IIndexMapChunk | ||
{ | ||
public int[] ColorIndices { get; } | ||
|
||
public IndexMapChunk(byte[] data) : base(data) | ||
{ | ||
var formatParser = new FormatParser(Content); | ||
|
||
ColorIndices = new int[256]; | ||
|
||
for (int i = 0; i < ColorIndices.Length; i++) | ||
{ | ||
ColorIndices[i] = formatParser.ParseInt8(); | ||
} | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,23 @@ | ||
using VoxReader.Interfaces; | ||
|
||
namespace VoxReader.Chunks | ||
{ | ||
internal class NoteChunk : Chunk, INoteChunk | ||
{ | ||
public string[] Notes { get; } | ||
|
||
public NoteChunk(byte[] data) : base(data) | ||
{ | ||
var formatParser = new FormatParser(Content); | ||
|
||
int noteCount = formatParser.ParseInt32(); | ||
|
||
Notes = new string[noteCount]; | ||
|
||
for (int i = 0; i < noteCount; i++) | ||
{ | ||
Notes[i] = formatParser.ParseStringAuto(); | ||
} | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.