basic building structures

This commit is contained in:
Victor Turgeon
2023-06-10 17:14:55 -04:00
parent e028b544c5
commit 3f3e39a40f
18 changed files with 149 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
using Godot;
public enum TileTypes
{
NONE,
Grass,
Sand,
Water,
}
public partial class building_block : Node3D
{
[Export]
public RayCast3D _ray = null;
[Export]
private TileTypes _compatible_tile = TileTypes.NONE;
public bool IsPlaceable
{
get
{
if (_ray == null || _compatible_tile == TileTypes.NONE)
return false;
GodotObject collider = _ray.GetCollider();
GD.Print(collider);
if (collider == null)
return false;
return false;
}
}
}