did some restructoring of Scripts and Assets for more overview and structure

This commit is contained in:
2026-01-14 21:13:40 +01:00
parent 37f3f50157
commit b13336522e
139 changed files with 4822 additions and 2 deletions

View File

@@ -0,0 +1,26 @@
using UnityEngine;
/// <summary>
/// Component attached to tile prefab roots to store geo metadata.
/// Useful for positioning prefabs in scene or querying tile info at runtime.
/// </summary>
public class GeoTileMetadata : MonoBehaviour
{
public string tileId;
public double xmin;
public double ymin;
public double globalMin;
public double globalMax;
/// <summary>
/// Returns the world position this tile should be placed at, given a global origin.
/// </summary>
public Vector3 GetWorldPosition(double originX, double originY)
{
return new Vector3(
(float)(xmin - originX),
(float)globalMin,
(float)(ymin - originY)
);
}
}