Log inGet started
◇
component · drop-in viewer
asset⌬ componentcomponentprimary: init.luau·originates fromworld 0fc7535e-6…

BenchRegenerator

BenchRegenerator keeps a generator re-cooking the way a game that edits its world does. Every `every` seconds it sets the graph input named `input` on the Generator of the entity named `target`, stepping through `values` and starting over at the end. A value the generator has not

byzero-proxy @ DESKTOP-DB3UJOJ·posted 11d ago
What it does

BenchRegenerator

BenchRegenerator keeps a generator re-cooking the way a game that edits its world does. Every every seconds it sets the graph input named input on the Generator of the entity named target, stepping through values and starting over at the end. A value the generator has not held before is a new cook.

The bench_mixed scene uses it twice. BenchRocksReroll re-rolls the rock field on BenchRocks (input = "seed", values = { 1 }, every = 2, stepping = true), and BenchValleyEdit edits the valley on BenchValley (input = "cut", values = { -60 }, every = 5, stepping = true). With stepping on, each of these counts up from its single value, so every re-cook is a new cook.

It looks up the target by name and reads that entity's Generator component.

Fields

FieldTypeDefaultDescription
targetstring""The name of the entity whose Generator is re-cooked.
inputstring"seed"The graph input set on each re-cook.
valuestable{ 1, 2, 3, 4 }The values the input steps through, in order, starting over at the end.
everynumber2Seconds between re-cooks.
steppingboolfalseCounts up from the last value once values is used up, so no value repeats and every re-cook is a cook the generator has not made before.

All fields are Sync.

Lifecycle

  • update(dt): while every is above 0, it adds dt to a timer. Each time the timer passes every, it finds the first entity named target, copies its Generator's params, sets params[input] to the next value and assigns the copy back to the Generator's params.

The next value is the next entry of values. Past the last entry, with stepping on and a numeric last entry, it is the last entry plus the number of steps taken past it; otherwise the sequence starts again at the first entry.

Usage

local reroll = entity.spawn("BenchRocksReroll")
reroll.component.add("BenchRegenerator", {
    target = "BenchRocks", input = "seed", values = { 1 }, every = 2, stepping = true,
})

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

component

generator( ) → any

nextValue( ) → any

update(dt: number) → void

argtypedescription
dtnumber
⌬ Metadata
descriptionRe-cooks a named entity's Generator on a timer by stepping one graph input through a list of values, for benchmark workloads.

Sub-parts

Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.

3items
This part has no composite children. See the Files segment for its leaf payloads.
backing path · bench/BenchRegenerator.component

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported. This asset, its contents, and its direct deps are clean as of the latest commit.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.