Files
mixtape/zero.Core/Entities/Blueprints/BlueprintConfiguration.cs
T

31 lines
876 B
C#
Raw Normal View History

2020-10-05 18:01:28 +02:00
using System.Collections.Generic;
namespace zero.Core.Entities
{
/// <summary>
/// Defines a base entity which is synced and properties which are overridden
/// </summary>
public class BlueprintConfiguration
{
/// <summary>
/// Id of the entity the synchronisation is based upon
/// </summary>
public string Id { get; set; }
2020-11-15 00:59:51 +01:00
/// <summary>
2021-10-12 16:19:09 +02:00
/// A shallow copy of a blueprint can not be changed and is always fully synchronised with the parent entity
2020-11-15 00:59:51 +01:00
/// </summary>
2021-10-12 16:19:09 +02:00
public bool IsShallow { get; set; }
2020-11-15 00:59:51 +01:00
2020-10-05 18:01:28 +02:00
/// <summary>
/// Properties which are not synced and have their own values
/// </summary>
public string[] Desync { get; set; } = new string[] { };
/// <summary>
/// Additional custom sync options
/// </summary>
public Dictionary<string, string> Options = new Dictionary<string, string>();
}
}