This commit is contained in:
zoe 2022-05-02 19:22:05 +02:00
parent a95e7cd77b
commit f5a5def3e3
3 changed files with 15 additions and 2 deletions

View file

@ -1,11 +1,19 @@
use gdnative::prelude::*;
use lazy_static::lazy_static;
use pathfinding::matrix;
use tokio::sync::RwLock;
mod terrain;
mod pathing;
enum Tiles {
terrain(terrain::Terrain),
path(pathing::Path)
}
lazy_static! {
// static ref STATE: RwLock<Vector3> = RwLock::new(Vector3::new(1.0, 2.0, 3.0));
static ref STATE: RwLock<matrix::Matrix<Vec<terrain::Terrain>>> = RwLock::new(matrix![]);
}
#[derive(NativeClass)]

View file

@ -0,0 +1,5 @@
use pathfinding::prelude::astar;
pub enum Path {
}

View file

@ -1,6 +1,6 @@
use gdnative::prelude::*;
#[derive(Debug, FromVariant, ToVariant)]
enum Terrain {
pub enum Terrain {
Earth,
Rock,
Sand,