IW4M-Admin/Plugins/LiveRadar/MapInfo.cs

27 lines
863 B
C#
Raw Normal View History

2023-02-11 21:46:08 -05:00
namespace IW4MAdmin.Plugins.LiveRadar;
2019-06-30 14:37:59 -04:00
2023-02-11 21:46:08 -05:00
public class MapInfo
2019-06-30 14:37:59 -04:00
{
2023-02-11 21:46:08 -05:00
public string Name { get; set; }
public string Alias { get; set; }
// distance from the edge of the minimap image
// to the "playable" area
public int Top { get; set; }
public int Bottom { get; set; }
public int Left { get; set; }
public int Right { get; set; }
// maximum coordinate values for the map
public int MaxTop { get; set; }
public int MaxBottom { get; set; }
public int MaxLeft { get; set; }
public int MaxRight { get; set; }
public float Rotation { get; set; }
public float ViewPositionRotation { get; set; }
public float CenterX { get; set; }
public float CenterY { get; set; }
public float Scaler { get; set; } = 1.0f;
2019-06-30 14:37:59 -04:00
2023-02-11 21:46:08 -05:00
public int Width => MaxLeft - MaxRight;
public int Height => MaxTop - MaxBottom;
2019-06-30 14:37:59 -04:00
}