public TerrainManager(Settings s) { Pool = new TerrainPool(); VertexGen = new VertexGenerator(s); settings = s; InstantiateTerrainObject(); }
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; }
public MeshPiece(VertexGenerator vg, Plane planeType, Settings s) { this.vg = vg; PlaneType = planeType; settings = s; }
public TerrainPiece(Settings s) { settings = s; MeshPieces = new List<MeshPiece>(); }