2017-10-03 19:17:35 -04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
2018-04-08 17:50:58 -04:00
|
|
|
|
using SharedLibraryCore.Helpers;
|
|
|
|
|
using SharedLibraryCore.Interfaces;
|
2017-10-03 19:17:35 -04:00
|
|
|
|
|
2018-04-08 17:50:58 -04:00
|
|
|
|
namespace IW4MAdmin.Plugins.Stats
|
2017-10-03 19:17:35 -04:00
|
|
|
|
{
|
|
|
|
|
public class MinimapInfo
|
|
|
|
|
{
|
|
|
|
|
public string MapName { 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 int Width => MaxLeft - MaxRight;
|
|
|
|
|
public int Height => MaxTop - MaxBottom;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class MinimapConfig : Serialize<MinimapConfig>
|
|
|
|
|
{
|
|
|
|
|
public List<MinimapInfo> MapInfo;
|
|
|
|
|
|
|
|
|
|
public static MinimapConfig IW4Minimaps()
|
|
|
|
|
{
|
|
|
|
|
return new MinimapConfig()
|
|
|
|
|
{
|
|
|
|
|
MapInfo = new List<MinimapInfo>()
|
|
|
|
|
{
|
|
|
|
|
new MinimapInfo()
|
|
|
|
|
{
|
|
|
|
|
MapName = "mp_terminal",
|
|
|
|
|
Top = 85,
|
|
|
|
|
Bottom = 89,
|
|
|
|
|
Left = 7,
|
|
|
|
|
Right = 6,
|
|
|
|
|
MaxTop = 2929,
|
|
|
|
|
MaxBottom = -513,
|
|
|
|
|
MaxLeft = 7520,
|
|
|
|
|
MaxRight = 2447
|
|
|
|
|
},
|
|
|
|
|
|
2019-06-30 14:37:59 -04:00
|
|
|
|
|
2017-10-03 19:17:35 -04:00
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|