コード例 #1
0
        public override bool IsIncompatibleWith(ResearchNetPuzzleDefinition definition)
        {
            ResearchNetResearchPuzzleDefinition otherDef = definition as ResearchNetResearchPuzzleDefinition;

            if (otherDef == null)
            {
                return(false);
            }
            // The enum constants aren't available at runtime, so we can't use Enum.GetValues().
            // The best we can do is to hardcode the last enum member like this.
            for (int i = 0; i <= (int)FeatureType.Splitter; i++)
            {
                FeatureType featureType = (FeatureType)i;
                if (GetFeatureCount(featureType) != otherDef.GetFeatureCount(featureType))
                {
                    return(true);
                }
            }
            return(false);
        }
コード例 #2
0
 public override bool IsIncompatibleWith(ResearchNetPuzzleDefinition definition)
 {
     // This method isn't used by the patcher, it's just here to make the compiler happy.
     return(false);
 }