summaryrefslogtreecommitdiff
path: root/source/dw.rs
blob: e4be42382a6617732e8fb300b6f55587e88ce3e4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright 2023 Gabriel Jensen.

pub struct Vertyp<T> {
	pub maj: T,
	pub min: T,
	pub pat: T,
}

pub const VER: Vertyp::<u64> = Vertyp::<u64> {
	maj: 0x0,
	min: 0x3,
	pat: 0x0,
};

#[allow(dead_code)]
pub struct Pos<T> {
	x: T,
	y: T,
	z: T,
}

#[allow(dead_code)]
pub struct Cub {
	//pos
}

pub const fn datpth() -> &'static str {
	if cfg!(unix) {
		//return "/usr/share/local/deltaworld";
		return "/home/delta/Repositories/deltaworld"
	}
	else {
		panic!("data directory not found");
	}
}

pub mod app;