mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
checker: implement [required]
struct field attribute (#6276)
This commit is contained in:
@ -180,7 +180,7 @@ fn (t TileLine) to_left() TileLine {
|
||||
fn (b Board) to_left() Board {
|
||||
mut res := b
|
||||
for y := 0; y < 4; y++ {
|
||||
mut hline := TileLine{y}
|
||||
mut hline := TileLine{ypos: y}
|
||||
for x := 0; x < 4; x++ {
|
||||
hline.field[x] = b.field[y][x]
|
||||
}
|
||||
|
@ -36,7 +36,7 @@ mut:
|
||||
fn (mut a App) init() {
|
||||
a.frame = 0
|
||||
a.last = time.ticks()
|
||||
a.ps = particle.System{a.width, a.height}
|
||||
a.ps = particle.System{width: a.width, height: a.height}
|
||||
a.ps.init(particle.SystemConfig{
|
||||
pool: 20000
|
||||
})
|
||||
|
Reference in New Issue
Block a user