automated snapshot
This commit is contained in:
@@ -7,24 +7,24 @@ import (
|
||||
)
|
||||
|
||||
type ContourLayer struct {
|
||||
field Field
|
||||
actors []*Actor
|
||||
rng *rand.Rand
|
||||
field Field
|
||||
actors []*Actor
|
||||
rng *rand.Rand
|
||||
}
|
||||
|
||||
func NewContourLayer(sketch *Sketch, rng *rand.Rand, field Field) ContourLayer {
|
||||
func NewContourLayer(sketch *Sketch, rng *rand.Rand, field Field) *ContourLayer {
|
||||
|
||||
actors := make([]*Actor, 0)
|
||||
|
||||
layer := ContourLayer {
|
||||
rng: rng,
|
||||
field: field,
|
||||
actors: actors,
|
||||
actors: actors,
|
||||
}
|
||||
|
||||
layer.AddActors(1, sketch.sourceWidth, sketch.sourceHeight)
|
||||
|
||||
return layer
|
||||
return &layer
|
||||
}
|
||||
|
||||
func (s *ContourLayer) AddActors(n, sourceWidth, sourceHeight int32) {
|
||||
|
||||
Reference in New Issue
Block a user