Log inGet started
▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·part ofassettype effect.assetType·originates fromworld 07158574-5…●3problems

shared

What the effect type and its Effect component share: which of an entry's graphs takes each input, and the plays `effectRef:play` hands out and keeps to play again.

by◐lumi·posted 1mo ago
What it does

effect shared

What the effect type and its Effect component share: which of an entry's graphs takes each input, and the plays effectRef:play hands out and keeps to play again.

Interface

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

conforms to

zero/source-extract/v2

module EffectShared What the effect type and its Effect component share: which of an entry's graphs takes each input, and the plays the type handed out and keeps to play again. An entry is what `effectRef:entry(name)` answers.

setDefaultSize(path: string, count: number) → void

Set the pool size every entry of the effect at `path` keeps until warm() sizes it.

argtypedescription
pathstring
countnumber

defaultSize(path: string) → number

The pool size every entry of the effect at `path` keeps until warm() sizes it.

argtypedescription
pathstring

countInUse(path: string, entry: string, delta: number) → void

argtypedescription
pathstring
entrystring
deltanumber

keptCount(path: string, entry: string) → number

How many plays of `entry` are kept, ready or preparing.

argtypedescription
pathstring
entrystring

total(path: string, entry: string) → number

How many plays of `entry` there are: kept ones, ready or preparing, and ones playing now. The pool size counts both, so plays are built while fewer exist and a finished one always goes back while the pool is not over its size.

argtypedescription
pathstring
entrystring

sortedKeys(t: { [string]: any }) → void

The keys of `t`, sorted.

argtypedescription
t{ [string]: any }

inputs(entry: any) →

The inputs an entry takes: every input any of its graphs declares.

argtypedescription
entryanyAn entry, as `effectRef:entry(name)` answers it.

route(entry: any, inputs: { [string]: any }?) →

Each graph's share of `inputs`: the values of the inputs it declares. input no graph takes named with the inputs the entry takes.

argtypedescription
entryanyAn entry, as `effectRef:entry(name)` answers it.
inputs{ [string]: any }?Values by input name.

generation(path: string) → number

How many times what the effect at `path` plays changed (`dropKept`): a play made under an earlier count plays what the effect held then.

argtypedescription
pathstringThe effect's VFS path.

dropKept(path: string) → void

Let go of every kept play of the effect at `path`: what it plays changed. A play of it out playing now goes when it finishes.

argtypedescription
pathstringThe effect's VFS path.

forget(path: string) → void

The effect at `path` is gone: every play of it ends, the ones out playing too and the ones that stay once finished, each still playing telling its listeners it finished, and nothing is kept of it.

argtypedescription
pathstringThe effect's VFS path.

setProgrammed(path: string, entry: string, on: boolean) → void

State whether a program plays `entry` of the effect at `path`: it keeps no plays ready while one does, and the plays it kept are let go of.

argtypedescription
pathstringThe effect's VFS path.
entrystringThe entry's name.
onbooleanWhether a program plays the entry.

isProgrammed(path: string, entry: string) → boolean

Whether a program plays `entry` of the effect at `path`.

argtypedescription
pathstring
entrystring

setSize(path: string, entry: string, count: number) → void

Set how many plays of `entry` of the effect at `path` are kept ready. A count below the one set before also lets go of the plays the entry grew to keep past it (`size`); ready plays past the size are let go.

argtypedescription
pathstringThe effect's VFS path.
entrystringThe entry's name.
countnumberWhole number >= 0.

stated(path: string, entry: string) → number

The count `warm` or the effect's `pool` setting states for `entry`, whatever a program plays it.

argtypedescription
pathstringThe effect's VFS path.
entrystringThe entry's name.

size(path: string, entry: string) → number

How many plays of `entry` are kept ready: the count `warm` or the effect's `pool` setting gives it, or as many of its plays as played at once past that count, up to `MOST_PLAYING`, when more did.

argtypedescription
pathstring
entrystring

ready(path: string, entry: string) → number

How many kept plays of `entry` are ready now: built, and their graphs done with the work their first play needs.

argtypedescription
pathstring
entrystring

listFor(path: string, entry: string) → void

argtypedescription
pathstring
entrystring

add(path: string, entry: string, e: any, stillPreparing: boolean?) → void

