Skip to content

Commit

Permalink
Fix CGameCtnMediaBlockCameraCustom.Key v10
Browse files Browse the repository at this point in the history
  • Loading branch information
BigBang1112 authored Aug 12, 2024
1 parent 34592ab commit 3fb6e57
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ public class InterpVal : IReadableWritable
private Vec3? targetPosition;
private float? nearZ;

public int? U01;

public Vec3 Position { get => position; set => position = value; }

/// <summary>
Expand All @@ -31,6 +33,12 @@ public void ReadWrite(GameBoxReaderWriter rw, int version)
}

rw.Vec3(ref pitchYawRoll);

if (version >= 10)
{
rw.Int32(ref U01);
}

rw.Single(ref fov);
rw.Vec3(ref targetPosition);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public partial class CGameCtnMediaBlockCameraCustom
public Quat? U06;
public int? U07;
public int? U08;
public int? U09;

public Interpolation Interpolation { get => interpolation; set => interpolation = value; }
public Vec3 Position { get => position; set => position = value; }
Expand Down Expand Up @@ -129,7 +130,12 @@ private void ReadWriteVersion6AndAbove(GameBoxReaderWriter rw, int version)

if (version >= 10)
{
throw new ChunkVersionNotSupportedException(version);
rw.Int32(ref U09);

if (version >= 11)
{
throw new ChunkVersionNotSupportedException(version);
}
}
}
}
Expand Down

0 comments on commit 3fb6e57

Please sign in to comment.