FLGameCompanion/FLCompanionByDvurechensky/Data/UniverseSystem.cs
Dvurechensky d057fe2c33 1.0
Main
2024-10-05 07:50:50 +03:00

82 lines
2.4 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Collections.Generic;
namespace FLCompanionByDvurechensky.Data
{
/// <summary>
/// Объект системы
/// </summary>
public class UniverseSystem
{
/// <summary>
/// Консруктор
/// </summary>
public UniverseSystem()
{
Objects = new List<ObjectSystem>();
Zones = new List<ZoneSystem>();
}
/// <summary>
/// ID
/// </summary>
public string Id { get; set; }
/// <summary>
/// Имя
/// </summary>
public string Name { get; set; }
/// <summary>
/// Адрес до INI
/// </summary>
public string INI { get; set; }
/// <summary>
/// ОТключено (Позиция системы на карте в MultiUniverse)
/// </summary>
public int[] Pos { get; set; }
/// <summary>
/// Посетил ли
/// </summary>
public int Visit { get; set; }
/// <summary>
/// Ссылка на имя в DLL
/// </summary>
public string DLL_Name { get; set; }
/// <summary>
/// Ссылка на инфоркарту DLL
/// </summary>
public string DLL_InfoCard { get; set; }
/// <summary>
/// НЕ работает(позиция на карте теперь в MultiUniverse)
/// </summary>
public double NavMapScale { get; set; }
/// <summary>
/// Итоговый радиус системы
/// </summary>
public int Radius
{
get
{
double val;
if (NavMapScale != 0)
{
val = 131041.0 / NavMapScale;
}
else val = 131041.0;
return (int)Math.Round(val, MidpointRounding.AwayFromZero);
}
}
/// <summary>
/// НПС говорят название объекта
/// </summary>
public string MsgIdPrefix { get; set; }
/// <summary>
/// Список объектов
/// </summary>
public List<ObjectSystem> Objects { get; set; }
/// <summary>
/// Список зон
/// </summary>
public List<ZoneSystem> Zones { get; set; }
}
}