Example #1
0
 public SimpleYieldModifyingFeature(string name, StaticFeatureResolver <T> resolver, IYieldModifer modifier,
                                    TileYieldModifierPriority priority) :
     base(name, resolver)
 {
     _modifier = modifier;
     Priority  = priority;
 }
Example #2
0
        public SimpleYieldModifyingFeature(string name, StaticFeatureResolver <T> resolver, YieldManager yieldManager,
                                           YieldModifierType type, double[] modifiers, TileYieldModifierPriority priority) :
            base(name, resolver)
        {
            switch (type)
            {
            case YieldModifierType.Addition:
                _modifier = new AdditionYieldModifer(yieldManager, modifiers);
                break;

            case YieldModifierType.Multiplication:
                _modifier = new MultiplicationYieldModifier(yieldManager, modifiers);
                break;

            default:
                throw new ArgumentException("Unknown modifier type");
            }
            Priority = priority;
        }
Example #3
0
 public TerrainFeature(string name, StaticFeatureResolver <T> resolver, IYieldModifer modifier) : base(name, resolver, modifier, TileYieldModifierPriority.Terrain)
 {
 }
 public TerrainBiome(string name, StaticFeatureResolver <TerrainBiome> resolver, IYieldModifer modifier) : base(name, resolver, modifier)
 {
 }
 public TerrainVegetation(string name, StaticFeatureResolver <TerrainVegetation> resolver, IYieldModifer modifier) : base(name, resolver, modifier)
 {
 }
 public TerrainLandform(string name, StaticFeatureResolver <TerrainLandform> resolver, IYieldModifer modifier) : base(name, resolver, modifier)
 {
 }