26 lines
No EOL
249 B
V
26 lines
No EOL
249 B
V
module main
|
|
|
|
struct Cell {
|
|
mut:
|
|
// XXX pos
|
|
x int
|
|
y int
|
|
|
|
z int
|
|
tile_id int
|
|
|
|
wall &Wall // XXX use wall_id?
|
|
}
|
|
|
|
fn new_cell() Cell {
|
|
c := Cell{
|
|
wall: &Wall{0},
|
|
}
|
|
|
|
return c
|
|
}
|
|
|
|
fn (c &Cell) draw() {
|
|
println("panic: not implemented")
|
|
pp(1)
|
|
} |