Major progress in introducing arbitrary boundaries! EDT in the house.

This commit is contained in:
2025-12-08 21:14:30 -05:00
parent 45b286b66e
commit 48df951042
8 changed files with 521 additions and 29 deletions

19
fluid/boundary.go Normal file
View File

@@ -0,0 +1,19 @@
package fluid
type BoundaryDimensions struct {
X int
Y int
}
type Boundary struct {
Dimensions BoundaryDimensions
Cells []bool
}
func NewBoundary(dimensions BoundaryDimensions) *Boundary {
b := &Boundary{
Dimensions: dimensions,
Cells: make([]bool, dimensions.X*dimensions.Y),
}
return b
}