-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathResourse.cs
36 lines (34 loc) · 1.18 KB
/
Resourse.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.Drawing;
using System.Windows.Media.Imaging;
namespace Caliber
{
public class Resourse
{
public ResoursesCollectionEng Name { get; set; }
public int Number { get; set; }
public int StartedNumber { get; set; }
public int Priority { get; set; } = default;
public int Tier { get; set; } = default;
public int DiffNumber { get => Number - StartedNumber; }
public int DesiredNumber { get; set; }
public int LimitNumber { get; set; }
public BitmapImage? ResourseImg { get; set; }
public static Dictionary<ResoursesCollectionEng, Resourse> DictNumResources { get; set; } = new();
public Resourse(ResoursesCollectionEng name, int numberResourses = 0)
{
Name = name;
Number = numberResourses;
}
public Resourse(ResoursesCollectionEng name, int numberResourses, int startedNumber, int priority)
{
Name = name;
Number = numberResourses;
StartedNumber = startedNumber;
Priority = priority;
}
}
}