65 lines
2.2 KiB
C#
65 lines
2.2 KiB
C#
// Copyright © 2018 Procedural Worlds Pty Limited. All Rights Reserved.
|
|
using UnityEngine;
|
|
using System.Collections.Generic;
|
|
using static Gaia.GaiaConstants;
|
|
using System.Linq;
|
|
|
|
/*
|
|
* Scriptable Object containing the stored terrain metadata for loading terrain scenes plus additional world metadata like terrain tilesize etc.
|
|
*/
|
|
|
|
namespace Gaia
|
|
{
|
|
[System.Serializable]
|
|
public class TerrainSceneStorage : ScriptableObject
|
|
{
|
|
/// <summary>
|
|
/// Enables / Disables Terrain Loading on a global level.
|
|
/// </summary>
|
|
public bool m_terrainLoadingEnabled = true;
|
|
|
|
/// <summary>
|
|
/// The number of terrain tiles on the X axis
|
|
/// </summary>
|
|
public int m_terrainTilesX = 1;
|
|
|
|
/// <summary>
|
|
/// The number of terrain tiles on the Z axis
|
|
/// </summary>
|
|
public int m_terrainTilesZ = 1;
|
|
|
|
/// <summary>
|
|
/// The size of the individual terrain tiles
|
|
/// </summary>
|
|
public int m_terrainTilesSize;
|
|
|
|
/// <summary>
|
|
/// Set to true if the scene uses the floating point fix
|
|
/// </summary>
|
|
public bool m_useFloatingPointFix;
|
|
|
|
/// <summary>
|
|
/// Set to true if the scene has a world map. Used to not unneccessarily look for a world map in the scene.
|
|
/// </summary>
|
|
public bool m_hasWorldMap;
|
|
|
|
/// <summary>
|
|
/// The relative size of the world map in comparison to the actual terrain, e.g. 0.25% of the size of the full terrain.
|
|
/// This info is used to calculate things like the relative sea level on the world map.
|
|
/// </summary>
|
|
public float m_worldMaprelativeSize = 0.5f;
|
|
|
|
/// <summary>
|
|
/// The relative size to heightmap pixel ratio between world map and local map
|
|
/// This info is used to calculate heightmap relative things between world map and local map, e.g. stamper size
|
|
/// </summary>
|
|
public float m_worldMapRelativeHeightmapPixels = 1f;
|
|
|
|
|
|
/// <summary>
|
|
/// Holds all terrain scenes in a multi-terrain scenario with exported terrains.
|
|
/// </summary>
|
|
public List<TerrainScene> m_terrainScenes = new List<TerrainScene>();
|
|
}
|
|
}
|