123456789101112131415161718192021222324252627282930 |
- #pragma once
- #include <ReferenceCounter.h>
- #include <Vec3.h>
- #include "GeneratedStructure.h"
- #include "Noise.h"
- class GeneratorTemplate : public Framework::ReferenceCounter
- {
- private:
- float propability;
- Framework::Vec3<int> minPosOffset;
- Framework::Vec3<int> maxSize;
- public:
- GeneratorTemplate(float propability,
- Framework::Vec3<int> minPosOffset,
- Framework::Vec3<int> maxSize);
- virtual bool canEffect(Framework::Vec3<int> location,
- Framework::Vec3<int> affectedLocation) const;
- virtual GeneratedStructure* generateAt(
- Framework::Vec3<int> location, Noise* zNoise, int dimensionId)
- = 0;
- float getPropability() const;
- Framework::Vec3<int> getMinAffectedOffset() const;
- Framework::Vec3<int> getMaxAffectedOffset() const;
- };
|