Colony
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/v2defaultParams( ) → void
clampWorld(v: ?) → void
| arg | type | description |
|---|---|---|
| v | ? |
cellIndex(x: ?, z: ?) → void
| arg | type | description |
|---|---|---|
| x | ? | |
| z | ? |
safeDestroy(id: ?) → void
| arg | type | description |
|---|---|---|
| id | ? |
allocField( ) → void
clearField( ) → void
sampleAt(ch: ?, x: ?, z: ?) → void
| arg | type | description |
|---|---|---|
| ch | ? | |
| x | ? | |
| z | ? |
depositAt(ch: ?, x: ?, z: ?, amt: ?) → void
| arg | type | description |
|---|---|---|
| ch | ? | |
| x | ? | |
| z | ? | |
| amt | ? |
stepField( ) → void
emitNest( ) → void
allocAnts(count: ?) → void
| arg | type | description |
|---|---|---|
| count | ? |
resizeAnts(count: ?) → void
| arg | type | description |
|---|---|---|
| count | ? |
removeAnt(k: ?) → void
| arg | type | description |
|---|---|---|
| k | ? |
wrapAngle(a: ?) → void
| arg | type | description |
|---|---|---|
| a | ? |
isObstacleWorld(x: ?, z: ?) → void
| arg | type | description |
|---|---|---|
| x | ? | |
| z | ? |
stepAnts(dt: ?) → void
| arg | type | description |
|---|---|---|
| dt | ? |
buildOverlay( ) → void
bindFieldTexture( ) → void
updateFieldTexture( ) → void
buildAntMesh( ) → void
updateAntMesh( ) → void
buildNest( ) → void
buildCamera( ) → void
moveNest(x: ?, z: ?) → void
| arg | type | description |
|---|---|---|
| x | ? | |
| z | ? |
foodScale(amt: ?) → void
| arg | type | description |
|---|---|---|
| amt | ? |
placeFood(x: ?, z: ?, amt: ?) → void
| arg | type | description |
|---|---|---|
| x | ? | |
| z | ? | |
| amt | ? |
markWallObstacle(x: ?, z: ?, on: ?) → void
| arg | type | description |
|---|---|---|
| x | ? | |
| z | ? | |
| on | ? |
placeWall(x: ?, z: ?) → void
| arg | type | description |
|---|---|---|
| x | ? | |
| z | ? |
eraseAt(x: ?, z: ?) → void
| arg | type | description |
|---|---|---|
| x | ? | |
| z | ? |
spawnPred(x: ?, z: ?) → void
| arg | type | description |
|---|---|---|
| x | ? | |
| z | ? |
spawnPredAtEdge( ) → void
clearPreds( ) → void
stepPreds(dt: ?) → void
| arg | type | description |
|---|---|---|
| dt | ? |
startRain( ) → void
stopRain( ) → void
stepRain(dt: ?) → void
| arg | type | description |
|---|---|---|
| dt | ? |
stepEconomy(dt: ?) → void
| arg | type | description |
|---|---|---|
| dt | ? |
clearPlaced( ) → void
applyParams( ) → void
resetProgress( ) → void
startNewColony( ) → void
resetColony( ) → void
serialize( ) → void
saveGame( ) → void
loadSave( ) → void
continueColony( ) → void
playOneShot(urlKey: ?, vol: ?) → void
| arg | type | description |
|---|---|---|
| urlKey | ? | |
| vol | ? |
uiClickSound( ) → void
applyAudioVolume( ) → void
initAudio( ) → void
drainSfx(dt: ?) → void
| arg | type | description |
|---|---|---|
| dt | ? |
checkMilestones( ) → void
mouseGround( ) → void
unproject(nz_: ?) → void
| arg | type | description |
|---|---|---|
| nz_ | ? |
handleMouse( ) → void
applyScheme( ) → void
buildStats( ) → void
dispatchCmd(s: ?) → void
| arg | type | description |
|---|---|---|
| s | ? |
lbl(t: ?, size: ?, col: ?) → void
| arg | type | description |
|---|---|---|
| t | ? | |
| size | ? | |
| col | ? |
btn(label: ?, id: ?, active: ?) → void
| arg | type | description |
|---|---|---|
| label | ? | |
| id | ? | |
| active | ? |
menuBtn(label: ?, id: ?) → void
| arg | type | description |
|---|---|---|
| label | ? | |
| id | ? |
sliderBlock(name: ?, id: ?, val: ?, lo: ?, hi: ?) → void
| arg | type | description |
|---|---|---|
| name | ? | |
| id | ? | |
| val | ? | |
| lo | ? | |
| hi | ? |
sliderRow(name: ?, id: ?, val: ?, lo: ?, hi: ?) → void
| arg | type | description |
|---|---|---|
| name | ? | |
| id | ? | |
| val | ? | |
| lo | ? | |
| hi | ? |
buildHUD( ) → void
buildMenu( ) → void
buildPause( ) → void
buildStatsPanel( ) → void
buildToast( ) → void
buildSettings( ) → void
ensureScreens( ) → void
setScreen(name: ?, on: ?, buildFn: ?, sig: ?, held: ?) → void
| arg | type | description |
|---|---|---|
| name | ? | |
| on | ? | |
| buildFn | ? | |
| sig | ? | |
| held | ? |
refreshUI( ) → void
tick(dt: ?) → void
| arg | type | description |
|---|---|---|
| dt | ? |
awake( ) → void
onPropertyChanged(key: ?, val: ?) → void
| arg | type | description |
|---|---|---|
| key | ? | |
| val | ? |
onCallback(id: ?, val: ?) → void
| arg | type | description |
|---|---|---|
| id | ? | |
| val | ? |
update(dt: ?) → void
| arg | type | description |
|---|---|---|
| dt | ? |
editorUpdate(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.