Demote faction from runtime projection

This commit is contained in:
Meta Vens 2026-06-13 21:52:45 +01:00
commit d0cefe8d63
4 changed files with 34 additions and 15 deletions

View file

@ -8,8 +8,10 @@ using System.Collections.Generic;
using Unity.Mathematics;
[Inspectable]
public class Faction : RuntimeProjectionEntry, INamedEntry
public class Faction : INamedEntry
{
public Guid ID = Guid.NewGuid();
[Inspectable]
public string Name;
@ -53,4 +55,14 @@ public class Faction : RuntimeProjectionEntry, INamedEntry
get => Name;
set => Name = value;
}
public override int GetHashCode()
{
return ID.GetHashCode();
}
public override bool Equals(object obj)
{
return obj is Faction faction && faction.ID == ID;
}
}