riversong code showcase
This commit is contained in:
18
Source/Riversong/Game/CommonServices/TileMath/ITileSpace.cs
Normal file
18
Source/Riversong/Game/CommonServices/TileMath/ITileSpace.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user