Put a play made ahead of time among the kept plays of its entry: it waits disabled and out of the scene's hierarchy. A play still preparing counts as ready once `prepared` is called for it.

argtypedescription
pathstringThe effect's VFS path.
entrystringThe entry's name.
eanyThe play's entity, carrying a bound Effect component.
stillPreparingboolean?Whether its graphs are still doing the work its first play needs.

prepared(entityId: string) → void

A kept play's graphs are done with the work its first play needs.

argtypedescription
entityIdstringThe play's entity.

isPreparing(entityId: string) → boolean

Whether the kept play `entityId` is still doing the work its first play needs.

argtypedescription
entityIdstringThe play's entity.

onKept(fn: (any) → void

Name what is done with each play that goes back among the kept plays: it counts as preparing until `prepared` is called for it.

argtypedescription
fn(anyCalled with the play's entity.

most(path: string, entry: string) → number

How many plays of `entry` of the effect at `path` that end on their own may be out playing at once: its pool size, and never fewer than `MOST_PLAYING`.

argtypedescription
pathstring
entrystring

orderFor(path: string, entry: string) → void

The plays of `entry` out playing now that end on their own and go back once finished, oldest first.

argtypedescription
pathstring
entrystring

leaveOrder(record: any) → void

argtypedescription
recordany

playing(path: string, entry: string) → number

How many plays of `entry` of the effect at `path` are out playing now that end on their own and go back once finished: the ones `most` counts.

argtypedescription
pathstring
entrystring

endTaken(list: { any }, i: number, record: any) → any

End the play of `record`, at `i` of the plays out `list`, for its entity to play another: its handle reads finished, its listeners are told, and the entity is answered, or nil when it is gone.

argtypedescription
list{ any }
inumber
recordany

takeOver(path: string, entry: string) → any

The oldest play of `entry` out playing that ends on its own, taken over for the next such play when the entry has `most` of them out: its play ends there, its handle reads finished and its listeners are told, and its entity is handed back to be played again. The plays it takes over are the ones `handOut` was told end on their own, of what the effect holds now. while the entry has fewer than `most` plays out.

argtypedescription
pathstringThe effect's VFS path.
entrystringThe entry's name.

take(path: string, entry: string) →

A kept play of `entry` of the effect at `path`, or nil when none is kept. needs) rather than still preparing.

argtypedescription
pathstringThe effect's VFS path.
entrystringThe entry's name.

begun(record: any) → boolean

Whether a play out now plays: it was ready when it was handed out, or its clock has moved since.

argtypedescription
recordany

handOut(e: any, path: string, entry: string, stays: boolean, ends: boolean, ready: boolean?) → any

Hand a play out: who to tell when it finishes, and whether it stays where it is once finished instead of going back to the kept plays. finished counts toward the entry's `most`, and is the one `takeOver` takes.

argtypedescription
eanyThe play's entity.
pathstringThe effect's VFS path.
entrystringThe entry's name.
staysbooleanWhether the play stays once finished.
endsbooleanWhether the play reaches the end of its timelines and finishes there: such a play that goes back once
readyboolean?Whether the play was ready when handed out: a kept play done with the work its first play needs.

current(record: any) → boolean

Whether `record` is still the play its entity is playing.

argtypedescription
recordany

keep(record: any) → void

Take a handed-out play back: pause it, take it out of the scene and keep it ready for the next play of its entry, or let it go when the entry already has as many plays, ready and playing, as its pool size, or when what the effect plays changed since it was handed out.

argtypedescription
recordanyThe play's record.

stopped(entityId: string) → boolean

Called by an Effect component told to stop. A play the effect type handed out goes back to the kept plays.

argtypedescription
entityIdstringThe Effect component's entity.

finished(entityId: string) → void

Called by an Effect component when every graph of its entry has finished. A play the effect type handed out tells its listeners, and goes back to the kept plays unless it stays.

argtypedescription
entityIdstringThe Effect component's entity.

Problems

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

These counts cover only the parts this page shows. Problems on the parts it leaves out are not counted here.

3+problems

Inside

3 problems across 1 item
●
dep.unresolved · L401
could not resolve `Effect`
●
dep.unresolved · L495
could not resolve `Effect`
●
dep.unresolved · L568
could not resolve `Effect`
⌬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.