remove unused files
This commit is contained in:
parent
af11db6f55
commit
4a0673bde5
4 changed files with 0 additions and 47 deletions
|
@ -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)]
|
||||||
|
|
|
@ -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
|
|
||||||
}
|
|
|
@ -1,4 +0,0 @@
|
||||||
mod texture;
|
|
||||||
pub mod entity;
|
|
||||||
|
|
||||||
pub use texture::*;
|
|
|
@ -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,
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue