-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTypes.cs
More file actions
46 lines (42 loc) · 1.26 KB
/
Types.cs
File metadata and controls
46 lines (42 loc) · 1.26 KB
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
37
38
39
40
41
42
43
44
45
46
namespace WeaponRestricter
{
internal static class Types
{
internal class Weapon
{
internal readonly long def;
internal readonly string name;
internal readonly string designer_name;
internal readonly int price;
internal readonly int limit;
internal Weapon(long def, string name, string designer_name, int price)
{
this.def = def;
this.name = name;
this.designer_name = designer_name;
this.price = price;
limit = -1;
}
internal Weapon(Weapon w, int limit)
{
def = w.def;
name = w.name;
designer_name = w.designer_name;
price = w.price;
this.limit = limit;
}
}
internal readonly struct PickableResult
{
internal readonly int limit;
internal readonly int count;
internal readonly bool pickable;
internal PickableResult(int limit, int count)
{
this.limit = limit;
this.count = count;
pickable = limit >= count;
}
}
}
}