-
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.
Migrate Games namespace to Frameworks
- Loading branch information
Showing
6 changed files
with
53 additions
and
12 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
...LI/Commands/Impl/Games/TommunismEngine.cs → ...mmands/Impl/Frameworks/TommunismEngine.cs
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,40 @@ | ||
namespace HyperLib.Frameworks.TommunismEngine | ||
{ | ||
public class AnimationPackage : FileBase | ||
{ | ||
public override string Extension => ".am"; | ||
|
||
public FormatVersion Version = FormatVersion.Unknown; | ||
|
||
public AnimationPackage() { } | ||
|
||
public AnimationPackage(string in_path) : base(in_path) { } | ||
|
||
public override void Read(Stream in_stream) | ||
{ | ||
var reader = new BinaryValueReader(in_stream, StreamOwnership.Retain, Endianness.Little, Encoding.UTF8); | ||
|
||
Version = (FormatVersion)reader.ReadInt32(); | ||
|
||
if (!Enum.IsDefined(Version)) | ||
{ | ||
Version = FormatVersion.Unknown; | ||
|
||
reader.Seek(-4, SeekOrigin.Begin); | ||
} | ||
|
||
var stringTableLength = reader.ReadUInt16(); | ||
var animationCount = reader.ReadUInt16(); | ||
var framerate = reader.ReadSingle(); | ||
|
||
// TODO | ||
} | ||
|
||
public enum FormatVersion : int | ||
{ | ||
Unknown = -1, | ||
F100 = 0x46313030, | ||
F101 = 0x46313031 | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
HyperLib/Games/TommunismEngine/Archive.cs → ...Lib/Frameworks/TommunismEngine/Archive.cs
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
2 changes: 1 addition & 1 deletion
2
HyperLib/Games/TommunismEngine/Registry.cs → ...ib/Frameworks/TommunismEngine/Registry.cs
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,14 +1,15 @@ | ||
# HyperLib | ||
A work-in-progress general purpose library for software research. | ||
|
||
# Games | ||
# Frameworks | ||
|
||
## TommunismEngine | ||
The game engine developed for Super Meat Boy. | ||
### Used by | ||
- Super Meat Boy | ||
|
||
### Supported formats | ||
Type|Support|[1:1](## "Can this library generate a binary identical file from the original source?")|Description| | ||
----|-------|---------------------------------------------------------------------------------------|-----------| | ||
[Archive (*.dat)](https://github.com/hyperbx/HyperLib/blob/main/HyperLib/Games/TommunismEngine/Archive.cs)|[📜](## "Read") [💾](## "Write") [📥](## "Import") [📤](## "Export")|[⚠️](## "The table of contents is not sorted in the same way the original archive is, but the resulting file is read correctly by the game.")|An uncompressed archive format. | ||
[Texture Package (*.tp)](https://github.com/hyperbx/HyperLib/blob/main/HyperLib/Games/TommunismEngine/TexturePackage.cs)|[📜](## "Read") [💾](## "Write") [📥](## "Import") [📤](## "Export")|✔️|An uncompressed texture container format. | ||
[Registry (reg*.dat)](https://github.com/hyperbx/HyperLib/blob/main/HyperLib/Games/TommunismEngine/Registry.cs)|[📜](## "Read") [💾](## "Write") [📥](## "Import") [📤](## "Export")|✔️|A basic property format used for storing user option data. | ||
Type|Support|[Platforms](## "This column indicates platforms the library has been tested and confirmed working with.")|[1:1](## "Can this library generate a binary identical file from the original source?")|Description | ||
----|-------|---------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------|----------- | ||
[Archive (*.dat)](https://github.com/hyperbx/HyperLib/blob/main/HyperLib/Games/TommunismEngine/Archive.cs)|[📜](## "Read") [💾](## "Write") [📥](## "Import") [📤](## "Export")|PC, [Xbox 360](## "WAV audio data is exported in an unknown format.")|[⚠️](## "The table of contents is not sorted in the same way the original archive is, but the resulting file is read correctly by the game.")|An uncompressed archive format. | ||
[Registry (reg*.dat)](https://github.com/hyperbx/HyperLib/blob/main/HyperLib/Games/TommunismEngine/Registry.cs)|[📜](## "Read") [💾](## "Write") [📥](## "Import") [📤](## "Export")|PC|✔️|A basic property format used for storing user option data. | ||
[Texture Package (*.tp)](https://github.com/hyperbx/HyperLib/blob/main/HyperLib/Games/TommunismEngine/TexturePackage.cs)|[📜](## "Read") [💾](## "Write") [📥](## "Import") [📤](## "Export")|PC, Xbox 360|✔️|An uncompressed texture container format. |