create skeleton for server from design

This commit is contained in:
2019-04-20 01:24:19 +02:00
parent 6f86302e06
commit 88fae2cba4
10 changed files with 277 additions and 245 deletions

View File

@ -0,0 +1,20 @@
// TODO: remove on implementation
#![allow(unused_imports)]
#![allow(unused_variables)]
#![allow(dead_code)]
pub struct Sha256(pub [u8; 64]);
pub struct Texture {
pub id: String,
pub name: String,
pub tags: Vec<String>,
pub format: TextureFormat,
pub resolution: (usize, usize),
pub texture_hash: Sha256,
}
pub enum TextureFormat {
PNG,
JPEG,
}