mirror of
https://git.kittycat.homes/zoe/codename-routes.git
synced 2024-08-15 03:18:26 +00:00
eeeee
This commit is contained in:
parent
a95e7cd77b
commit
f5a5def3e3
3 changed files with 15 additions and 2 deletions
|
@ -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)]
|
||||
|
|
5
routes-native/src/stateserver/pathing.rs
Normal file
5
routes-native/src/stateserver/pathing.rs
Normal file
|
@ -0,0 +1,5 @@
|
|||
use pathfinding::prelude::astar;
|
||||
|
||||
pub enum Path {
|
||||
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
use gdnative::prelude::*;
|
||||
#[derive(Debug, FromVariant, ToVariant)]
|
||||
enum Terrain {
|
||||
pub enum Terrain {
|
||||
Earth,
|
||||
Rock,
|
||||
Sand,
|
||||
|
|
Loading…
Reference in a new issue