2019-05-11 16:03:29 +02:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace MonoGameView.DataModels
|
|
|
|
|
{
|
2019-05-14 14:12:04 +02:00
|
|
|
|
public sealed class Displayer
|
2019-05-11 16:03:29 +02:00
|
|
|
|
{
|
2019-05-14 14:12:04 +02:00
|
|
|
|
static Displayer _container = null;
|
|
|
|
|
public Dictionary<string, int> barsPercent { get; set; }
|
|
|
|
|
public Dictionary<string, string> info { get; set; }
|
|
|
|
|
|
|
|
|
|
public static int GetPercent(string s)
|
|
|
|
|
{
|
|
|
|
|
return _container.barsPercent[s];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void SetInfo(Dictionary<string, string> _info)
|
|
|
|
|
{
|
|
|
|
|
info = _info;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void SetBars(Dictionary<string, int> barsPercent)
|
|
|
|
|
{
|
|
|
|
|
this.barsPercent = barsPercent;
|
|
|
|
|
}
|
|
|
|
|
public Displayer()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
2019-05-11 16:03:29 +02:00
|
|
|
|
}
|
|
|
|
|
}
|