IW4M-Admin/Plugins/LiveRadar/MapInfo.cs

32 lines
1007 B
C#
Raw Permalink Normal View History

2019-06-30 14:37:59 -04:00
using System;
using System.Collections.Generic;
using System.Text;
namespace LiveRadar
{
public class MapInfo
{
public string Name { get; set; }
2019-07-08 21:21:08 -04:00
public string Alias { get; set; }
2019-06-30 14:37:59 -04:00
// 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; }
2019-07-05 21:53:03 -04:00
public float Rotation { get; set; }
2019-07-07 15:59:14 -04:00
public float ViewPositionRotation { get; set; }
2019-07-05 21:53:03 -04:00
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
public int Width => MaxLeft - MaxRight;
public int Height => MaxTop - MaxBottom;
}
}