|
|
|
|
@ -38,6 +38,12 @@ public class EntityModel
|
|
|
|
|
public bool IsSpeculative { get; set; } |
|
|
|
|
|
|
|
|
|
public string Descriptive { get; set; } = DescriptiveType.None; |
|
|
|
|
|
|
|
|
|
public string GetName() |
|
|
|
|
{ |
|
|
|
|
var entityInfo = EntityParts.FirstOrDefault(a => a.GetType() == typeof(EntityInfoModel)) as EntityInfoModel; |
|
|
|
|
return entityInfo == null ? string.Empty : entityInfo.Name; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public string AsYaml() |
|
|
|
|
{ |
|
|
|
|
@ -63,6 +69,8 @@ public class EntityModel
|
|
|
|
|
|
|
|
|
|
public EntityModel AddPart(IEntityPartInterface unitPart) |
|
|
|
|
{ |
|
|
|
|
unitPart.Parent = this; |
|
|
|
|
|
|
|
|
|
EntityParts.Add(unitPart); |
|
|
|
|
return this; |
|
|
|
|
} |
|
|
|
|
|