2021-11-20 13:52:28 +01:00
|
|
|
namespace zero.Architecture;
|
2021-11-19 14:59:24 +01:00
|
|
|
|
|
|
|
|
/// <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>
|
2021-12-26 13:27:59 +01:00
|
|
|
public string TargetId { get; set; }
|
2021-11-19 14:59:24 +01:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// A shallow copy of a blueprint can not be changed and is always fully synchronised with the parent entity
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool IsShallow { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Properties which are not synced and have their own values
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string[] Desync { get; set; } = Array.Empty<string>();
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Additional custom sync options
|
|
|
|
|
/// </summary>
|
|
|
|
|
public Dictionary<string, string> Options = new();
|
|
|
|
|
}
|