Skip to content

Commit

Permalink
Added Black Magic
Browse files Browse the repository at this point in the history
  • Loading branch information
Hampo committed Dec 22, 2024
1 parent f900eee commit 2eefb8e
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions NetP3DLib/NetP3DLib/P3D/ChunkIdentifier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public enum ChunkIdentifier : uint
Billboard_Quad_Group = 0x17006,
Billboard_Texture_UV = 0x17009,
Billboard_Transform = 0x17007,
Black_Magic = 0x1025,
Boolean_Channel = 0x121108,
Bounding_Box = 0x10003,
Bounding_Sphere = 0x10004,
Expand Down
33 changes: 33 additions & 0 deletions NetP3DLib/NetP3DLib/P3D/Chunks/BlackMagicChunk.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
using System.IO;

namespace NetP3DLib.P3D.Chunks;

[ChunkAttributes(ChunkID)]
public class BlackMagicChunk : Chunk
{
public const ChunkIdentifier ChunkID = ChunkIdentifier.Black_Magic;

public override byte[] DataBytes
{
get
{
return [];
}
}
public override uint DataLength => 0;

[System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "IDE0060:Remove unused parameter", Justification = "Required for ChunkLoader.")]
public BlackMagicChunk(BinaryReader br) : base(ChunkID)
{ }

public BlackMagicChunk() : base(ChunkID)
{ }

public override void Validate()
{
base.Validate();
}

internal override void WriteData(BinaryWriter bw)
{ }
}

0 comments on commit 2eefb8e

Please sign in to comment.