GlSea
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this component provides and who consumes it, then delete both comment lines. -->
GlSea
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this component provides and who consumes it, then delete both comment lines. -->TODO: describe this component.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2gl.sea.GlSea — SLICE 3: the ships, the helm and getting between islands. Attach to `Mount_Sea`. A ship is a hull you buy at a port and board. While you are at the helm the sea moves you: throttle and rudder build a heading and a speed, and the hull's pitch and roll are read off the same swell the water is drawn from, so a ship climbs a wave instead of sliding over it. AI ships sail fixed routes between the island ports, which is what makes the sea look used rather than empty. Publishes: ships() -> the catalogue owned() -> what you have buy(id) board() / leave() sailing() -> bool destination() / setDestination(islandId) helm() -> { speed, heading, ship, destination }
worldSlice( ) → any
avatar( ) → any
shipClass(id: string) → any
| arg | type | description |
|---|---|---|
| id | string |
buildHull(name: string, cls: any, x: number, y: number, z: number, isPlayer: boolean) → any
A hull, built from the ship class: length, beam and a mast. Named children so the polish pass can drop a real galleon model exactly here.
| arg | type | description |
|---|---|---|
| name | string | |
| cls | any | |
| x | number | |
| y | number | |
| z | number | |
| isPlayer | boolean |
part(pname: string, pos: { number }, scale: { number }, tint: { number }) → void
| arg | type | description |
|---|---|---|
| pname | string | |
| pos | { number } | |
| scale | { number } | |
| tint | { number } |
awake( ) → void
updatePlayerShip(dt: number) → void
Sail the player's ship forward this frame: throttle, rudder, and the hull's attitude read off the swell.
| arg | type | description |
|---|---|---|
| dt | number |
updateTrader(rec: any, dt: number) → void
| arg | type | description |
|---|---|---|
| rec | any | |
| dt | number |
update(dt: number) → void
| arg | type | description |
|---|---|---|
| dt | number |
ships( ) → void
The ship catalogue: what a port sells.
owned( ) → void
The ships you have bought.
buy(id: string) → any
Buy a ship class at the port. Spends Belly through the progression hub.
| arg | type | description |
|---|---|---|
| id | string |
board( ) → boolean
Take the wheel (or step off it).
leave( ) → boolean
sailing( ) → boolean
Whether you are at the helm.
setDestination(islandId: string) → boolean
Set the island you are making for, by id. The compass and the map read it.
| arg | type | description |
|---|---|---|
| islandId | string |
helm( ) → any
What the helm reads: speed, heading, the ship and where you are bound.
traders( ) → void
The traders under way, for the map and for anything that hunts them.
Sub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
Showing up to 3 levels deep. Open a part to see what it holds further down.
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.