WaterSort
A component script.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2markDirty( ) → void
deepcopyTubes(src: ?) → void
| arg | type | description |
|---|---|---|
| src | ? |
makeRng(seed: ?) → void
| arg | type | description |
|---|---|---|
| seed | ? |
topRun(tube: ?) → void
| arg | type | description |
|---|---|---|
| tube | ? |
canPour(src: ?, dst: ?) → void
| arg | type | description |
|---|---|---|
| src | ? | |
| dst | ? |
tubeDone(tube: ?) → void
| arg | type | description |
|---|---|---|
| tube | ? |
isWin( ) → void
anyLegalMove( ) → void
specForLevel(id: ?) → void
| arg | type | description |
|---|---|---|
| id | ? |
solve(state0: ?) → void
| arg | type | description |
|---|---|---|
| state0 | ? |
done(tube: ?) → void
| arg | type | description |
|---|---|---|
| tube | ? |
win(st: ?) → void
| arg | type | description |
|---|---|---|
| st | ? |
key(st: ?) → void
| arg | type | description |
|---|---|---|
| st | ? |
trun(tube: ?) → void
| arg | type | description |
|---|---|---|
| tube | ? |
dfs(st: ?) → void
| arg | type | description |
|---|---|---|
| st | ? |
scramble(spec: ?, seed: ?, mixed: ?) → void
| arg | type | description |
|---|---|---|
| spec | ? | |
| seed | ? | |
| mixed | ? |
ri(n: ?) → void
| arg | type | description |
|---|---|---|
| n | ? |
genLevel(spec: ?, baseSeed: ?) → void
| arg | type | description |
|---|---|---|
| spec | ? | |
| baseSeed | ? |
encodeSave( ) → void
decodeSave(s: ?) → void
| arg | type | description |
|---|---|---|
| s | ? |
persist( ) → void
loadSave( ) → void
musicVolume( ) → void
sfxVolume( ) → void
ensureAudio( ) → void
sfx(name: ?, pitch: ?) → void
| arg | type | description |
|---|---|---|
| name | ? | |
| pitch | ? |
refreshMusicVolume( ) → void
teardownAudio( ) → void
snapshot( ) → void
starsFor(m: ?, p: ?) → void
| arg | type | description |
|---|---|---|
| m | ? | |
| p | ? |
startLevel(id: ?) → void
| arg | type | description |
|---|---|---|
| id | ? |
finishWin( ) → void
pour(srcIdx: ?, dstIdx: ?) → void
| arg | type | description |
|---|---|---|
| srcIdx | ? | |
| dstIdx | ? |
onTubeTap(i: ?) → void
| arg | type | description |
|---|---|---|
| i | ? |
undo( ) → void
restartLevel( ) → void
addTube( ) → void
lbl(text: ?, style: ?) → void
| arg | type | description |
|---|---|---|
| text | ? | |
| style | ? |
btn(text: ?, id: ?, style: ?) → void
| arg | type | description |
|---|---|---|
| text | ? | |
| id | ? | |
| style | ? |
starStr(n: ?) → void
| arg | type | description |
|---|---|---|
| n | ? |
buildTube(idx: ?) → void
| arg | type | description |
|---|---|---|
| idx | ? |
buildRack( ) → void
topBar( ) → void
bottomBar( ) → void
buildGame( ) → void
centerCard(title: ?, children: ?, grad: ?) → void
| arg | type | description |
|---|---|---|
| title | ? | |
| children | ? | |
| grad | ? |
buildMenu( ) → void
buildLevelSelect( ) → void
sliderRow(label: ?, valueId: ?, value: ?) → void
| arg | type | description |
|---|---|---|
| label | ? | |
| valueId | ? | |
| value | ? |
buildSettings( ) → void
buildPause( ) → void
buildResults( ) → void
build( ) → void
onCallback(id: ?, data: ?) → void
| arg | type | description |
|---|---|---|
| id | ? | |
| data | ? |
snapshotState( ) → void
tick(dt: ?) → void
| arg | type | description |
|---|---|---|
| dt | ? |
awake( ) → void
editorUpdate(dt: ?) → void
| arg | type | description |
|---|---|---|
| dt | ? |
update(dt: ?) → void
| arg | type | description |
|---|---|---|
| dt | ? |
onDestroy( ) → void
Sub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
Problems
Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.
agent_score is exposed.+ 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".
Scoped to this part · feeds back into the world's score.