Demote faction from runtime projection
This commit is contained in:
parent
12e73e983c
commit
d0cefe8d63
4 changed files with 34 additions and 15 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue