consoleRegistry.module
This package holds more than this page lists. See all of its files in its world.
README.md
consoleRegistry
Every console the hangout knows, as the cartridge shelf's console showcase (stations.consoleShowcase) draws it. One entry per console id (the emulator core's id):
local Reg = require("stations.consoleRegistry")
Reg.get("nes") -- { id, name, kind, build, size, origin, frame, order }
Reg.all() -- every entry, in carousel order
Reg.register({ id = "megadrive", ... }) -- add or replace one
name: what the shelf prints (plain text, no logos).kind: one short factual line, e.g."16-bit home console · 1988".build(name, parent) -> root: builds the model underparent(plainentity.spawn, not synced) and returns its root.niluntil a model exists: the showcase then draws a clean placeholder silhouette ofsizeand says the model is on its way.size = { x, y, z }: true size in metres as the model stands (width, height, depth; front faces +Z).origin:"base"when the root is the middle of its base (stands on y = 0),"centre"when it is the model's centre.frame:yaw(degrees the idle turn swings around; 0 = front to camera),pitch(degrees the camera looks down),fill(1 = standard showcase size),tilt(a handheld leans back on its stand by this much).
Modelling agents: when your console's model is ready, set its entry's build (and correct size to the model) in this file. Nothing else changes: the shelf picks it up the next time it opens.