Example #1
0
 public TerrainManager(Settings s)
 {
     Pool = new TerrainPool();
     VertexGen = new VertexGenerator(s);
     settings = s;
     InstantiateTerrainObject();
 }
Example #2
0
 public PrefabManager(Settings s)
 {
     th = new TransformHelpers();
     Pool = new PrefabPool();
     settings = s;
     InstantiatePrefabManagerObject();
 }
        public VertexGenerator(Settings s)
        {
            TerrainRules = s.Rules;
            settings = s;
            if (TerrainRules == null || TerrainRules.Count == 0)
            {
                throw new System.Exception("Terrain rules required to generate vertices");
            }

            //Move to the first rule
            CurrentTerrainRule = TerrainRules[0];

            //Initialize some other values
            RuleStartLocation = 0;
            CurrentLocation = 0;
            TotalDistanceTraveled = 0;

            LoopRules = true;
        }
Example #4
0
 public MeshPiece(VertexGenerator vg, Plane planeType, Settings s)
 {
     this.vg = vg;
     PlaneType = planeType;
     settings = s;
 }
Example #5
0
 public TerrainPiece(Settings s)
 {
     settings = s;
     MeshPieces = new List<MeshPiece>();
 }