rename none to null
This commit is contained in:
@@ -40,7 +40,7 @@ Ball :: struct {
|
||||
}
|
||||
|
||||
# A frame's worth of player intent, as a tagged union. Each arm carries exactly
|
||||
# the data that action needs (or `void` when it needs none).
|
||||
# the data that action needs (or `void` when it needs null).
|
||||
Command :: union(enum) {
|
||||
spawn rl.Vector2 # spawn a shape at this point
|
||||
push struct { dx f32, dy f32 } # blow every shape this way
|
||||
@@ -213,7 +213,7 @@ main func() i32 {
|
||||
sel :: for 0..(count) |i| hover: {
|
||||
c rl.Vector2 = rl.Vector2{ x = balls[i].x, y = balls[i].y }
|
||||
if rl.CheckCollisionPointCircle(mouse, c, balls[i].radius) yield :hover i
|
||||
yield none
|
||||
yield null
|
||||
}
|
||||
|
||||
# --- draw -----------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user