18 lines
388 B
C#
18 lines
388 B
C#
using Unity.Mathematics;
|
|
using UnityEngine;
|
|
|
|
namespace DanieleMarotta.RiversongCodeShowcase
|
|
{
|
|
public interface ITileSpace
|
|
{
|
|
float TileSize { get; }
|
|
|
|
int2 WorldToTile(Vector3 position);
|
|
|
|
Vector3 TileToWorld(int2 tile, float tileX = 0.5f, float tileY = 0.5f);
|
|
|
|
int GetElevation(float y);
|
|
|
|
Vector3 GetRectWorldCenter(in TileRect rect);
|
|
}
|
|
} |