feat: added entity converter
This commit is contained in:
12
Engine.Serialization/Converters/EntityReference.cs
Normal file
12
Engine.Serialization/Converters/EntityReference.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using Syntriax.Engine.Core;
|
||||
|
||||
namespace Syntriax.Engine.Serialization;
|
||||
|
||||
public class EntityReference
|
||||
{
|
||||
public string Id { get; set; } = string.Empty;
|
||||
public TypeContainer TypeContainer { get; set; } = new();
|
||||
|
||||
public EntityReference() { }
|
||||
public EntityReference(IEntity entity) { TypeContainer = new(entity); Id = entity.Id; }
|
||||
}
|
||||
Reference in New Issue
Block a user