Пример #1
0
 public abstract bool Requires(Requirement requirementsToCheck);
Пример #2
0
 public abstract bool CanBeOpenedWith(Requirement obtainedRequirements);
Пример #3
0
 public override bool Requires(Requirement requirementsToCheck) =>
 Requirements == Requirement.None || ((ulong)Requirements & (ulong)requirementsToCheck) > 0;
Пример #4
0
 public override bool CanBeOpenedWith(Requirement obtainedRequirements) =>
 Requirements == Requirement.None || Requirements.Contains(obtainedRequirements);
Пример #5
0
 public RequirementGate(Requirement requirements)
 {
     Requirements = requirements;
 }
Пример #6
0
 public ItemLocation(ItemKey key, string areaName, string name, ItemInfo defaultItem, Requirement requiredRequirements)
     : this(key, areaName, name, defaultItem, (Gate)requiredRequirements)
 {
 }