AwGame
A module script.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2setRandom(fn: (number, number) → void
| arg | type | description |
|---|---|---|
| fn | (number, number |
newGame(mapDef: ?, coPlayer: string, coAi: string, opts: ?) → void
| arg | type | description |
|---|---|---|
| mapDef | ? | |
| coPlayer | string | |
| coAi | string | |
| opts | ? |
spawnUnit(state: ?, utype: string, side: number, x: number, y: number, exhausted: boolean?) → void
| arg | type | description |
|---|---|---|
| state | ? | |
| utype | string | |
| side | number | |
| x | number | |
| y | number | |
| exhausted | boolean? |
inBounds(state: ?, x: ?, y: ?) → void
| arg | type | description |
|---|---|---|
| state | ? | |
| x | ? | |
| y | ? |
terrainAt(state: ?, x: ?, y: ?) → void
| arg | type | description |
|---|---|---|
| state | ? | |
| x | ? | |
| y | ? |
unitAt(state: ?, x: ?, y: ?) → void
| arg | type | description |
|---|---|---|
| state | ? | |
| x | ? | |
| y | ? |
unitsOf(state: ?, side: ?) → void
| arg | type | description |
|---|---|---|
| state | ? | |
| side | ? |
displayHp(u: ?) → void
| arg | type | description |
|---|---|---|
| u | ? |
propertiesOf(state: ?, side: ?) → void
| arg | type | description |
|---|---|---|
| state | ? | |
| side | ? |
hqOf(state: ?, side: ?) → void
| arg | type | description |
|---|---|---|
| state | ? | |
| side | ? |
moveRange(state: ?, u: ?) → void
| arg | type | description |
|---|---|---|
| state | ? | |
| u | ? |
key(x: ?, y: ?) → void
| arg | type | description |
|---|---|---|
| x | ? | |
| y | ? |
unkey(key: ?) → void
| arg | type | description |
|---|---|---|
| key | ? |
moveUnit(state: ?, u: ?, x: ?, y: ?, cost: ?) → void
| arg | type | description |
|---|---|---|
| state | ? | |
| u | ? | |
| x | ? | |
| y | ? | |
| cost | ? |
manhattan(x1: ?, y1: ?, x2: ?, y2: ?) → void
| arg | type | description |
|---|---|---|
| x1 | ? | |
| y1 | ? | |
| x2 | ? | |
| y2 | ? |
weaponVs(att: ?, defType: ?) → void
| arg | type | description |
|---|---|---|
| att | ? | |
| defType | ? |
attackTargets(state: ?, u: ?, fx: ?, fy: ?, moved: ?) → void
| arg | type | description |
|---|---|---|
| state | ? | |
| u | ? | |
| fx | ? | |
| fy | ? | |
| moved | ? |
coOf(state: ?, side: ?) → void
| arg | type | description |
|---|---|---|
| state | ? | |
| side | ? |
coAttackFactor(state: ?, att: ?) → void
| arg | type | description |
|---|---|---|
| state | ? | |
| att | ? |
calcDamage(state: ?, att: ?, def: ?) → void
| arg | type | description |
|---|---|---|
| state | ? | |
| att | ? | |
| def | ? |
applyDamage(state: ?, att: ?, def: ?, luck: ?) → void
| arg | type | description |
|---|---|---|
| state | ? | |
| att | ? | |
| def | ? | |
| luck | ? |
chargeMeter(state: ?, side: ?, dealt: ?, taken: ?) → void
| arg | type | description |
|---|---|---|
| state | ? | |
| side | ? | |
| dealt | ? | |
| taken | ? |
killUnit(state: ?, u: ?) → void
| arg | type | description |
|---|---|---|
| state | ? | |
| u | ? |
resolveAttack(state: ?, att: ?, def: ?) → void
| arg | type | description |
|---|---|---|
| state | ? | |
| att | ? | |
| def | ? |
canCapture(state: ?, u: ?) → void
| arg | type | description |
|---|---|---|
| state | ? | |
| u | ? |
capture(state: ?, u: ?) → void
| arg | type | description |
|---|---|---|
| state | ? | |
| u | ? |
canLoad(state: ?, apc: ?, passenger: ?) → void
| arg | type | description |
|---|---|---|
| state | ? | |
| apc | ? | |
| passenger | ? |
loadUnit(state: ?, apc: ?, passenger: ?) → void
| arg | type | description |
|---|---|---|
| state | ? | |
| apc | ? | |
| passenger | ? |
unloadTiles(state: ?, apc: ?) → void
| arg | type | description |
|---|---|---|
| state | ? | |
| apc | ? |
unloadUnit(state: ?, apc: ?, x: ?, y: ?) → void
| arg | type | description |
|---|---|---|
| state | ? | |
| apc | ? | |
| x | ? | |
| y | ? |
supply(state: ?, apc: ?) → void
| arg | type | description |
|---|---|---|
| state | ? | |
| apc | ? |
buildableAt(state: ?, side: ?, x: ?, y: ?) → void
| arg | type | description |
|---|---|---|
| state | ? | |
| side | ? | |
| x | ? | |
| y | ? |
buildOptions(state: ?, side: ?) → void
| arg | type | description |
|---|---|---|
| state | ? | |
| side | ? |
build(state: ?, side: ?, x: ?, y: ?, utype: ?) → void
| arg | type | description |
|---|---|---|
| state | ? | |
| side | ? | |
| x | ? | |
| y | ? | |
| utype | ? |
startTurn(state: ?, side: ?) → void
| arg | type | description |
|---|---|---|
| state | ? | |
| side | ? |
endTurn(state: ?) → void
| arg | type | description |
|---|---|---|
| state | ? |
canActivatePower(state: ?, side: ?) → void
| arg | type | description |
|---|---|---|
| state | ? | |
| side | ? |
activatePower(state: ?, side: ?) → void
| arg | type | description |
|---|---|---|
| state | ? | |
| side | ? |
checkRout(state: ?) → void
| arg | type | description |
|---|---|---|
| state | ? |
visibleTiles(state: ?, side: ?) → void
| arg | type | description |
|---|---|---|
| state | ? | |
| side | ? |
reveal(cx: ?, cy: ?, r: ?) → void
| arg | type | description |
|---|---|---|
| cx | ? | |
| cy | ? | |
| r | ? |
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.