Project behavior item refs as typed keys

This commit is contained in:
Meta Vens 2026-06-15 16:10:13 +01:00
commit e173989b3d
160 changed files with 314 additions and 211 deletions

View file

@ -2,7 +2,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
using System;
using Unity.Mathematics;
public interface INamedEntry
@ -12,8 +11,6 @@ public interface INamedEntry
public class AetheriaRuntimeItemReference
{
private const string LegacyItemDefinitionPrefix = "aetheria.item_definition:legacy:";
public string ItemKey;
public AetheriaRuntimeItemReference()
@ -25,10 +22,6 @@ public class AetheriaRuntimeItemReference
ItemKey = itemKey;
}
public static string FromLegacyId(Guid legacyItemId)
{
return legacyItemId == Guid.Empty ? "" : $"{LegacyItemDefinitionPrefix}{legacyItemId:D}";
}
}
public interface ITintInspector