Sanierungsarten nun steuerbar von ausßenhalb

(cherry picked from commit 81b58aa6d0)

# Conflicts:
#	SanSystem/FrmSelectNewSan.cs
This commit is contained in:
Husky
2018-07-21 15:55:04 +02:00
parent 6d5f049650
commit 2704c76cf1
5 changed files with 75 additions and 3 deletions

View File

@@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SanSystem
{
enum Sanierungsarten
{
INLINER = 1,
SCHACHTANBINDUNG = 2,
KURZLINER = 4,
HUTPROFIL = 8,
QUICKLOCK = 16
}
class SanArt
{
private int mod;
public SanArt(int mod)
{
this.mod = mod;
}
public bool SanierungActivated(Sanierungsarten pm)
{
return (mod & (int)pm) == (int)pm;
}
}
}