diff --git a/src/Moryx.Factory/MachineLocation.cs b/src/Moryx.Factory/MachineLocation.cs index bf148df..31fc612 100644 --- a/src/Moryx.Factory/MachineLocation.cs +++ b/src/Moryx.Factory/MachineLocation.cs @@ -13,55 +13,55 @@ namespace Moryx.Factory { - /// - /// Class for MachineLocation in the factory - /// - [ResourceRegistration] - // TODO: ADD value - [Display(Name = nameof(Strings.MACHINE_LOCATION), ResourceType = typeof(Localizations.Strings))] - public class MachineLocation : Resource, IMachineLocation - { - public IResource Machine => Children.OfType().FirstOrDefault(); + /// + /// Class for MachineLocation in the factory + /// + [ResourceRegistration] + // TODO: ADD value + [Display(Name = nameof(Strings.MACHINE_LOCATION), ResourceType = typeof(Localizations.Strings))] + public class MachineLocation : Resource, IMachineLocation + { + public IResource Machine => Children.OfType().FirstOrDefault(); - [DataMember, EntrySerialize] - [Display(Name = nameof(Strings.SPECIFIC_ICON), ResourceType = typeof(Localizations.Strings))] - public string SpecificIcon { get; set; } + [DataMember, EntrySerialize] + [Display(Name = nameof(Strings.SPECIFIC_ICON), ResourceType = typeof(Localizations.Strings))] + public string SpecificIcon { get; set; } - [DataMember, EntrySerialize] - [Display(Name = nameof(Strings.IMAGE), ResourceType = typeof(Localizations.Strings))] - public string Image { get; set; } + [DataMember, EntrySerialize] + [Display(Name = nameof(Strings.IMAGE), ResourceType = typeof(Localizations.Strings))] + public string Image { get; set; } - /// - /// X position of the location - /// - [DataMember, EntrySerialize, DefaultValue(10)] - [Display(Name = nameof(Strings.POSITION_X), ResourceType = typeof(Localizations.Strings))] - public double PositionX { get; set; } + /// + /// X position of the location + /// + [DataMember, EntrySerialize, DefaultValue(0.5)] + [Display(Name = nameof(Strings.POSITION_X), ResourceType = typeof(Localizations.Strings))] + public double PositionX { get; set; } - /// - /// Y position of the location - /// - [DataMember, EntrySerialize, DefaultValue(10)] - [Display(Name = nameof(Strings.POSITION_Y), ResourceType = typeof(Localizations.Strings))] - public double PositionY { get; set; } + /// + /// Y position of the location + /// + [DataMember, EntrySerialize, DefaultValue(0.5)] + [Display(Name = nameof(Strings.POSITION_Y), ResourceType = typeof(Localizations.Strings))] + public double PositionY { get; set; } - public Position Position - { - get => new() { PositionX = PositionX, PositionY = PositionY }; - set - { - PositionX = value.PositionX; - PositionY = value.PositionY; - } - } + public Position Position + { + get => new() { PositionX = PositionX, PositionY = PositionY }; + set + { + PositionX = value.PositionX; + PositionY = value.PositionY; + } + } - [ResourceReference(ResourceRelationType.TransportRoute, ResourceReferenceRole.Source)] - public IReferences Origins { get; set; } + [ResourceReference(ResourceRelationType.TransportRoute, ResourceReferenceRole.Source)] + public IReferences Origins { get; set; } - [ResourceReference(ResourceRelationType.TransportRoute, ResourceReferenceRole.Target)] - public IReferences Destinations { get; set; } + [ResourceReference(ResourceRelationType.TransportRoute, ResourceReferenceRole.Target)] + public IReferences Destinations { get; set; } - IEnumerable ILocation.Origins => Origins; - IEnumerable ILocation.Destinations => Destinations; - } -} + IEnumerable ILocation.Origins => Origins; + IEnumerable ILocation.Destinations => Destinations; + } +} \ No newline at end of file