Skip to content

Commit

Permalink
Fix for JsonRef formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
EliotVU committed May 4, 2024
1 parent 806ac85 commit 96afc48
Show file tree
Hide file tree
Showing 2 changed files with 1,251 additions and 1,219 deletions.
26 changes: 23 additions & 3 deletions src/Core/Classes/Props/Custom/UJsonRefProperty.cs
Original file line number Diff line number Diff line change
@@ -1,23 1,43 @@
#if GIGANTIC
using System;
using UELib.Types;

namespace UELib.Core
{
/// <summary>
/// JSON Reference Property
///
/// <list>
/// PropertyType Format:
/// <code>JsonRef&lt;MetaClass&gt; JsonProperty</code>
/// PropertyValue Format:
/// <code>JsonRef&lt;MetaClass&gt;'ObjectReference'</code>
/// </list>
/// </summary>
[UnrealRegisterClass]
public class UJsonRefProperty : UProperty
{
{
#region Serialized Members

public UClass MetaClass;

#endregion

public UJsonRefProperty()
{
Type = PropertyType.JsonRefProperty;
}

protected override void Deserialize()
{
base.Deserialize();

MetaClass = _Buffer.ReadObject<UClass>();
Record(nameof(MetaClass), MetaClass);
}

public override string GetFriendlyType()
{
return "JsonRef";
return $"JsonRef<{MetaClass.GetFriendlyType()}>";
}
}
}
Expand Down
Loading

0 comments on commit 96afc48

Please sign in to comment.