Skip to content

Commit

Permalink
Renamed Fence2 to Wall
Browse files Browse the repository at this point in the history
  • Loading branch information
Hampo committed Aug 14, 2024
1 parent 6582e7c commit 44f62da
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion NetP3DLib/NetP3DLib/P3D/ChunkIdentifier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ public enum ChunkIdentifier : uint
Expression_Group = 0x21001,
Expression_Mixer = 0x21002,
Fence = 0x3F00007,
Fence_2 = 0x3000000,
Fenceline = 0x3000001,
Float_1_Channel = 0x121100,
Float_2_Channel = 0x121101,
Expand Down Expand Up @@ -198,6 +197,7 @@ public enum ChunkIdentifier : uint
Vector_3D_OF_Channel = 0x121104,
Vertex_Shader = 0x10011,
Volume_Image = 0x19004,
Wall = 0x3000000,
Walker_Camera_Data = 0x3000101,
Weight_List = 0x1000C,
World_Sphere = 0x3F0000B,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Numerics;

namespace NetP3DLib.P3D.Chunks;

[ChunkAttributes((uint)ChunkIdentifier.Fence_2)]
public class Fence2Chunk : Chunk
[ChunkAttributes((uint)ChunkIdentifier.Wall)]
public class WallChunk : Chunk
{
public Vector3 Start { get; set; }
public Vector3 End { get; set; }
Expand All @@ -27,14 +26,14 @@ public override byte[] DataBytes
}
public override uint DataLength => sizeof(float) * 3 + sizeof(float) * 3 + sizeof(float) * 3;

public Fence2Chunk(BinaryReader br) : base((uint)ChunkIdentifier.Fence_2)
public WallChunk(BinaryReader br) : base((uint)ChunkIdentifier.Wall)
{
Start = br.ReadVector3();
End = br.ReadVector3();
Normal = br.ReadVector3();
}

public Fence2Chunk(Vector3 start, Vector3 end, Vector3 normal) : base((uint)ChunkIdentifier.Fence_2)
public WallChunk(Vector3 start, Vector3 end, Vector3 normal) : base((uint)ChunkIdentifier.Wall)
{
Start = start;
End = end;
Expand Down
2 changes: 1 addition & 1 deletion NetP3DLib/NetP3DLib/P3D/P3DFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public byte[] Bytes
(uint)ChunkIdentifier.Skin,
(uint)ChunkIdentifier.Expression_Group,
(uint)ChunkIdentifier.Expression_Mixer,
(uint)ChunkIdentifier.Fence_2,
(uint)ChunkIdentifier.Wall,
(uint)ChunkIdentifier.Fenceline,
(uint)ChunkIdentifier.Intersection,
(uint)ChunkIdentifier.Road_Data_Segment,
Expand Down

0 comments on commit 44f62da

Please sign in to comment.