undar-lang/docs/project-example-v1/src/common.ztl

20 lines
193 B
Plaintext

type Vec {
x: f32,
y: f32,
z: f32,
}
type Color {
r: i8,
g: i8,
b: i8,
}
type Player {
username: str,
pos: Vec,
color: Color,
}
const purple = Color(255, 255, 0);