remove unused files

This commit is contained in:
Rusty Striker 2024-10-18 19:50:55 +03:00
parent af11db6f55
commit 4a0673bde5
Signed by: RustyStriker
GPG key ID: 87E4D691632DFF15
4 changed files with 0 additions and 47 deletions

View file

@ -8,7 +8,6 @@ use tokio::sync::{broadcast, mpsc};
pub mod api; pub mod api;
pub mod game; pub mod game;
pub mod pathfinder2r_impl; pub mod pathfinder2r_impl;
pub mod table;
pub mod user; pub mod user;
#[derive(Serialize, Deserialize)] #[derive(Serialize, Deserialize)]

View file

@ -1,9 +0,0 @@
use crate::user::User;
pub struct Entity {
/// Id will be an increasing u64, which might cause problems if the game has (way too) many entities
pub id: u64,
pub owner: User
}

View file

@ -1,4 +0,0 @@
mod texture;
pub mod entity;
pub use texture::*;

View file

@ -1,33 +0,0 @@
pub enum Grid {
Square { width: u32 },
Hexagon { width: u32 },
Triangle { width: u32 },
}
/// Texture directory source and file
pub enum TextureSource {
// TODO: I think os string would better fit
/// Server's shared textures directory
Shared(String),
/// Custom table directory
Custom(String),
/// Game shared textures directory
Game(String),
}
pub enum TextureType {
Image,
Token,
Map {
/// Grid type and size
grid: Grid,
/// grid offset from (0, 0)
grid_offset: (i32, i32),
}
}
pub struct Texture {
pub source: TextureSource,
pub ttype: TextureType,
}