Example #1
0
        public WaterGenerator(byte[] options, bool applyFixes = false)
        {
            this.waveshape           = (Waveshape)options[0];
            this.watercolor          = (Watercolor)options[1];
            this.reflection          = (Reflection)options[2];
            this.refraction          = (Refraction)options[3];
            this.bankalpha           = (Bankalpha)options[4];
            this.appearance          = (Appearance)options[5];
            this.global_shape        = (Global_Shape)options[6];
            this.foam                = (Foam)options[7];
            this.reach_compatibility = options.Length > 8 ? (Reach_Compatibility)options[8] : Reach_Compatibility.Disabled;

            ApplyFixes = applyFixes;
            TemplateGenerationValid = true;
        }
Example #2
0
        public WaterGenerator(Waveshape waveshape, Watercolor watercolor, Reflection reflection, Refraction refraction,
                              Bankalpha bankalpha, Appearance appearance, Global_Shape global_shape, Foam foam, Reach_Compatibility reach_compatibility, bool applyFixes = false)
        {
            this.waveshape           = waveshape;
            this.watercolor          = watercolor;
            this.reflection          = reflection;
            this.refraction          = refraction;
            this.bankalpha           = bankalpha;
            this.appearance          = appearance;
            this.global_shape        = global_shape;
            this.foam                = foam;
            this.reach_compatibility = reach_compatibility;

            ApplyFixes = applyFixes;
            TemplateGenerationValid = true;
        }