Skip to content

Commit

Permalink
MPL3: Fix breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
Luzifix committed Sep 17, 2024
1 parent ac6ad61 commit 81ae38b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Warcraft.NET/Files/WDT/Entries/SL/MPL3Entry.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.IO;
using System;
using System.IO;
using System.Numerics;
using Warcraft.NET.Extensions;
using Warcraft.NET.Files.Structures;
Expand Down Expand Up @@ -80,6 +81,12 @@ public class MPL3Entry
/// </summary>
public HalfFloat Scale { get; set; } = 0.5f;

/// <summary>
/// Unknown value, wiki mentions it is "a packed value". 14336 appears to be the most common value.
/// </summary>
[Obsolete("Use Scale instead.")]
public ushort Unknwon1 { get { return Scale.RawValue; } set { Scale = new HalfFloat(value); } }

public MPL3Entry() { }

/// <summary>
Expand Down

0 comments on commit 81ae38b

Please sign in to comment.