mirror of
https://github.com/AssetRipper/AssetRipper.git
synced 2025-12-11 20:15:29 +01:00
13 lines
426 B
C#
13 lines
426 B
C#
using AssetRipper.SourceGenerated.Subclasses.PropertyName;
|
|
|
|
namespace AssetRipper.SourceGenerated.Extensions;
|
|
|
|
public static class PropertyNameExtensions
|
|
{
|
|
public static Utf8String GetIdString(this IPropertyName _this)
|
|
{
|
|
//When looking at decompiled games where ID is represented as a string, it seems to always be a serialized int.
|
|
return _this.Has_Id_Int32() ? _this.Id_Int32.ToString() : _this.Id_Utf8String;
|
|
}
|
|
}
|